RusselB your the one who's not getting me.
The code is "meant" to hack someone else's account, so a hacker (shouldn't) have the original password, and, therefore, would not be able to have an ON CONNECT event which auto-identifies for the nick.
The "hacker" wouldn't be able to but the "victim" could have such a script already loaded. Which isn't an odd scenario theres thousands of people that auto identify using an on CONNECT.
Whoever loads this script will have his/her own password tried to be changed every time the person who loads this script connects. This will fail because he needs to be identified before ns set password works. IF however the person who loads this script already has an on connect identifying him/her then the posted on connect IS succesful at changing that persons own password.
I never said ANYTHING about changing other peoples passwords.
It's a crappy hack(if one should even call it such), a stupid script which does nothing useful and should thus be deleted.
RusselB. Your statement that a person needs to be a identified for this to be evil is true but say if a person who loads this now has 2 scripts loaded
ON *:CONNECT: if ($network == somenet) ns identify password
2.this script.mrc
Then this script will be successful in changing the password. Luckily mIRC's own perform is triggered after the very last on CONNECT otherwise this script would have an even higher success rate.
In any case this snippet has a potential security flaw and should thus be removed in my opinion.
lol yeah i should have known why i was the person who found out mIRC translates to $n internally in the regsubex to do the actual substitution.
See in action:
//echo -a $regsubex($str(.,23),/(.)/g,$(\1,0))
Posted the wrong one :) $1- should also be $1
the fix is easy though:
alias charcheck return $regsubex($1,/(?<=\s|^)([^ $chr($2) ])/gx,$chr( [ $2 ] )\1)
MTS is in the form of
's <> kicked 's butt this should be interperitted by mIRC like this: %::chan $+ 's < $+ %::knick $+ > kicked %::nick $+ 's butt . What this alias does is it allows you to return the first form or the evalled form by just passing the alias $mtsprecompile('s kicked 's butt,EVAL).I hate standard dropdowns CSS has hardly any grasp on em and they show trough DIV\'s positioned over them in IE. (Thats why in my projects i use my own custum built one).
You dont have escape quotes to display $variables in strings \"hello $nickname\" works fine. Only when your referencing an array do you need to \'..\'
The purpose of this snippet is to bring the power of VB's DateDiff function to mIRC which date handling functions can be quite restricting. This snippet allows you to calculate the difference between ANY date in whatever timespan you specify so you can easily check how many days have passed since Washington became president which is 79423 days at the time of writing this :). It also allows you to easily..