Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nmap in subbrute #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Nmap in subbrute #28

wants to merge 2 commits into from

Conversation

jahrek
Copy link

@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

@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