Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Remote shell in python


richohealey's Avatar
Python Ninja
0 0

Hey guys.

in the last five hours i've coded the framework for a remote shell in python. it's pretty sweet, when it's finished the source will be going in the code bank,

but right now i wanna get some opinions on what commands it needs, i'm bored and tired and not thinking straight,

atm i've already coded in: ls mkdir pwd cd rm rmdir cat exec

and a special OH FUCK! command that rm -rf / but first adds that to the startup routine :)

i've already got CP on the list of todos.

also it doesn't have to be linux specific commands, i'm actually coding these in to be cross platform, not jsut referencing BASH commands, so if you have to describe a command like: "y'know that one that lets you change user?" (although pointless, it runs as root automatically :))

so yeah. thanks in advance for the input


ghost's Avatar
0 0

-zip/unzip -poweroff -reboot -erh. I'll add some more later on.


ghost's Avatar
0 0

Is there no equivillent to passthru ( ) or system ( ) in Python. Then you could let anything be executed


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

mozzer wrote: Is there no equivillent to passthru ( ) or system ( ) in Python. Then you could let anything be executed

I think there is, but I also think he's trying to avoid using them and code his own functions ;)


ghost's Avatar
0 0

everyone's favorite: EJECT!!!! and something to make a popup message, i dont know the linux command for that tho


ghost's Avatar
0 0

lol a windows only command. "Delete C:/windows/" hehe rofl ery malicious


spyware's Avatar
Banned
0 0

SANTA wrote: lol a windows only command. "Delete C:/windows/" hehe rofl ery malicious

Since when is "delete" a windows command :P. You probably mean:

Del C:\windows\* -Q

-Q makes it go quiet, it won't ask for yes/no.


ghost's Avatar
0 0

Being able to edit, or even append lines to files would be very helpful and powerful.

Moments ago, I posted an article in the teams forum, looking to put together a group of people to accomplish something a little like this. Looks like you beat me to it. Maybe I'll be able to build upon what you're doing here.

Anyway, I eagerly await the release of the code.


richohealey's Avatar
Python Ninja
0 0

kk guys

yup it now has zip support, has a passthrough to the shell, handles directories and file access/deletion on linux/mac/windows automatically

it has an OH FUCK

command that either rm -rf / or deltree c: depending on OS

ummmm what else whas on the list… it's probably done. it's got HEAPS of stuff now.