buckyroberts / Turtle

Python reverse shell.
294 stars 146 forks source link

(linux) cd to a folder returns an error while executing correctly #18

Closed N-faycal closed 8 years ago

N-faycal commented 8 years ago

/Python-Reverse-Shell/Multiple_Clients> cd .. /Python-Reverse-Shell> cd Multiple_Clients /bin/sh: 1: cd: can't cd to Multiple_Clients /Python-Reverse-Shell/Multiple_Clients>

N-faycal commented 8 years ago

Reason for this bug is that os.chdir is called before executing subprocess.Popen. Clients tries to switch twice to the same directory.