Archive
winboxHunter
Prerequisites:
– Python2.7
– Impacket (svn checkout http://impacket.googlecode.com/svn/trunk/ impacket-read-only)
– Ruby
– Veil Evasion (git clone https://github.com/Veil-Framework/Veil-Evasion.git)
Description:
If you are working on a penetration test remotely, its sometimes hard to determine when the users start work or connect their laptops to the network.
winboxHunter is useful if you have managed to capture and cracked a bunch of NTLM credentails and want to run Metasploit against these windows boxes as and when they are connected to the network.
winboxHunter listens for NBNS broadcast packets so that when a new winBox is connected to the network, it will use the Impacket scripts (psexec.py and wmiexec.py) to push an executable onto the winBox and runs it.
In the background, winboxHunter runs Metasploit with payload handler (multi/handler) and listens for incoming connections from the winboxes.
You might want to modify autorunCmd.rc to specify the Metasploit commands you want to run on the pwned winbox upon connecting back to Metasploit.
See meterpreter.rc and autorunCmd.rc for more details.
If a host changes its IP address due to DHCP lease expiration, it will not attempt to exploit the winbox twice.
Format of password.txt
domain/username password
Instructions:
Meterpreter executable
You only need to use one of the below 2 options
– You can either use your own meterpreter payload executable using the -e or –exe argument (payload=windows/meterpreter/reverse_https, rport=8443) or
– You can use the -n or –enableVeil argument to generate a meterpreter payload executable using Veil Evasion
You can run winboxHunter using the below sample command
ruby winboxHunter.rb -n -f password.txt -v
When you run winboxHunter, a linux screen with the name “msfscreen” will be created and msfconsole will be executed. You can connect to the screen via the below command
screen -dr msfscreen
The source code for winboxHunter can be found at https://github.com/milo2012/winboxHunter
Categories
- Automation
- BeEF Project
- Captcha Cracking
- Client Side Attacks
- Databases
- Exploitation
- Featured Publications
- Intelligence Gathering
- iPhone Apps
- iPhone Espionage
- Location Tracking
- Metasploit
- Misc Security
- Oracle
- Password Cracking
- Penetration Testing
- Pentest Scripts
- Phishing
- Post Exploitation
- Reversing Firmwares
- Social Engineering
- SQL Injection
- Uncategorized
- Web Application Testing
Recent Posts
Twitter Updates
- RT @Arno0x0x: And the list goes on and on: updated my list of Windows oneliners to both download and execute arbitrary code - Kudos @subTee… 4 hours ago
- RT @4shitak4: My writeup for CVE-2018-5146 blogs.360.cn/blog/how-to-ki… 1 day ago
- RT @skorov8: I did a thing to get domain usernames without knowing any creds. Uses NTLM Relay + lsarpc + RID cycling. https://t.co/32JwYAr3… 1 day ago
- RT @EdOverflow: Bug bounty tip: Look for GitLab instances on targets or belonging to the target. When you stumble across the GitLab login p… 1 day ago
- RT @_FireFart_: as everyone is posting #drupalgeddon2 exploits for Drupal 8.x here is a working unauthenticated RCE POC for Drupal 7.x: htt… 2 days ago
- RT @HanseSecure: Empire & Tool Diversity: Integration is Key - from Empire to MSF/Cobalt and the other way arround 😎 #infosec #pentest #r… 3 days ago