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 

hidding bot passwords
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Fri Jul 20, 2007 7:37 am    Post subject: hidding bot passwords Reply with quote

how to hide passwords for auth and dcc chat requests to the bot and in log files?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jul 20, 2007 7:47 am    Post subject: Reply with quote

That kind of information is never logged as long as it is used properly.
In the case where a user accidentally mistypes a msg-command containing a password, this would be treated as any other message, and logged as such (to avoid this, you'd have to disable msg-logging completely). Quite obviously, it would be quite a daunting task of checking any and all messages recieved for possible passwords of any user, making it an unusable solution.

In any other case where you use one of eggdrop's internal commands that do require passwords, eggdrop will safeguard that no password information is logged in the bot's logfiles.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Fri Jul 20, 2007 8:43 am    Post subject: Reply with quote

i mean when i send a password, i can see the password in the dcc chat window.

i think to hide a password it should be done by irc chat program.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jul 20, 2007 8:48 am    Post subject: Reply with quote

That is not an eggdrop issue, but rather an issue with the irc-client you are using. There is no standardized way of forcing a client to hide the text the user himself writes.
If your client supports scripting, you might be able to send the text without displaying it, depending on the client and its capabilities (obviously).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Fri Jul 20, 2007 5:45 pm    Post subject: Reply with quote

right now i use xchat under linux.. but will be using xchat under windows after i finish installing my eggdrops. I dont know for sure if ill go back on windows though because this linux installation was so perfect i have no problems at all with it. When you send your NickServ password... NickServ bot hides it and put **** instead of clear text password, i can never see the password i send to NickServ, it's cool.

do u know how to make a bot send a file to another bot?
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Jul 20, 2007 7:23 pm    Post subject: Reply with quote

BoaR wrote:
do u know how to make a bot send a file to another bot?

enter files system by using .file command
to send file use
Code:
get [filename] <nickname>

when finished, use "quit" without quotes to exit file system
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jul 20, 2007 9:17 pm    Post subject: Reply with quote

BoaR wrote:
right now i use xchat under linux.. but will be using xchat under windows after i finish installing my eggdrops. I dont know for sure if ill go back on windows though because this linux installation was so perfect i have no problems at all with it. When you send your NickServ password... NickServ bot hides it and put **** instead of clear text password, i can never see the password i send to NickServ, it's cool.


This would be done by some addon for your client, and not the works of ChanServ.
Unfortunately, I am not familiar at scripting for xchat, so I cannot give you any detailed advices on how to write an addon such as you desired. I would guess there are some scripts doing something like that out there, that could be modified accordingly. In any case, there really is'nt anything you could do on an eggdrop to achieve this, it'll have to be done on the clients.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Jul 20, 2007 9:58 pm    Post subject: Reply with quote

As a side note: X-Chat uses either Perl, Tcl, Python, Ruby, JavaScript or Lisp for scripting.

The user should be able to get scripting help on the xchat.org Forums.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Sat Jul 21, 2007 2:01 am    Post subject: Reply with quote

maybe it is possible to send the password encrypted? the bot will decrypt the password? this way even seeing the encrypted password it isnt the real password i am sending.. this could be a very good idea i think to implement on the bot.

When creating the owner user send the password unencrypted but bot should provide something like: This is your encrypted password, please use this password to login on the bot instead.

The password will be decrypted by the bot using md5 module or the default encryption method blowfish.

<BoaR> .file
<Eggdrop> What? You need '.help'
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Jul 21, 2007 7:42 am    Post subject: Reply with quote

Your best bet there would be to check one of the ssl-patches written to be used with eggdrop.
Keep in mind, that in order to achieve proper protection from encryption, keys must have been exchanged in a secure manner prior to connection attempt.
One option might be the challenge/respond scheme using a random hash; bot sends you a hash, you use the hash on your password using a "non-decryptable" algorithm, and returns the result. This however, would still need support on the clients (unless you're comfortable calculating md5/blowfish/sha/etc sums in your head), and is more sensitive to bruteforce attacks than using a secured channel such as provided by ssl.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Sat Jul 21, 2007 5:35 pm    Post subject: Reply with quote

i have compiled my bot with the ssl patch but whenever i add set use-ssl 1 in my config the bot wont connect even if irc server supports ssl connection. so i dont know why it doesnt work..

as a side note i think i will continue sending clear passwords to the bot.

Is it possible to connect to the bot use SSH ? instead of telnet use ssh..
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sat Jul 28, 2007 7:38 pm    Post subject: Reply with quote

BoaR wrote:
<BoaR> .file
<Eggdrop> What? You need '.help'
you do not have the filesys module installed. As for your password being seen, I seem to remember one of slennox's scripts from the netbots.tcl providing this function.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Sun Jul 29, 2007 10:21 am    Post subject: Reply with quote

i am running netbots i never seen this maybe i have to search the code ?

if i find a way to hide the password on the eggdrop source i will post here
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Wed Aug 01, 2007 11:59 pm    Post subject: Reply with quote

BoaR wrote:
i am running netbots i never seen this maybe i have to search the code ?

if i find a way to hide the password on the eggdrop source i will post here
no need to search any code, it is a built-in feature of the nebots core component..search for nb_castfilter. You just have to enable and modify this setting to make your passwords private. Mr. Green
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Thu Aug 02, 2007 6:16 am    Post subject: Reply with quote

yup that works i have it running that way already Very Happy

I was asking something more like NickServ to hide passwords replacing the giving password with asterix ****.. the user can't see his own password. You ever seen this on a nickserv bot ? i dont know how well this will work on eggdrop tho.. maybe looking at the nickserv bot source code will reveal the answer. Smile

thanks tho, netbots is a nice botnet script, i wish there were more ..
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 -> Eggdrop Help All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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