mIRC Homepage
Posted By: MadKooky mirc $isregister - 11/10/03 12:54 AM
Maybe an identifier for checking if the user us a registered version of mirc (or if anyone know a way how to check it can he/she please tell me how)
Posted By: MTec89 Re: mirc $isregister - 11/10/03 01:02 AM
check the registry
Posted By: pheonix Re: mirc $isregister - 11/10/03 01:03 AM
he means if a user other than himself is registered(im presuming), considering he should know if he registered or not :tongue:
Posted By: MTec89 Re: mirc $isregister - 11/10/03 01:04 AM
I know what he means.. check the registry...

https://forums.mirc.com/showthreaded.php?...o=&vc=1
Posted By: MadKooky Re: mirc $isregister - 11/10/03 01:05 AM
hmm do you know the key where mirc save that information?

(i talk about if the user paid money for mirc)
Posted By: MTec89 Re: mirc $isregister - 11/10/03 01:09 AM
ya, ill try to set this up for you..:)
Posted By: pheonix Re: mirc $isregister - 11/10/03 01:10 AM
it wont work(unless they agree to have a script that checks their own registry and then gives you an answer).
Posted By: MadKooky Re: mirc $isregister - 11/10/03 01:13 AM
well i know how to read/write to registry but i don't know the key where mirc saves that (I don't want to change something there, i just want to block user who use a unregistered copy of mirc)
Posted By: MTec89 Re: mirc $isregister - 11/10/03 01:18 AM
works... no need to thank me. just type /isreged
Code:
alias isregister {
  var %a = regread $+ $ticks
  .comopen %a WScript.Shell
  if $comerr { return ERROR }
  if !$com(%a,RegRead,3,bstr,$1) {
    .comclose %a
    return ERROR
  }
  var %b = $com(%a).result
  .comclose %a
  return OK %b
}
alias isreged {
  if (*OK* iswm $isregister(HKEY_CURRENT_USER\Software\mIRC\UserName\)) { echo -a registered }
  else { echo -a not registered }
}
Posted By: pheonix Re: mirc $isregister - 11/10/03 01:23 AM
nm, i thought you wanted something like: on !*:join:#:{ if (!$isregister($nick)) { ban -k $nick } }
Posted By: codemastr Re: mirc $isregister - 11/10/03 03:21 AM
Just a note about using WScript, it's not available on all versions of Windows. So if you use that script for yourself, that's fine, but if this is for a script you'll be distributing, don't expect it to work for everyone.
Posted By: MadKooky Re: mirc $isregister - 11/10/03 03:31 AM
Well i've never saw a windows version without wscript.exe
Posted By: MTec89 Re: mirc $isregister - 11/10/03 03:36 AM
and i'v no idea what wscript.exe is laugh
Posted By: MadKooky Re: mirc $isregister - 11/10/03 03:38 AM
hmm that's for vbs and i always thought wshell.script is from that file
Posted By: codemastr Re: mirc $isregister - 11/10/03 03:44 AM
Windows Script Host does NOT come with Windows95. It only comes with 98 and above and NT4 and above. So anyone who is using win95, that script will fail.
Posted By: MadKooky Re: mirc $isregister - 11/10/03 03:57 AM
well i think there must be a day supporting old windows versions should stop or should i even support win3.11?
Posted By: codemastr Re: mirc $isregister - 11/10/03 04:00 AM
Well supporting win3.11 wouldn't make sense since mIRC doesn't run on win3.11, however, mIRC does run on win95, and many people do use win95. I mean, it's completely up to you, I'm just saying expect some "this doesn't work" emails.
Posted By: Raccoon Re: mirc $isregister - 11/10/03 07:31 AM
An $isregister identifier will probably never be added to mIRC, considering the lack of impact one's state of registration has on a script's ability to function.

The only reason I could see $isregistered being requested would be to aid in the stealing of registration codes, or to distribute a script that automatically "registers" a user's client with an illegal key.

- Raccoon
Posted By: LocutusofBorg Re: mirc $isregister - 11/10/03 09:24 AM
Quote:
i just want to block user who use a unregistered copy of mirc


This will never be possible because it is simply against privacy laws to gain information about someone else's system without their express permission. To do what you want, you would have to access someone else's registry (major no no, think of the implications if some dumbass would rework the code so he could write to the registry as well as read).

The only way I see it can be easily done is via the VERSION reply, but then you've still got people who removed that, and again the privacy issues. I for one may have a registered mIRC, but it's no one's business whether I do or not.

Also -- you wanna block people without a regged mIRC. How about those people still in their trial? They are using their non-regged version perfectly legit. So either there would have to be a third response (regged,unregged,trial), or the trial version should just return the regged response.

Lastly, a person who has used a crack has for all purposes a registered copy of mIRC, yet he didn't actually register it. There is no way to tell the difference...
Posted By: codemastr Re: mirc $isregister - 11/10/03 03:52 PM
Quote:
This will never be possible because it is simply against privacy laws to gain information about someone else's system without their express permission.

not in the US. In the US, installing the software on your system grants it access to view any information that is contained on your system. The only privacy law that is in play there is it can't SEND the information out unless you give it permission. And, in any case, whether you registered mIRC or not isn't exactly private information. Private information includes things like address, name, credit card info, I doubt any judge would say mIRC registration status is protected information.

Think about it, if $isregistered is "private" couldn't $time be "private" as well? If someone knows what time my PC says they get a rough idea of where I live. Then of course mIRC sends my IP out to the server (of course it has to, but is there anything in the mIRC license that says I must agree to that?) So if you're going to tell me $isregistered violates privacy laws, then I guess mIRC as a whole would violate them.
Posted By: MadKooky Re: mirc $isregister - 11/10/03 03:59 PM
no, i don't want to check other user, the script should just check if the user of the script has registered his copy of mirc (local)
Posted By: codemastr Re: mirc $isregister - 11/10/03 04:01 PM
I personally still say it is a good idea, it can encourage people to register mIRC. If scripts disable functions if $isregistered == $expired (or whatever it is set to do), then perhaps people will decide to register mIRC. Of course someone could just modify the script, but my logic is, if you are using a premade script from someone else, you probably don't have the skills to do that.
Posted By: Raccoon Re: mirc $isregister - 11/10/03 04:49 PM
And I still maintain that it'll just encourage makers of scripts to quietly "register" people's copies of mIRC using illegal keys, unbenounced to them even. How cool would that be, to boast that your script "gets rid of that annoying nag screen".

if ( $registered == expired ) { registermirc Lame Script 411Y-0U2-B453-423B-310N-G2U5 }
Posted By: codemastr Re: mirc $isregister - 11/10/03 05:02 PM
Umm I doubt that. Why? The people who would do that already do. They are the ones who distribute mirc.exe with their script and it uses a cracked key.
Posted By: Raccoon Re: mirc $isregister - 11/10/03 05:24 PM
A process would have to install the "cracked key", so a script can't just be distributed which "uses it".

Logically such a script would check if mIRC is registered already first (legitimately) before hacking the registry to install their own. Such an identifier would only serve to streamline that effort and nothing else. Well no, it would also encourage people to be inventive and script ways to extract a user's registration info so they can find their real name (with relative ease). Such a function would definitely be in my remote-control trojan suite.

fin.
Posted By: codemastr Re: mirc $isregister - 11/10/03 05:30 PM
Quote:
Logically such a script would check if mIRC is registered already first (legitimately) before hacking the registry to install their own. Such an identifier would only serve to streamline that effort and nothing else. Well no, it would also encourage people to be inventive and script ways to extract a user's registration info so they can find their real name (with relative ease). Such a function would definitely be in my remote-control trojan suite.

If the process has the ability to install a cracked key, i.e. edit the registry, I think the process can just as easily check if the registry key already exists.
Posted By: Raccoon Re: mirc $isregister - 11/10/03 05:42 PM
mIRC has always had the ability to /WHO a channel when one joins it, but people didn't start scripting this until the IAL came along and they suddenly felt compelled to use it.

Build $isregistered and they will come. Encouraged and motivated.
Posted By: _D3m0n_ Re: mirc $isregister - 11/10/03 05:44 PM
true but how many networks now disable the /who ability to non ops? ive been to several.
Posted By: Raccoon Re: mirc $isregister - 11/10/03 05:45 PM
Wow, I wasn't aware of that.

Congrats on servers taking a stand.
Posted By: DekuHaze Re: mirc $isregister - 11/10/03 05:45 PM
But stealing the serial number would be dependant on you knowing the registered person's register name, as the serial is generated according to the name used to register.

