Create a Reverse Shell Backdoor with Python

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • In today's video we will be creating our very own shell backdoor. Also how to turn it into an exe to lower suspicion. In my previous video, I taught you how to use a pre-made backdoor generator to generate a reverse shell backdoor. We will use Python to create it. It is very simple and easy to make. If you liked today's video, make sure to like💙 and subscribe🔴 for more content like this, and for any questions, comments, or concerns, please make sure to ask in the comment section below, and I will try to get back to you as soon as possible!
    ----------------------
    What Is a Reverse Shell?
    A reverse shell, also known as a remote shell or “connect-back shell,” takes advantage of the target system’s vulnerabilities to initiate a shell session and then access the victim’s computer. The goal is to connect to a remote computer and redirect the input and output connections of the target system’s shell so the attacker can access it remotely. Reverse shells allow attackers to open ports to the target machines, forcing communication and enabling a complete takeover of the target machine. Therefore it is a severe security threat. This method is also commonly used in penetration tests.
    What is Python?
    Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured, object-oriented and functional programming.
    ----------------------
    Resources:
    • Install a Virtual Machine
    www.python.org...
    code.visualstu...
    Finished Code:
    github.com/has...
    ----------------------
    ⚠️Disclaimer⚠️:
    All videos and tutorials are for informational and educational purposes only. I believe that ethical hacking, information security, and cybersecurity should be familiar subjects to anyone using digital information and computers. We believe that it is impossible to defend yourself from hackers without knowing how hacking is done. The tutorials and videos provided on this channel are only for those interested in learning about Ethical Hacking, Security, and Penetration Testing. Hacking tutorials are against the misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used.
    ----------------------
    Ignore:
    Hacking
    Fun
    Computers
    Windows
    11
    10
    MacOS
    Mac
    OS
    Linux
    Kali
    Hack
    How to
    Learning
    Tech
    Technology
    Easy
    Python
    Coding
    Visual Studio Code
    UA-cam
    Windows
    Kali
    Linux
    Hacking
    How to
    fun
    cool
    education
    tech
    computers
    interesting
    FUD
    Fully Undetectable
    Quality
    Easy
    Quick
    Hacking
    Coding
    Python
    VS Code
    Powershell
    CMD
    Command Line

