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.

Unusual Filesys

Old posts that have not been replied to for several years.
Locked
A
Aftran

Post by Aftran »

Hi, I'm quite new to TCL scripting, so I was wondering how easy/feasible it is to create a filesys script: that when someone DCCs the bot a file, the bot will put the file in /their-username/ folder underneath the filesys root? Are there any scripts like that out, or would I need to make one?
What I'm trying to do is have an arrangement where people can DCC the bot a file, then share it by putting it at http://the-bot-host/user's-folder/file.
Thanks. :smile: Sorry if this is like really elementary stuff here.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Check tcl-commands.doc for the RCVD bind. Your callback can use Tcl's "file rename" or "exec mv" to move the file into whatever directory you want. For the Tcl command reference, try http://tcl.activestate.com or http://dev.scriptics.com
A
Aftran

Post by Aftran »

Thank you, I'll do that. :smile:
Another question came up: Can you think of any major security risks from having Apache serve the bot's filesys directory (other than the fact that anyone can get the files, even if they aren't on the bot with +x)? I'm only doing this to get around a problem with sending DCC behind a packet filter, so it's not absolutely necessary.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The only security risks, are those you would have even if it wasn't files sent through the filesys.

The only differance, is the method of upload. Instead of FTP, SCP or other method, it's DCC.
Locked