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 ^.^ :)

4 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...

Share Your Thoughts

  • Hot
  • Active