Python Reverse Shell Tutorial - 4 - Client to Server Connection

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hi, it seams you are cutting the binary bytes before decoding. If the coding needs 2 or more bytes for a single char, you are corrupting the decoding or unable to decode.
I think you should grab the 2 chars 'CD' after decoding the bytes received.

jdaniele
Автор

There is a problem in client side
If you give a command (cd ..) to exit a directory it will say no such file or directory and will clos connection because it taught you want to enter a folder named " .. "
So what you need is where you did if data[:2] =="cd" add and [3:] #".
."
Or do it with try <this>
Except do this

TOn-fxgr
Автор

05:00 Unless there's an error, like, for example, if the directory doesn't exists, or you don't have permissions to access it ;)

bonbonpony
Автор

So is the host the Ik u what to attack?

digital_gaming
Автор

Bucky, shouldn't line 14 be: if data.decode("utf-8") == 'cd' or data[:3].decode("utf-8") == 'cd ': so that commands like "cda" or "cdx" are ignored? The way you implemented it everything starting with "cd" is treated as change directory. Cheers, mate.

vincepod
Автор

what if I am using linux OS such as mint .. what should I use instead of dir

katrix
Автор

What if your client side computer doesn’t have python installed?

AJ-pzug
Автор

Does it matter what OS the client is using?

TheShadowSuave
Автор

dude, your code is not working for others, check it back.

tavoochoa
Автор

what could i import to this code to make it keep trying to connect to the server. For if the server isn't listening yet?

randomrobinnnn
Автор

I have a problem, when i use 'dir' in client output it shows all folders, files... but in server output where is a part of it, not all, can u help me ?
Like not all information is sending to me.
So sometimes, i have to write 'dir' 2 or 3 times to get all folders, files...
please help !))
If i try to switch on another DISK: "cd F:" - i do that, but after that i get this problem...

tricoliciandrei