Writing reverse shell code in Python – Digitalmunition




Home Forums Writing reverse shell code in Python

This topic contains 1 reply, has 2 voices, and was last updated by  youngfuture7 1 month ago.

  • Author
    Posts
  • #280569

    anonymous
    Participant

    I wrote the server and client side code for a reverse shell with the socket module. Do I have to use SSL to encrypt the connection and if so how?

  • #280570

    youngfuture7

    I think RSA works too. Even though I used that for communication and not the connection itself, there are plenty of guides online about RSA in python

  • #280571

    NetflixMemes

    [https://docs.python.org/3.2/library/ssl.html](https://docs.python.org/3.2/library/ssl.html) to wrap your actual socket. However, I can’t recommend doing SSL using python. Usually you’ll want to hide your server behind an actual webserver like NGINX/Apache and let them handle that kind of stuff.

  • #280572

    i_hacked_reddit

    No, you dont have to. Just ensure that your server actually binds to the intended port, is reachable, and your firewall allows for you to call out in addition to your local port being reachable from the outside.

    But, you totally can use SSL if you want, but it isn’t necessary.

  • #280573

    huzibizi

    i dont think a shell can connect to the internet, but if you coded a reverse shell i guess it makes sense if it connects to the internet. You don’t have to use SSL but it is recommended I guess. You should code a reverse beach next

You must be logged in to reply to this topic.