Skip to content

Nmap in subbrute#28

Open
jahrek wants to merge 2 commits into
TheRook:masterfrom
jahrek:nmap-in-subbrute
Open

Nmap in subbrute#28
jahrek wants to merge 2 commits into
TheRook:masterfrom
jahrek:nmap-in-subbrute

Conversation

@jahrek
Copy link
Copy Markdown

@jahrek jahrek commented Sep 24, 2015

Hello ;-)

Thank you for sharing your software. It really helping me in my work ;-)

But the main problem for me was to automate process of using subbrute with nmap. Of course I can make some little scripts and It can help. But I thought that maybe I will go further and maybe I can scan found domains with nmap in subbrute ;-)

How it works?
For enable nmap, use --nmap option. This option, will scan found domain with default parameters "--top-ports 420". If you want to change nmap arguments, use: --nmap-args="" to put your own type of scan.
My changes scan ip of server only once, so you wont make any necessary traffic. It works with json too.

By the way, I repaired bug in json mode. If you had list of servers it was writing only last domain, casue file write mode was "w". I changed it to "a".

This is my first code written in python. So git blame me a lot;-)

Copy link
Copy Markdown

@OMantere OMantere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're creating a new nmap subprocess for each host... You can also create a list of hosts and batch them into one call...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants