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
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!
Thank you so much!
Your teaching style is engaging and easy to follow. I can tell you're passionate about coding, and it's contagious!
Glad you enjoy it!
This kid is better than me at this stuff lol. Got a sub for me keep up the good work.
Thank you so much!
Damn lil homie youre an inspiration. Gives me hope for the younger generation.
Thank you! Really appreciate it!
broooooo i just just have to words to discribe how good you are 😀
Thanks!
you have a bright future ahead of you young man 💪🏻
Damn Really young but a great hacker
Thank you!
Very helpful. Thank you!
You're welcome!
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
omg u are so good bro
very good . great
Thank you!
Thank you for sharing! :)
Thanks for watching!
How to run a cmd command through that?
Like ipconfig
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.
@@hassamohammed i get an error if i run ipconfig
What type of computer is the victim computer?
@@hassamohammed windows
Good
Thanks
❤
dude this is sick!!! great joy very engaging and easy follow along! ty for remotovating me to retry (ethical) hacking !
Thanks! i'm glad I helped you out!
Thats crazy for your age , keep going!!
Thank you! Will do!
Your explanation is very nice❤
Thanks a lot 😊
bro im 14 years old and also learning python and hacking i would like to talk to more bro
☺
Absolutely, unfortunately I have school, and many exams coming up, so I need to direct my focus towards that.
@@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
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.
ok .mars420tame same pfp cuz there are other accounts wtih the same name
@@hassamohammed
mashaAllah you're very good, you have a great future ahead :)
Thank you 🙏!
@@hassamohammed are you on discord?
Yeah its hassamohammed_
@@hassamohammed thanks, Ill add u
Would I be able to remote control a desktop through this? ethically
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.
@@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.
Mhm
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.
Have you tried quasar rat you could gain complete access of a system with that.
what is your extension to have vs code like that??
Like what?
Hmm intresting but you should fix cd command
Great suggestion!
@@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)
How old are you?
I do not wish to share that information, however if you enjoy my videos, please like and subscribe.
Hey, I’m 13, I checked with my dad, and he told me that I’m old enough to share my age.
@@hassamohammed ما شاء الله عليك
ليتني بدأت اتعلم البرمجة وانا في عمرك, ودي أبدأ الحين بس الوقت ما يسمح
الله يسعدك ويوفقك
Hi, i started learning code the last year, now im 14, i think that coding Is such a beautiful thing
10
it says "is not recognized as an internet or external command, operable program or batch file" i nthe cmd thing
Can you send everything that it says?
@@hassamohammed i just need help please
@@hassamohammed my disc ord Is flhu
@@hassamohammedpls
Hello good video! But I have a question, why do most people use reverseshell on kali linux ?
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?
Yeah my discord @hassmohammed_
You know alot of things about python, but is this thing going to work if the victim is not connect to the same network?
This might expose your IP to the victim because you can see the packets being sent by the python script using wireshark
Yeah it’s a beginner method, I’m working on a advanced one.
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
in the future do not show IP address.
Great content.
Less explaining fundamentals more on explaining the code please 👊🏻
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)
@@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 👊🏻💪🏻❤
Thanks for the ideas, im tryna pump out "yt friendly" content, and i might do that, that sounds like an amazing video idea!
S.bind((SERVER_IP . PORT))
Str object cannot be interpreted as an integer 😢
How to solve it ?
Thanks
it dossen't say the whole github¨ can u fix that please thank u and your so good at hacking!!!!
It does? Ill check it out, thank you so much!
Hi I got [WinError 10060] do you have any issue ?
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]
How do i know more commands?
just gonna assume you changed your ip after making this
Yeah
@@hassamohammed also just wanted to say your website says you are a "certified cybersecurity expert" even though your only 14?
Yeah, I’ve gotten official cybersecurity certification.
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!
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?
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.
@@newbpod yeah u can i just need to add a few lines to the server and client codes
@@antidetect3796 what lines
@@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
i like skids
I don't understand your comment, could you please explain?
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
Kids don't do dumb stuff nah
Can you please expound?