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 

Eggdrop Blow Encryption

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
BiLL
Halfop


Joined: 26 Sep 2001
Posts: 78
Location: Germany

PostPosted: Tue Apr 29, 2003 5:03 pm    Post subject: Eggdrop Blow Encryption Reply with quote

Hi,

is it possible to encrypt EVERYTHING what an eggdrop say's in a special chan? For mIRC I've an addon - BlowCrypt - there I can set a special key for every chan and it get's encrypter and auto decrypted. I need this in TCL for eggdrop - where I can an special key for the chan too.

Is there such script out?
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Tue Apr 29, 2003 7:17 pm    Post subject: Reply with quote

The short answer is "no".
The long answer is...

Eggdrop has no clue about what channel you're sending messages to, so you'd have to rewrite the internal output commands to parse everything sent to the server.

This sounds like a bad idea to me. I get the feeling you're after encrypting messages sent by a script, and that would be much easier. Just change every line that makes some output to your channel to call your encryption/output proc. I bet your decryption is based on some keyword at the start of every message to determine that it's an encrypted string, so that would make it easy for the eggdrop to pick up these lines and decrypt them for you.

Now there's only one problem left; the actual encrypt/decrypt function. If it's compatible with eggdrop's own blowfish encryption (even using the same salts), no problem. If not: start reading the source of that addon (it's open source, right?)
Back to top
View user's profile Send private message
BiLL
Halfop


Joined: 26 Sep 2001
Posts: 78
Location: Germany

PostPosted: Thu Aug 21, 2003 10:59 pm    Post subject: Reply with quote

I just saw an eggdrop with blow encryption.

How is that possible?

I searched around the web but didn't find any public script ;-(.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Fri Aug 22, 2003 3:08 pm    Post subject: Reply with quote

Actualy is possible to encrypt EVERYTHING what the eggdrop says in a special channel by using the encrypt to encrypt and decrypt to.. doh! Smile
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
BiLL
Halfop


Joined: 26 Sep 2001
Posts: 78
Location: Germany

PostPosted: Fri Aug 22, 2003 5:22 pm    Post subject: Reply with quote

Ok great, got it working right now.

But the problem is it doesnt decrypt my input. So when i try to do !hello it wont respond cause I am sending with blowcrypt. How can I make the bot that it will decrypt my message and will execute the proc for !hello ?

Thanks.
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Fri Aug 22, 2003 6:41 pm    Post subject: Reply with quote

use a 'pubm' bind (with the channel name included in the mask to avoid having to decrypt EVERY public message recieved by the bot) and call the other procs after decrypting the message and extracting the command part.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat Aug 23, 2003 1:19 am    Post subject: Reply with quote

Why do you want to encrypt the commands? Sound silly to me..
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
BiLL
Halfop


Joined: 26 Sep 2001
Posts: 78
Location: Germany

PostPosted: Sat Aug 23, 2003 8:56 am    Post subject: Reply with quote

No,

you got me wrong.

When someone sends the public command with blowfish encyption THEN the bot WONT reply, cause it couldnt decrypt the input (so it couldnt read it correctly). I will try that way which "user" told me this evening. I think that will do it Smile.
Back to top
View user's profile Send private message
BiLL
Halfop


Joined: 26 Sep 2001
Posts: 78
Location: Germany

PostPosted: Sat Aug 23, 2003 9:30 pm    Post subject: Reply with quote

Damn, it is not that easy as I thought.

set key "asdf"
bind pubm - "#mychan *" decryptall

proc decryptall { nick uhost handle chan arg } {
global key
set arg [decrypt $key "$arg"]
putserv "PRIVMSG $chan :arg = $arg"
return 0
}

It won't decrypt the input correctly.
If I sent a TEXT WITH BLOWFISH (same key!) the bot will not decrypt the text correctly. Why? I am using same keys!

The interesting thing is that I CAN read the encrypted messages of the bot with my blowfish script for mIRC. So I thought eggdrop/mircblowfish got the same salts. But it doesn't look like that now in the decrypt function. Maybe I am doing something wrong ? Can anyone help me? PLEASE !
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Aug 24, 2003 6:38 am    Post subject: Reply with quote

just a thought, try spliting the $arg or specifying first word ?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
BiLL
Halfop


Joined: 26 Sep 2001
Posts: 78
Location: Germany

PostPosted: Mon Aug 25, 2003 2:43 pm    Post subject: Reply with quote

set text [decrypt $blowkey [string range $arg 4 9999]]

that worked - thanks all!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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