Created
March 22, 2020 10:28
-
-
Save Anirbansingha1/5bc27251b2c4f47cd23424c710b65a50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import sys,os | |
| domain_file=sys.argv[1] | |
| thread=sys.argv[2] | |
| with open(domain_file) as d: | |
| for line in d: | |
| line=line.strip() | |
| output=line+'_masscan.txt' | |
| mass_cmd='masscan -p1-65535 --max-rate='+str(thread)+' -oL '+output+' '+line | |
| os.system(mass_cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment