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.

TCL script RUN without shell access, can i?

Old posts that have not been replied to for several years.
Locked
C
Cracker
Voice
Posts: 2
Joined: Sun Dec 19, 2004 6:22 pm

TCL script RUN without shell access, can i?

Post by Cracker »

Hi!
I have full access to eggdrop, all flags. Can upload/download files... I uploaded TCL, and i need bot to run it. I need add it to eggdrop.conf that bot will recognize it. But with filesys, i can't change eggdrop.conf. And i don't have shell access. So what to do ?
(i can ask someone who has access to shell to add it to eggdrop.conf, but he is online only 1 time a week, so i thouth that i can add that it will run scripts from FOLDER, for example "source scripts/" not source "scripts/userinfo.tcl") can i ?
And i woun't add this folder, can i do something with DCC commands?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

yes you can (assuming you have access to the .tcl command and have already sent yourscript.tcl to the bot):

Code: Select all

.tcl exec echo "source ${incoming-path}yourscript.tcl" >>$config
.rehash
C
Cracker
Voice
Posts: 2
Joined: Sun Dec 19, 2004 6:22 pm

Post by Cracker »

hm, i'm now owner of the bot with all flags, but .tcl DOESN'T WORK !
<Cracker> .tcl
<WiFi> What? You need '.help'
i even added # in eggdrop.conf
# unbind dcc n tcl *dcc:tcl
# unbind dcc n set *dcc:set

Rehashed,restart it, but it doesn't work. What to do ?
(by the way, .set, .loadmod doesn't work too. maybe i need to load some module ?)
Loaded are:
[21:07:35] <WiFi> Modules loaded:
[21:07:35] <WiFi> Module: stats (v1.3)
[21:07:35] <WiFi> Module: gseen (v1.1)
[21:07:35] <WiFi> Module: uptime (v1.2)
[21:07:35] <WiFi> Module: encryption (v2.1)
[21:07:35] <WiFi> Module: console (v1.1)
[21:07:35] <WiFi> Module: notes (v2.1)
[21:07:35] <WiFi> Module: transfer (v2.3)
[21:07:35] <WiFi> Module: filesys (v2.0)
[21:07:35] <WiFi> Module: irc (v1.3)
[21:07:35] <WiFi> Module: ctcp (v1.0)
[21:07:35] <WiFi> Module: server (v1.2)
[21:07:35] <WiFi> Module: channels (v1.0)
[21:07:35] <WiFi> Module: dns (v1.0)
[21:07:35] <WiFi> Module: eggdrop (v106.17)
[21:07:35] <WiFi> End of modules list.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

try:

Code: Select all

.set blah [exec echo "source ${incoming-path}yourscript.tcl" >>$config]
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

oops you said .set doesn't work either...

well, in such case there's nothing you can do w/o shell access

apparently you have these (.tcl and .set) unbinded somewhere by some lame script, or you aren't perm owner (that is, your bothandle is not included in Tcl owner variable)
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

try .chanset #somechan need-op [exec echo "source ${incoming-path}yourscript.tcl" >>$config]

and deop your bot in #somechan

edit: but dont forget to op it and do ".chanset #somechan need-op" when done unless you want a billion source lines in there
photon?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

spock wrote:try .chanset #somechan need-op [exec echo "source ${incoming-path}yourscript.tcl" >>$config]

and deop your bot in #somechan

edit: but dont forget to op it and do ".chanset #somechan need-op" when done unless you want a billion source lines in there
neat ;) yes, that should also work, even without the square brackets
Locked