I want to post to the website in proxy.txt
I want to send hits to a site with ip addresses in proxy.txt
The code below does not work properly. Is there anyone to do a different code?
on *:sockopen:webc*:{
if ($sockerr > 0) { sockclose $sockname | returnex }
sockwrite -nt $sockname CONNECT site.com/demo.php:80 $+(HTTP/1.1,$CRLF,$CRLF)
}
on *:sockread:webc*:{
var %;rdin | sockread %;rdin | tokenize 32 %;rdin
if ($gettok(%;rdin,1-2,32) == HTTP/1.0 200) || ($gettok(%;rdin,1-2,32) == HTTP/1.1 200) {
sockwrite -n $sockname GET / HTTP/1.1
sockwrite -n $sockname Host: site.com
sockwrite -n $sockname Connection: keep-alive
sockwrite -n $sockname Upgrade-Insecure-Requests: 1
sockwrite -n $sockname User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36
sockwrite -n $sockname Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
sockwrite -n $sockname Accept-Encoding: gzip, deflate, br
sockwrite -n $sockname Accept-Language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7
sockwrite -n $sockname $crlf
}
}