Forum Thread: Python [ Bind Shell ]

To connect back i recommend to use netcat command :)

nc serveraddress port

here is my code :

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


you can do this using the is module:

If "cd" in command:
Directory = command3:

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