egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help: Send an encypted command

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
kennycheung21
Voice


Joined: 02 Mar 2011
Posts: 10

PostPosted: Fri Apr 22, 2011 5:59 pm    Post subject: Help: Send an encypted command Reply with quote

Hi everyone,

I'm wondering how can a user send out an encrypted command to the bot. I mean a user type in an command, then encrypted it before send out to the Bot. so the bot can only received the command encrypted. And the package going through the network is also encrypted.

Please help, I can encrypted an command, but I can just send out the command and let the bot encrypt it after receiving the unencrypted data. Is there any way I can encrypt a DCC command before sending out?

Thanks
Kenny
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Apr 22, 2011 6:41 pm    Post subject: Reply with quote

Well... you could use the decrypt command to decrypt any incoming, blowfish encrypted, base64 encoded, messages over DCC, msg, etc - provided that your client knows how to encrypt the data in the above mentioned way..

Or, you could use an ssl-enabled eggdrop with an ssl-enabled irc client and use an ssl-encrypted dcc chat link between the both.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
kennycheung21
Voice


Joined: 02 Mar 2011
Posts: 10

PostPosted: Fri Apr 22, 2011 7:49 pm    Post subject: Reply with quote

Yeah, I can encrypt and decrypt it without any problem, but this is done by the bot after receiving an unencrypted command. I just don't know how to encrypt it first before I sent it out.

For example, I input the command in the dialog box, then I hit the ENTER, it is sent out without any encryption. What now I can do in tcl script is after the bot receive the plain text then encrypt/decrypt it. So in a word, in this scenario, the message sent out through the internet is still unencrypted before it arrives at the client(Bot).

I don't know how to address this issue.

Thanks
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Apr 22, 2011 8:28 pm    Post subject: Reply with quote

As I roughly said in my previous post, you'll have to implement the very same crypto in your irc client, be it blowfish, twofish, rsa, dsa, aes, or other.. (though eggdrop only handles blowfish natively..). How this is done really comes down to the very client in question.

For a more generic solution, ssl - as mentioned - might be a better approach, as it is a well-defined protocol with many pre-written libraries and implementations.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
kennycheung21
Voice


Joined: 02 Mar 2011
Posts: 10

PostPosted: Sun Apr 24, 2011 4:05 pm    Post subject: Reply with quote

Could you please give me an example how to encrypt a command before it got send out?

Thanks
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Apr 24, 2011 4:55 pm    Post subject: Reply with quote

Well, that would be done client-side, and would depend on what languages your client(s) support..

In irssi and X-chat, you could perhaps use the Crypt::CBC, Crypt::Blowfish, and MIME::Base64 packages to implement full blowfish encryption before sending the data to the eggdrop.. But since I don't script in perl, I can't help you much further than that for those clients..

If you're using BitchX, there's a blowfish readily available (actually, I vaugely recall it being ripped from eggdrop), and accessible through Bx's tcl-interpreter. You'll even find a trivial script-pack for Bx/eggdrop to enable encryption along with Bx..

If we're talking mIRC... I have no ideas and could'nt care less (sorry)
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber