mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
Is there any good reason to have these commands? I know they could be used for something useful but it seems most of the time they are used for exploits.

I just want to see what others think about this.

I've only come across one script that used $decode() and that was for echoing some info like who made it and such which just seemed stupid.


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Originally Posted By: pball
Is there any good reason to have these commands? I know they could be used for something useful


Seems like you answered your own question... smile

Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
ha ha ha
/sarcasm

I want examples man. I've only seen one lame use of that command before, nothing that made anything easier to do.


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
A fairly common usage that I've seen is for the following safe alias.
Code:
alias safe { return $!decode( $encode($1,m) ,m) }


Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Originally Posted By: pball
ha ha ha
/sarcasm

I want examples man. I've only seen one lame use of that command before, nothing that made anything easier to do.


Encoding binary data (such as a small image) into text which you can then store in a standard %variable. Or sent over the server to another person as a private message.

Last edited by MeStinkBAD; 16/08/10 12:30 AM.

Beware of MeStinkBAD! He knows more than he actually does!
Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
thanks
that makes sense


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Everyone missed the most *obvious* example of $encode.. to encode data using MIME/UUencode encoding.

Web/mail servers often require that certain headers or data is sent as base64 encoded data. base64 is just another name for MIME encoding.

When you send Basic Auth information to a webserver, you're doing so with base64. It looks like this:

Code:
sockwrite -tn $sockname Authorization: Basic $encode(user:pass,m)


Other parts of HTTP require base64 as well. This seems like reason enough to me.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard