This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Eggdrop Security Guidelines ?

Old posts that have not been replied to for several years.
Locked
r
rtfmoz

Eggdrop Security Guidelines ?

Post by rtfmoz »

Hello Community,

You have all been great help so thank you.

I wanted your thoughts on secure programming for eggdrop. Things you shouldnt do, how to avoid buffer overruns, a reliable template for procedures, data verification, things to enable and disable... The idea being to build a list of best practice eggdrop programming.

People can then follow the list and avoid most of the pitfalls they might otherwise fall into. You have had years of programming so are there somethings you wouldnt do when programming a bot? Are there some links to good security information when programming tcl?

Anything would be a help

Regards

BK
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

I guess http://www.soft.net.uk/staffs/eggdrop/characters.html would be a good start :wink:
along with some of the tutorials at http://www.egghelp.org/
Elen sila lúmenn' omentielvo
I
Iridium

Post by Iridium »

I find that generally you are fairly safe as long as you treat your lists carefully. You don't have to handle your own memory so there is no danger of buffer overflows. As far as enabling/disabling anything is concerned... well no, there isn't much there either.

Remember that []'s are dangerous.. if you write a script badly, someone could be able to trigger it with [command] and your bot would execute the command. My advice for learning tcl is to test everything out in the partyline using the ".tcl" command and seeing what results you get. Also once you have written a script, try triggering it using [putlog "Hole here!"].
if there is a hole, you should see (in the partyline) "Hole here!"

Good luck, and I'll be around if you need assistance. :)
Locked