buckyroberts / Turtle

Python reverse shell.
292 stars 148 forks source link

DIR command from Windows is not decoded properly #13

Closed N-faycal closed 8 years ago

N-faycal commented 8 years ago

Windows DIR command returns characters which can't be decoded using UTF-8. It is due to the fact that DOS uses legacy encoding (Cp437 for US implementations). Since it varies a lot from one language to another and it is specific to one platform, we resolve this issue by replacing those unknown characters with �. This way, command outputs are still returned.