DiZuM Posted March 9, 2007 Posted March 9, 2007 Hey everyone; I try make own version about Lil Toady's trace script, and it wont works. If you found what is problem, please tell me solution! Ok, this is it; on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !trace) { if (%a == -1) mta.msg $1 $2 Error - Absent ID else my.trace $1 %a } } alias my.trace { set %my.trace $1 $2 if (!$sock(my.trace $+ $mta.ip($1,$2))) sockopen my.trace $+ $mta.ip($1,$2) www.dnsstuff.com 80 } on *:SOCKOPEN:my.trace*:{ tokenize 32 %my.trace if ($sockerr > 0) { sockclose $sockname mta.say $1 Trace: An error has occured. (socket error) } else { sockwrite -n $sockname GET tools/ptr.ch?ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1 sockwrite -n $sockname User-Agent: MSIE 6.0 sockwrite -n $sockname Host: www.dnsstuff.com sockwrite $sockname $crlf } } on *:SOCKCLOSE:my.trace*:{ unset %my.trace } on *:SOCKREAD:my.trace*:{ var %t sockread %t if (country-rirdata isin %t) { tokenize 32 %my.trace mta.say $1 $+($mta.name($1,$2),$chr(40),$mta.ip($1,$2),$chr(41)) - Location: $gettok(%t,2-,58) sockclose $sockname } } I try make it found Location & City using dnsstuff. Look here: http://www.dnsstuff.com/tools/ptr.ch?ip=yourip example: http://www.dnsstuff.com/tools/ptr.ch?ip=80.186.127.15 Please, help me! ty.
lil Toady Posted March 9, 2007 Posted March 9, 2007 oh damn.. If you can not script don't try to do stuff like that. I believe you don't understand anything in the script, you just changed the url. Well it is not gonna work with DNS Stuff anyway. mIRC trace scripts are banned there. (will i have some ideas how to get over the ban but it'd be mean to post that) Why dont the default host i put there? It takes just a little bandwidth either. Umm, it was the first suitable host i found but if you have anything better post.
Recommended Posts