Posted July 26, 200519 yr I was bored and tinkered around for a bit with a mIRC today, and made a pretty cool, useful function. alias ip_format { if ($1) { var %scan.ip = $1- var %scan.goal = $pos($1-,x,0) if (%scan.goal >= 1) { %scan.ip = $replace($instok(%scan.ip,$rand(1,255),4,46),x,$null) } if (%scan.goal >= 2) { %scan.ip = $replace($instok(%scan.ip,$rand(1,255),4,46),x,$null) } if (%scan.goal >= 3) { %scan.ip = $replace($instok(%scan.ip,$rand(1,255),4,46),x,$null) } } return $iif($right(%scan.ip,1) == . ,$mid(%scan.ip,1,$calc($pos(%scan.ip,$chr(46),4) - 2)), %scan.ip) } It would be used for an ip scanner that scans random ip's on a speciffic range. Here's some examples of what it can do: 24.x.x.x = 24.99.52.22 24.205.x.x = 24.205.34.22 24.205.33.x = 24.205.33.213 If you're planning on scanning IP's for a particular reason, I'd use this. It's easy, and already at your disposal.
July 26, 200519 yr lol... its mirc scripting add it to your scripts then use it with /ip_format x.x.x.x
July 27, 200519 yr t3rm1ght my leet friend, you = fail. yes... me = fail horribly.. but I have an excuse!!! me = never used mIRC scripts me = barely knows how to use mIRC in the first place
July 27, 200519 yr that made rofl irl. you make my penis loleresonate t3rm1ght, you have paste that code under mircs "remote scripts" section. it doesnt need to be compiled or anything. to edit your remotes click the little green icon with an "/a" , then select the "Remote" tab. once its added, just type "/ip_format x.x.x.x" into your chat line and it will execute the alias. replace an x with any number up to 255 to select from a specific ip-range. ie /ip_format 192.168.x.x
July 27, 200519 yr you make my penis loleresonate t3rm1ght, you have paste that code under mircs "remote scripts" section. it doesnt need to be compiled or anything. to edit your remotes click the little green icon with an "/a" , then select the "Remote" tab. once its added, just type "/ip_format x.x.x.x" into your chat line and it will execute the alias. replace an x with any number up to 255 to select from a specific ip-range. ie /ip_format 192.168.x.x kewl ty EDIT: did that.... nothing.
July 28, 200519 yr You're so funneh wanst trying to be me = mIRC noob me = C++ noob it looks like C++ to me so... yeah, I wasnt trying to be funny.
July 28, 200519 yr Looks nice, Im guessing its C++? RIFK.. Thats a horrible guess.. #include MircScripts.h ??