If $ifregistered doesn't display the name used to register, the number would be effectively useless, wouldn't it?
Posted By: Raccoon Re: mirc $isregister - 11/10/03 05:50 PM
$isregistered doesn't have to do anything but return $true/ $false. This alone will encourage every scripter to some how encorporate it into their script, and find inventive ways of using it.. like reading the name from the registry using com calls.

Plain and simple, there is no useful purpose for such an identifier. Why not write an identifier $ishacked which returns $true/ $false if certain byte offsets are modified in the $mircexe? That would only be calling attention to something that really doesn't need attention called to.
Posted By: codemastr Re: mirc $isregister - 11/10/03 05:54 PM
Quote:
Plain and simple, there is no useful purpose for such an identifier. Why not write an identifier $ishacked which returns $true/ $false if certain byte offsets are modified in the $mircexe? That would only be calling attention to something that really doesn't need attention called to.


You say it has no purpose yet I've already given you a purpose. TO DISABLE FEATURES IN AN UNREGISTERED COPY.
Posted By: MadKooky Re: mirc $isregister - 11/10/03 05:57 PM
hmm i feel sorry to make such a big discussion. Well i just only wanted to know the key in the registry (or if the identifier already exist).
I don't wanted to find a way how to crack it or other things (when i realy want to do something like that i would do it and not asking in main mirc board).
It should just stop using of unregistered version of mirc or well the main background i don't want that every lazy kiddie use my script.

that was all i want and i repeat "I don't want any illegal things"
Posted By: codemastr Re: mirc $isregister - 11/10/03 05:59 PM
I don't think he is accusing you of doing anything illegal, he is saying if $isregistered were added _other people_ would use it for illegal things.
Posted By: DekuHaze Re: mirc $isregister - 11/10/03 06:06 PM
I think it's a good idea, however I think a change to the registering process would be in order if it were to be incorporated.

I think that when the username and serial have been input, mIRC checks the serial against the name (as it does now), and then discards the username (or store it in some encrypted way or something). That way the username would be unavailable and the stealing of the serial number made pointless.

Also, this isn't addressed to you personally, codemastr. You're just at the bottom of the message list smile
Posted By: MadKooky Re: mirc $isregister - 11/10/03 06:06 PM
but what about:
$com: using wshell.script or wscript.network for controling whole windows
/run: running a virus/trojan/dialer
sockopen,: downloading a virus/trojan/dialer
/write: writing vbs files
/bwrite: changing everything

and now please tell me what i could do illegal things with an identifier like $isregistered that i can't do with the aliases/identifier above
Posted By: KingTomato Re: mirc $isregister - 11/10/03 06:08 PM
Raccoon, despite your "used for illegal purposes" stand you seem to be taking, how is $isregistered encouranging that? If people want to make mirc into a registered copy illegally, they can simply put in the key and not even check if its a valid version already. What does a script care if it is or isn't registered already. I doubt there are ones out there that have added the extra code needed to make a checksum of a non-registered version. "This version is registered, lets not apply the patch" Seriously, you think people cracking mirc put that much time and effort into it?
Posted By: codemastr Re: mirc $isregister - 11/10/03 06:24 PM
Are you telling me a guy named 'l337h4x0r' who wrote a program called 'l33tcr4k' doesn't care if it is registered already? wink
Posted By: KingTomato Re: mirc $isregister - 11/10/03 06:26 PM
somewhere along those lines, yea smirk

EDIT: Just another thing, that's ur second post I've notices with a lil smiley... the peer pressure is hitting you, isn't it? grin
Posted By: Raccoon Re: mirc $isregister - 11/10/03 06:39 PM
Actually yea, if $isregistered were added to the help file, script authors would go out of their way to encorporate it into their scripts, and thusly check before they crack so they don't piss off legitimatly registered users. I don't even know why I have to spell much out, it's a topic I rather not have to discuss period.

I bet $50 here and now that Khaled never adds it.
Posted By: codemastr Re: mirc $isregister - 11/10/03 06:45 PM
Quote:
Actually yea, if $isregistered were added to the help file, script authors would go out of their way to encorporate it into their scripts, and thusly check before they crack so they don't piss off legitimatly registered users. I don't even know why I have to spell much out, it's a topic I rather not have to discuss period.