КОМЕНТАРІ • 115

  • @bugurah
    @bugurah 9 місяців тому +15

    You're amazing! Kids at your age are doing stupid tiktoks and cringe trends while you're here teaching literally how to hack. You're smart and passionate, keep up the good work, congrats to you and your parents!

  • @SurahVerse-bw8ts
    @SurahVerse-bw8ts Рік тому +23

    Your teaching style is engaging and easy to follow. I can tell you're passionate about coding, and it's contagious!

  • @brad6817
    @brad6817 Рік тому +19

    This kid is better than me at this stuff lol. Got a sub for me keep up the good work.

  • @eonhet7826
    @eonhet7826 5 місяців тому +3

    Damn lil homie youre an inspiration. Gives me hope for the younger generation.

    • @hassamohammed
      @hassamohammed  5 місяців тому +2

      Thank you! Really appreciate it!

  • @LakosGames
    @LakosGames 9 місяців тому +5

    broooooo i just just have to words to discribe how good you are 😀

  • @originalbinaryhustler3876
    @originalbinaryhustler3876 9 місяців тому +6

    you have a bright future ahead of you young man 💪🏻

  • @hidden_network
    @hidden_network Рік тому +13

    Damn Really young but a great hacker

  • @mahmoudhassan8239
    @mahmoudhassan8239 Рік тому +12

    Very helpful. Thank you!

  • @JackCorner-r3v
    @JackCorner-r3v 6 місяців тому +1

    I was trying to do the same thing and actually achieved it but then it would only accept one message that's when I came across this video and realized that I needed an another while True so thanks

  • @liljoker3621
    @liljoker3621 Рік тому +16

    omg u are so good bro

  • @vhappyspirit2369
    @vhappyspirit2369 Рік тому +14

    very good . great

  • @stephaniehonore3962
    @stephaniehonore3962 9 місяців тому +4

    Thank you for sharing! :)

  • @Cookie_Hub
    @Cookie_Hub Рік тому +13

    How to run a cmd command through that?

    • @Cookie_Hub
      @Cookie_Hub Рік тому +9

      Like ipconfig

    • @hassamohammed
      @hassamohammed  Рік тому +12

      Well the second you run python rat.py, on the victims end, while first running the server, through the server, it will show >>> just type in ipconfig, and it will work. If you enjoy my content please like and subscribe, if you have any other questions, comments, or concerns, please feel free to ask.

    • @Cookie_Hub
      @Cookie_Hub Рік тому +11

      @@hassamohammed i get an error if i run ipconfig

    • @hassamohammed
      @hassamohammed  Рік тому +11

      What type of computer is the victim computer?

    • @Cookie_Hub
      @Cookie_Hub Рік тому +11

      @@hassamohammed windows

  • @gaatjenietsaan88
    @gaatjenietsaan88 Рік тому +6

    Good

  • @originalbinaryhustler3876
    @originalbinaryhustler3876 9 місяців тому +3

  • @silas661
    @silas661 7 місяців тому +1

    dude this is sick!!! great joy very engaging and easy follow along! ty for remotovating me to retry (ethical) hacking !

    • @hassamohammed
      @hassamohammed  7 місяців тому +2

      Thanks! i'm glad I helped you out!

  • @acquittaI
    @acquittaI 8 місяців тому +1

    Thats crazy for your age , keep going!!

  • @Free_live
    @Free_live 8 місяців тому +1

    Your explanation is very nice❤

  • @mars420tame
    @mars420tame Рік тому +5

    bro im 14 years old and also learning python and hacking i would like to talk to more bro

    • @hassamohammed
      @hassamohammed  Рік тому +2

      Absolutely, unfortunately I have school, and many exams coming up, so I need to direct my focus towards that.

    • @mars420tame
      @mars420tame Рік тому +1

      @@hassamohammed same bro i will start school in 5 days but when u are free I really need a friend that like the same stuff I do soo if u don't mind and I tried to join the discord it didn't work

    • @hassamohammed
      @hassamohammed  Рік тому +1

      Sure thing, however I will be very busy, becuase of school, so I won't be using it often. What's your Discord username, so I can send you a friend request.

    • @mars420tame
      @mars420tame Рік тому +1

      ok .mars420tame same pfp cuz there are other accounts wtih the same name
      @@hassamohammed

  • @theyellowflash100
    @theyellowflash100 6 місяців тому +1

    mashaAllah you're very good, you have a great future ahead :)

  • @wiidzon
    @wiidzon Рік тому +4

    Would I be able to remote control a desktop through this? ethically

    • @hassamohammed
      @hassamohammed  Рік тому +1

      No as you would have to be on the same network, but you could configure your network to let it work outside of it too.

    • @wiidzon
      @wiidzon Рік тому +1

      @@hassamohammed I’ve already configured it to work outside. I’ve looked up some information on the subject but most of them were of kali Linux commands lol. I’m just trying to operate through windows.

    • @hassamohammed
      @hassamohammed  Рік тому +1

      Mhm

    • @wiidzon
      @wiidzon Рік тому

      Would it be something like coding something similar to a kali Linux command? For windows? I mean it’s screen viewing and remotely having control. P.S just restating it’s all ethical. Sometimes peers at work have a difficult time configuring some programs (computers aren’t really their thing) so when I am at home office I would like to be able to help them out that way.

    • @Clara-kj8wc
      @Clara-kj8wc 10 місяців тому

      Have you tried quasar rat you could gain complete access of a system with that.

  • @adolphesimonethinevako121
    @adolphesimonethinevako121 11 місяців тому +2

    what is your extension to have vs code like that??

  • @filipjukelson7144
    @filipjukelson7144 Рік тому +4

    Hmm intresting but you should fix cd command

    • @hassamohammed
      @hassamohammed  Рік тому +6

      Great suggestion!

    • @filipjukelson7144
      @filipjukelson7144 Рік тому +5

      @@hassamohammed i could try make some commands more simple and some commands work and then i can send you the source code (coz i am a great python dev)

  • @Vincent.752
    @Vincent.752 Рік тому +15

    How old are you?

    • @hassamohammed
      @hassamohammed  Рік тому +19

      I do not wish to share that information, however if you enjoy my videos, please like and subscribe.

    • @hassamohammed
      @hassamohammed  Рік тому +19

      Hey, I’m 13, I checked with my dad, and he told me that I’m old enough to share my age.

    • @0xZHRA
      @0xZHRA Рік тому +9

      @@hassamohammed ما شاء الله عليك
      ليتني بدأت اتعلم البرمجة وانا في عمرك, ودي أبدأ الحين بس الوقت ما يسمح
      الله يسعدك ويوفقك

    • @Dum-E13
      @Dum-E13 8 місяців тому

      Hi, i started learning code the last year, now im 14, i think that coding Is such a beautiful thing

    • @RAS02023
      @RAS02023 6 місяців тому

      10

  • @FlhuYT
    @FlhuYT Рік тому +1

    it says "is not recognized as an internet or external command, operable program or batch file" i nthe cmd thing

    • @hassamohammed
      @hassamohammed  Рік тому +2

      Can you send everything that it says?

    • @FlhuYT
      @FlhuYT Рік тому

      @@hassamohammed i just need help please

    • @FlhuYT
      @FlhuYT Рік тому

      @@hassamohammed my disc ord Is flhu

    • @FlhuYT
      @FlhuYT Рік тому

      @@hassamohammedpls

  • @mattyan9294
    @mattyan9294 6 місяців тому

    Hello good video! But I have a question, why do most people use reverseshell on kali linux ?

  • @groot3510
    @groot3510 5 місяців тому +1

    Hi Hassan, I am not sure if you will see this but I have a demonstration about Ransomware. It seems, your code is the only one that's been working however is it possible to use this python code to deploy an exe file(the malware) to the victim's laptop? Once again I have no ill intention, this is for a demo. Can I contact you in any way?

    • @hassamohammed
      @hassamohammed  5 місяців тому +1

      Yeah my discord @hassmohammed_

  • @manrajdhillon1041
    @manrajdhillon1041 6 місяців тому

    You know alot of things about python, but is this thing going to work if the victim is not connect to the same network?

  • @quexz7315
    @quexz7315 Рік тому +2

    This might expose your IP to the victim because you can see the packets being sent by the python script using wireshark

    • @hassamohammed
      @hassamohammed  Рік тому +1

      Yeah it’s a beginner method, I’m working on a advanced one.

    • @quexz7315
      @quexz7315 Рік тому +1

      I personally use a JSONBin that I can update and read anytime which means that I can send commands to the JSONBin that would then get read and executed by the victim script. After it's done it would update the data to include an output string for the master script to read and the process would repeat. @@hassamohammed

  • @originalbinaryhustler3876
    @originalbinaryhustler3876 9 місяців тому +1

    in the future do not show IP address.
    Great content.
    Less explaining fundamentals more on explaining the code please 👊🏻

    • @hassamohammed
      @hassamohammed  9 місяців тому +2

      Yeah, my IP address is different now, thanks tho 😂😂😂. I appreciate your feedback, any video suggestions? (I need youtube-friendly content for a bit until my strike in lifted)

    • @originalbinaryhustler3876
      @originalbinaryhustler3876 9 місяців тому +2

      @@hassamohammed oh wow you got a strike already, I would suggest a simple video of a server and client python chat script via cmd, then maybe a next video you could add aes and ssl with https or whatever.
      Maybe add a function so when thebchat is exited it clears cmd and powershell or bash history.
      Just random ideas btw Im supporting your channel 100 👊🏻💪🏻❤

    • @hassamohammed
      @hassamohammed  9 місяців тому +2

      Thanks for the ideas, im tryna pump out "yt friendly" content, and i might do that, that sounds like an amazing video idea!

  • @WORSHIPALLAH-mr6uy
    @WORSHIPALLAH-mr6uy 5 місяців тому

    S.bind((SERVER_IP . PORT))
    Str object cannot be interpreted as an integer 😢
    How to solve it ?
    Thanks

  • @blueknifepvp
    @blueknifepvp 7 місяців тому +1

    it dossen't say the whole github¨ can u fix that please thank u and your so good at hacking!!!!

    • @hassamohammed
      @hassamohammed  7 місяців тому +1

      It does? Ill check it out, thank you so much!

  • @eddybouchouareb
    @eddybouchouareb 5 місяців тому

    Hi I got [WinError 10060] do you have any issue ?

  • @nxznb
    @nxznb 6 місяців тому

    Hey i need some help and i wish you could post more btw,
    after i type "calc" or anythig it works opens calc but then the rat script closes and says:
    , line 14, in
    cmd = s.recv(1024).decode()
    ConnectionAbortedError: [WinError 10053]

  • @InfinityExternal
    @InfinityExternal 5 місяців тому

    How do i know more commands?

  • @illumi1749
    @illumi1749 8 місяців тому +1

    just gonna assume you changed your ip after making this

    • @hassamohammed
      @hassamohammed  8 місяців тому +2

      Yeah

    • @illumi1749
      @illumi1749 8 місяців тому +1

      @@hassamohammed also just wanted to say your website says you are a "certified cybersecurity expert" even though your only 14?

    • @hassamohammed
      @hassamohammed  7 місяців тому +2

      Yeah, I’ve gotten official cybersecurity certification.

  • @newbpod
    @newbpod Рік тому +3

    Hi, its giving me the error:
    s.bind((SERVER, PORT))
    PermissionError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
    Great video by the way and id really appriciate your help!

    • @newbpod
      @newbpod Рік тому +1

      I figured it out lol i have a question what else can you excute? can you download files from the OS the rat is runned on?

    • @hassamohammed
      @hassamohammed  Рік тому +1

      Not in the current one, but when I release my 200 subscriber special video, it will show you how to set up and use a RAT through discord! With even more commands.

    • @antidetect3796
      @antidetect3796 Рік тому +1

      @@newbpod yeah u can i just need to add a few lines to the server and client codes

    • @newbpod
      @newbpod Рік тому +1

      @@antidetect3796 what lines

    • @antidetect3796
      @antidetect3796 Рік тому +1

      @@newbpod example open the client code and add condition check for command if the command is given by the server then check which file path is given provided by the server then the client would open that file and turn it into bytes data encode it and send it to the server and in the server code add a few lines that prepair the server to receive the encoded data convert and write it to a file . That's how you can download and upload files

  • @blackanonymous
    @blackanonymous 11 місяців тому

    i like skids

    • @hassamohammed
      @hassamohammed  11 місяців тому

      I don't understand your comment, could you please explain?

    • @blackanonymous
      @blackanonymous 11 місяців тому +1

      a skid (script kiddie) is a he says that he can grab your ip and he knows how but a skid is a b*tch who doesn't know any programing languages (you are not a skid) anyways good tutorial@@hassamohammed

  • @dimalmfao
    @dimalmfao Рік тому

    Kids don't do dumb stuff nah