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 

Remote console
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Jul 12, 2005 4:46 am    Post subject: Remote console Reply with quote

tired of DCC-ing or telneting to your leafs? well, sit back and relax at your hub console, you now have full remote control to any bot in the botnet via remote console; never bother to .relay to those leafs again!

I hate to repeat myself, so here are the docs so far (script's header):
Code:

#################################################################################
#                                                                               #
# rconsole.tcl - full remote control/console for eggdrop by demond@demond.net   #
#                                                                               #
#                this thing utilizes the botnet to open a remote console to     #
#                any linked bot; why would I need that, you ask... well, for    #
#                starters, it eliminates the need of DCC CHAT, telnet, .relay   #
#                to the bot you need to control - now you can control all of    #
#                your leafs from the hub's console, conveniently issuing just   #
#                a single command which will get replicated and executed on     #
#                all remote consoles you've opened; think also of all firewall  #
#                problems you circumvent with this thing - it enables you with  #
#                full access to any bot on your botnet, regardless whether its  #
#                host is firewalled or not                                      #
#                                                                               #
#                so how is this different from the netbots script? well, unlike #
#                netbots, rconsole gives you full remote access to any eggdrop  #
#                command, not just to a predefined and limited set of custom    #
#                netbots commands; that being said, it should be noted that     #
#                rconsole is not meant as substitution of netbots - you may     #
#                find it most useful when used alongside netbots, although it   #
#                implements full botnet control by itself                       #
#                                                                               #
#                naturally, rconsole supports multiple users simultaniously,    #
#                that is, any user can open a remote console independently of   #
#                other users logged into the bot                                #
#                                                                               #
#         Usage: .rc <bot|*> [command|text]  ("*" is used to send to all bots)  #
#                                                                               #
#                when used without command/text, it sends initial login request #
#                                                                               #
#       History: 1.0 - initial version                                          #
#                                                                               #
#################################################################################


testers needed! I'd appreciate your feedback, folks; especially with multiple rconsoles open by different users simultaniously

I intend to develop this further, adding more features
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Jul 14, 2005 4:04 am    Post subject: Reply with quote

Update:

version 1.1 - added rci command (inquiring remote info about bot's uptime, server, machine's version, hostname, uptime, load averages); more to come
Back to top
View user's profile Send private message Visit poster's website
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Thu Jul 14, 2005 4:06 am    Post subject: Reply with quote

I was looking for such script some time ago. Your is quite nice, but:
1. firewall is a problem: your script relay to bot, what means that it open connection to it and if somebody blocked that port on firewall you won't be able to connect.
2. if you open remote console to few bots you will have a lot of outgoing connections.
3. You have to put your login and password on public (other users logged in on hub will see it) during sending login data (remote bot ask for that).

My plan was to make a remote console without loggin on remote bot (what seems to be impossible, i cannot execute any command on remote bot in that case, but it's just an idea). I also planned to assosiate console channels to remote bots. For example, on console channel 5 i have remote console opened to bot 'e5'. On console chnanel 6 to remote bot 'e6'. To enter that channel use .chat channel_number. This should be possible to do. With assoc module loaded you can even add names to console channel.
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Jul 14, 2005 4:18 am    Post subject: Reply with quote

none of your points is valid, and you obviously haven't bothered to test the script

1. a firewall is not a problem at all, those are local TCP connections, and firewalls don't block such, never
2. huh? what connections? everything goes through the botnet dude
3. noone will see your password, unless they can set console +t, which can only be set by owners, and owners have full control over their bot anyway

next time make a minimal effort to actually read the script you are bashing
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Jul 14, 2005 5:10 am    Post subject: Reply with quote

as of your plan, you can't open a console without logging in - unless you patch the bot and create the Tcl interface needed to control that from scripts

and a console channel, assoc'ed or not, still uses the same DCC idx, so I don't see the point of using such - other than filtering other remote consoles, which you normally wouldn't want to do - after all, the main purpose of this thing is to control the botnet from the hub, which implies the need of centralised information gathering (i.e. a single virtual console)

but even if that was to be desired, you couldn't implement it in Tcl alone - you have no Tcl interface to console chat channels
Back to top
View user's profile Send private message Visit poster's website
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sat Jul 16, 2005 2:30 pm    Post subject: minor newbie point Reply with quote

You may want to put in the info that the script must be loaded on all bots to work. (otherwise you may get a lot of "it doesn't work" responses)

I've only done limited testing, but it seems to be good work (as usual).
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Jul 16, 2005 2:39 pm    Post subject: Reply with quote

good point, I will do that

also, I need to fix an obscure bug in idx associating when a bot serves multiple rconsoles at the same time
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Jul 17, 2005 4:30 am    Post subject: Reply with quote

1.3 released, fixed all known bugs; please let me know if you find any (yes I'm aware [idx2hand] doesn't work on script idx, will circumvent that in 1.4)
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Jul 18, 2005 9:44 pm    Post subject: Reply with quote

1.4 is out, it will be the final one, unless some showstopper bug emerges
Back to top
View user's profile Send private message Visit poster's website
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Tue Jul 19, 2005 3:44 am    Post subject: Reply with quote

Nice work mate. Now if only I had my old botnet to try it on lol. I havent been on IRC for months only to test Sir_Fz's script out. I can see how your script will be extremely usefull for botnet management though. Wink
_________________
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Back to top
View user's profile Send private message Visit poster's website
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Tue Jul 19, 2005 4:41 am    Post subject: Reply with quote

Shocked bitchin' script demond Exclamation
it was made an immediate must-have script after just one day of testing with me Wink
thank you for releasing such a stable, well-built script! Tis a shame that more Masters of Code, such as yourself, do not make scripts public anymore, or completely obfuscate the tcl completely so no one can learn how it works. Strikelight & MC_8 immediately come to mind...bitchin' tcl scriptors, but tryin to learn by example from thier obfuscated scripts is damn near impossible, mainly due to lamers hijackin thier code and claiming they wrote it....
please keep crackin out superior scripts like this rconsole Laughing it lets me spend more time suckin' down Heinekens, and less time relaying to each damn bot Wink
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Jul 19, 2005 1:33 pm    Post subject: Reply with quote

well thanks for your kindness, I'd really have wanted to implement some sort of easier full access to other bots in the botnet, but alas, eggdrop doesn't provide an authentication mechanism other than interactive logging in with handle & password

but I guess rconsole does a fairly good job too, making botnet runners' lives easier, especially when coupled with netbots
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Jul 23, 2005 3:18 am    Post subject: Reply with quote

a nice side effect in rconsole is the fact that you don't need to create bot records for the sake of .relay anymore - rconsole will reach any linked bot on-the-fly, even if that bot is not on your userlist (of course, the remote bot must run rconsole too)
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Jul 30, 2005 3:35 am    Post subject: Reply with quote

it should be noted that you need to be cautious when using rconsole in heterogenous botnet environments - that is, botnets including foreign bots, not your own only; for example, if you reply on the password prompt with .rc * password, each bot in the botnet, including foreign linked bots that don't run rconsole, will receive the password - and it could be sniffed

I'm willing to implement broadcasting to known and flagged bots only, if there is enough demand for this; if not, I won't bother... my botnet consists of my bots anyway Razz
Back to top
View user's profile Send private message Visit poster's website
sKy
Op


Joined: 14 Apr 2005
Posts: 194
Location: Germany

PostPosted: Mon Aug 01, 2005 10:15 pm    Post subject: Reply with quote

I think it might be nice if you add this.

Anyway, .rc * password isn`t a good idea. On differnt bots i got different handles and passwords (differnet botowners). So if you want a suggestion it will be cool if you improve some kind of "logingroups" which are configurable in the config. Maybe a autologin will be nice too.

Another point, syntax: .rc bot,bot,?bot? [command|text]. That`s not that much important but i think not to hard to add.

The lest small suggestion, if i am logged in on partyline of the bot "mybot" and i type .rc mybot anything, it should reponse mybot - that`s me or something like that and not mybot is not on the botnet.

Anyway... This is one of the best scripts i have seen arround in the last time. Good job.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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