xp4xbox / Python-Backdoor

This project is a cross-platform backdoor/reverse shell and post-exploitation tool written in Python3
GNU General Public License v3.0
707 stars 204 forks source link

Encrypt/Decrypt all data being transfered. #39

Closed xp4xbox closed 4 years ago

xp4xbox commented 4 years ago

Encrypt everything being transferred and then decrypt on receiving using a shared key.

tidely commented 4 years ago

You should probably add a branch for this

xp4xbox commented 4 years ago

This can be done using pycryptodome.

tidely commented 4 years ago

cryptography is another solid option

xp4xbox commented 4 years ago

I tried it before it didn't work it would crash when sending the data over as bytes.

tidely commented 4 years ago

Cryptography should work fine, probably a typo or something

xp4xbox commented 4 years ago

lol it wasnt a typo, it was something not working with converting the data types iirc. Il try it again and see what the error was.

xp4xbox commented 4 years ago

I tried this again by modifying the recv and send functions but there seems to be a problem when decrypting the data using the key that was sent to the client by the server,

xp4xbox commented 4 years ago

If you want to give it a go @Y4hL .

tidely commented 4 years ago

If you upload the code you have to far somewhere I can help you out. I probably won't write it myself, since it would probably end up like my own project.

xp4xbox commented 4 years ago

oh shit your working on your own, that's nice. Il push the code under a new branch.

xp4xbox commented 4 years ago

I just pushed the changes to the new branch.

im getting invalid token and padding errors.

tidely commented 4 years ago

You are getting an error because you have not setup a proper protocol for sending over large amounts of data.

Example: Currently when you are sending a file you are sending the file size to the server and then sending the file over encrypted. This does not work, because when encrypted, the file becomes bigger and the server is no longer receiving for the right amount of bytes.

xp4xbox commented 4 years ago

ok il fix that.