Forum Thread: Python [ Bind Shell ]

To connect back i recommend to use netcat command :)

nc serveraddress port

here is my code : http://pastebin.com/2it5gy1P

facing any problem with python ? contact me ^.^ :)

Our Best Hacking & Security Guides

New Null Byte posts — delivered straight to your inbox.

5 Responses

nice script .... thanks for sharing

Help :/ I can't do cd with this. I've tried writing things like this myself but the problem has always been the same and its really annoying. There is no way to run the cd command in python. HALP -.-

Robyn

you can do this using the is module:

If "cd" in command:
Directory = command3:
os.chdir(Directory.split())
pass

Then you can show the current working directory to the server using os:

while True:
cwd = os.getcwd()
conn.send(str (cwd))
data = conn.recv(1024)
blah blah blah...

this script allow to make 1 connection, how modify it to allow more connection

Share Your Thoughts

  • Hot
  • Active