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.

Testrelesae Winexec - exec workaround for windrops

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Testrelesae Winexec - exec workaround for windrops

Post by De Kus »

If you can succesfully use the TCL commands "exec cmd" and "open |cmd r" you definitly do not need this script. However using Eggdrop under Cygwin screws up these 2 commands (even they can be properly used in the tclsh under cygwin) and result in "Tcl error: couldn't duplicate input handle: bad file number ", but I found a workaround.

I assume the requirements for this are about this:
  • eggdrop:
    something around version 1.6+
    something around TCL 8.2+
    egghttp
  • HTTP Server:
    php in non-safe mode or access to a bash/sh executable via "system"
    .htaccess support for enhanced security
Okay, this script or better these scripts have been tested by me under this:
eggdrop: v1.6.18+notesfix
OS: CYGWIN_NT-5.1 1.5.13
Tcl: v8.4.7
egghttp: v1.1.0

Apache: v2.0.52 (Win32)
PHP: v4.3.10

What does it?
It queries the exec.php via a HTTP server and gives the stdout from to a specified callback proc. So this all will not just work under Cygwin, it will also not block the bot while the command is executed.

Please report me any security suggestions and bugs, I'll give it later a try to send it over to an email of windrop.cjb.net, if it can be confirmed to be ready for release.

Download (v0.1):
http://home.arcor.de/dekus/winexec.zip
http://home.arcor.de/dekus/winexec.tar.bz2

PS: The issue has been solved with the TCL 8.4.9 release of windrop.sourceforge.net
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Post Reply