Yup because criminals (and script kiddies) are extremely worried about upsetting a legitimate mIRC user. If they wanted to do this, they could use the wscript snippet already pasted, yet they don't. They could also add a check directly into the cracking program, they could also set it so the cracking program doesn't have access to "modify" a registry key, only create one, etc., etc. Why don't they? Because they DON'T care.

Quote:
I bet $50 here and now that Khaled never adds it.
I'm going to hold you to that. And I'll also add that if Khaled does add it, he can have $25 of the $50 you'll be paying to me.
Posted By: Watchdog Re: mirc $isregister - 11/10/03 06:53 PM
Well one trip to a site like mIRCx where one can download thousands of mIRC scripts which come with the .exe demonstrates one thing - you are completely wrong about your assumptions that scripts that come with mIRC do so only when they also come with a key or keygen or crack, etc. It's just a patently absurd suggestion and commensurate with your posting patterns of late which are becoming increasingly provocative and nit-picky. IE: You argue for the sake of doing-so, not because you have found some valid evidence to support the arguement.

I would suggest that at least 95% of all scripts that are released with the .exe DO NOT come with a crack to disable the nag screen. If you like I will run a survey on the top 50 scripts from that site to prove my point.

The only script I have seen ever that was cracked was a complete and thorough job. It looked quite nice too, whoever wrote it knew what they were doing because all popups, toolbar skins, scripts, etc were hard-coded into the .exe. Christ only knows how but it was. Shame that it also came with a massive backdoor. Of course this sort of thing is against the mIRC licence, though that in itself isn't an issue here.
Posted By: KingTomato Re: mirc $isregister - 11/10/03 06:56 PM
Quote:
argue for the sake of doing-so, not because you have found some valid evidence to support the arguement.


I can vouch for that. I have seen numerous times where Raccoon argues a point, and another poster shows the facts to prove him wrong.
Posted By: Raccoon Re: mirc $isregister - 11/10/03 07:00 PM
I do not know which post lead you to believe that I suggested "most scripts that come with mirc.exe do so only when they come with a keygen...". I've never downloaded a script that contains mirc.exe, and I have never downloaded an mirc keygen, so I wouldn't know these things.

The only statement even remotely related to what you are talking about, was me saying that a script containing mirc.exe cannot be "automatically registered" without some external process or script actively doing this action. You can't just "download a registered copy".

As such, my arguement is that an $isregistered identifier would only assist with this in ways I've already mentioned above.

I'm amazed and saddened that you and codemastr both know so much about this.

- Raccoon
Posted By: Watchdog Re: mirc $isregister - 11/10/03 07:08 PM
Amazed and saddened? Why? Knowing that mIRC is hackable does not mean we do it. Knowing that my car can be driven at 250km/h doesn't mean I do it either. Knowledge and (where applicable) skill is power and this world is dog-eat-dog. I've used IRC for around 5 years. It's a bit hard to do that and not come across all aspects of the chat programme that is by far the most popular of all.
Posted By: codemastr Re: mirc $isregister - 11/10/03 07:22 PM
Quote:
I'm amazed and saddened that you and codemastr both know so much about this.


I'm working on my degree in Computer Security, this is the kind of stuff I want to do for a living. Of course I know something about how to crack programs, I'm required to take a class about it! Why? Because if I know how others do it, I can learn how to prevent it from happening in programs I write. And yes, I've downloaded key generators, thousands of them probably, not to use for illegal purposes, but again, to figure out how they work (did they actually discover the algorithm, discover a flaw in the algorithm, managed to find a little work around, etc., etc.) Think of it this way, would you be "amazed and saddened" to know that the FBI, the CIA, etc. all are intimately familiar with terrorist tactics? Of course not. They don't have that information so that they can carry out attacks, they have it so they can PREVENT attacks.
Posted By: trenzterra Re: mirc $isregister - 12/10/03 02:41 AM
No, I am not aiming at you, codemastr.

But it isn't a good idea.

I know I am an unregistered user (yes yes i deserve to die) but only because I can't. I tried asking before whether Khaled accepts other currency but he only accepts USD, unfortunately. Paypal stopped supporting Singapore bank accounts a few years ago (as far as i know, now i don't know) and i don't have a credit card.

