deepin终端设置代理
居然必须是小写。
export http_proxy="http://127.0.0.1:10809"
export https_proxy="http://127.0.0.1:10809"
一开始写成HTTP_PROXY.就是不行。
取消是直接unset http_proxy && unset https_proxy
居然必须是小写。
export http_proxy="http://127.0.0.1:10809"
export https_proxy="http://127.0.0.1:10809"
一开始写成HTTP_PROXY.就是不行。
取消是直接unset http_proxy && unset https_proxy
昨天搭了个简单的DNS服务器,就是为了抓取手机里面各种APP的DNS请求。
抓了一堆域名。没打印IP。重新改太麻烦,直接用shell脚本ping出来吧。
#!/bin/bash
n=1
for domain in `cat domains.txt`
do
ip=`ping ${domain} -c 1|sed '1{s/[^(]*(//;s/).*//;q}'`
echo -e $n "\t" $domain "\t" $ip
n=$(($n+1))
done
可以用来判断是否springboot和查看部分敏感信息。
/env
/profile
/trace
/info
/dump
/autoconfig
/health
/mappings
/beans
/metrics
/configprops
最近写了个脚本,运行结束,给邮箱发通知。
最后是用curl来做的。邮件正文是支持html语言的。所以要进行
只对正文做编码即可。
curl -d "subject=${subject}" --data-urlencode "body=${body}" -d "mailto=${mailto}&cc=${cc}" "http://API"