[script] n0=; This passive mIRC script recognizes URLs posted into a channel, connects n1=; to the destination, echoes the title of the document in the channel, and n2=; then closes the connection. n3=; n4=; This script will conflict with any script that requires a socket named n5=; "sniffer" to remain open. n6=; n7=; To use this script: n8=; 1) Place it in your mIRC folder. n9=; 2) Launch mIRC. n10=; 3) Type /load -rs urlsniffer.ini n11=; When you see "Loaded script '...\urlsniffer.ini'", it is ready for use. n12=; n13=; Pressing alt+r with mIRC open and accessing the Remote tab will let you n14=; to edit this script at any time. View -> urlsniffer.ini. n15=; n16=; The script begins below: n17=on *:text:*http*:#: { n18= %sniff.sentence = $1- n19= %sniff.chan = # n20= sniffloop n21=} n22=alias sniffloop { n23= while ($regex(%sniff.sentence,http)) { n24= %sniff.target = $iif($chr(32) isin %sniff.sentence,$left(%sniff.sentence,$pos(%sniff.sentence,$chr(32),1)),%sniff.sentence) n25= %sniff.sentence = $right(%sniff.sentence,$calc($len(%sniff.sentence) - $len(%sniff.target) - 1)) n26= if ($regex(%sniff.target,http)) { n27= sniffer %sniff.target n28= return n29= } n30= } n31=} n32=alias sniffer { n33= if ($sock(sniffer)) { n34= sockclose sniffer n35= } n36= if ($right($1-,4) == .jpg) || ($right($1-,4) == .gif) || ($right($1-,4) == .png) { n37= sniffloop n38= return n39= } n40= %sniff.host = $iif($count($1,/) > 2,$remove($left($1,$pos($1,/,3)),http:,/),$remove($1,http:,/)) n41= %sniff.url = $iif($count($1,/) > 2,$right($1,$calc($len($1) - $pos($1,/,3) + 1)),/) n42= sockopen sniffer %sniff.host 80 n43=} n44=on *:sockopen:sniffer: { n45= sockwrite -nt $sockname GET %sniff.url HTTP/1.1 n46= sockwrite -nt $sockname Host: %sniff.host n47= sockwrite -n $sockname Referer: %sniff.host n48= sockwrite -nt $sockname $crlf n49=} n50=on 1:sockread:sniffer:{ n51= if ($sockerr) { n52= return n53= } n54= var %sniff.temp n55= sockread %sniff.temp n56= while ($sockbr) { n57= if ($regex(%sniff.temp,