So incorporating it in your script is a bad idea. You will only encourage more users to crack mIRC before using your script, which is lame.
Posted By: MadKooky Re: mirc $isregister - 12/10/03 02:43 AM
not everyone will use that in their scripts, just to have the possibilty to use such an identifier
Posted By: LocutusofBorg Re: mirc $isregister - 12/10/03 08:56 AM
Code:
* LocutusofBorg has joined #HelpDesk
<user> LocustofBrog! Help me!
<LocutusofBorg> Ask a question first
<user> My script not working anymore. It says mirc not registered
<LocutusofBorg> Then goto www.mirc.com and register your mIRC as you are supposed to
<user> I cant my parents dont allow me
<LocutusofBorg> Then there's nothing you can do - get another script
<user> I want this one!
<LocutusofBorg> You can't
* user has quit (Locust is dumbass)


No thanx
Posted By: cold Re: mirc $isregister - 12/10/03 11:46 AM
LOL laugh Sad but true..
Posted By: MadKooky Re: mirc $isregister - 12/10/03 03:21 PM
<MadKooky> user: go working , earn money
<user> no i won't
<MadKooky> then write your own script

Sorry i can't see any problem when people want something they should pay for. We don't live in paradise where everything is for free
Posted By: KingTomato Re: mirc $isregister - 12/10/03 03:32 PM
Now you're giving an example of what wouldn't happen (atleast if you knew what this addon entails). You're suggesting that if someone finds a script that uses the $isregistered alias, and limits abilities of the script, that noone can use mirc anymore. That's not true. The alias would be geared towards scripts not "plain 'ol mirc". When you said there was nothing you can do in your example, you were entirly wrong. You could have told them that they can use the original mirc, that most likely doesnt have anything comparing the $isregistered, but just the introduction dialog.

All you're doing is creating ficticious dialog that would never happen because you dont want to see it being added.

I said it before, if you are al worried that this is going to lead to "more cracking" or less users on mirc--you're wrong. People that crack mirc, again, dont give two sh**s about wheter is was or wasn't already cracked before they apply a patch. They aren't going to "only crack it if it hasn't been already". Someone please give me an example where it would need to check first. The only time you have cracks (or majority) are:

A) You downloaded a script with the .exe included, and apon running it it installs the crack (note the exe was not previously yours, so you didn't "register" it.)
B) You download it when you have your own version, haven't registered, and apply it to the mirc installation you have.

It's not like your going to register mirc, go out and download a patch, then apply it to your already-registered-version of mirc.

Secondly you all are suggesting that user counts using mirc will drop.. That's not true. The only thing that might "drop" are the amount of people using scripted mircs, not the original. The original would remain not having someone where in the scripts file the code "if (!$isRegistered) /echo You are not registered, you cannot use this program".

I've done typing for now, when I wake up mire i'm sure i'll have a rebuttle to what you all have to say about why it shouldn't be added..
Posted By: codemastr Re: mirc $isregister - 12/10/03 03:56 PM
Code:
* codemastr has joined #HelpDesk
&lt;user&gt; codemastr! Help me!
&lt;codemastr&gt; Ask a question first
&lt;user&gt; mIRC 6.11 keeps flashing red and saying I need to register!
&lt;codemastr&gt; Then goto www.mirc.com and register your mIRC as you are supposed to
&lt;user&gt; I cant my parents dont allow me
&lt;codemastr&gt; Then there's nothing you can do - get another client
&lt;user&gt; I want this one!
&lt;codemastr&gt; You can't
* user has quit (codemastr is dumbass)


Isn't that exactly the same situation? So by your logic, registration should be removed from mIRC because all it does is encourage people to crack mIRC.
Posted By: LocutusofBorg Re: mirc $isregister - 12/10/03 05:12 PM
I was talking about a script not mIRC. And the dialog I pasted isn't complete fiction - it's happened to me lots of times.
Posted By: TheXenocide Re: mirc $isregister - 12/10/03 06:55 PM
It depends on what you are trying to do. Are you trying to stop users from coming in a channel if they don't have a registered version of mIRC? because there are many other IRC clients. You could make it possible by forcing users to DL an AddOn that would reply to a special CTCP request that would send encrypted information, but I don't recomend it.

If you are, on the other hand, trying to check if mIRC is registered on the current computer, all you have to do is look at the registry settings (I would recomend a DLL rather than WScript) or you can even use a DLL to check if the "Register mIRC" menu option exists.

Anyway, just some thoughts.
© mIRC Discussion Forums