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 

Testrelesae Winexec - exec workaround for windrops

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Apr 10, 2005 10:44 am    Post subject: Testrelesae Winexec - exec workaround for windrops Reply with quote

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...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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