Skip to content

Instantly share code, notes, and snippets.

@Anirbansingha1
Created March 22, 2020 10:28
Show Gist options
  • Select an option

  • Save Anirbansingha1/5bc27251b2c4f47cd23424c710b65a50 to your computer and use it in GitHub Desktop.

Select an option

Save Anirbansingha1/5bc27251b2c4f47cd23424c710b65a50 to your computer and use it in GitHub Desktop.
#!/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