Skip to content

Instantly share code, notes, and snippets.

@Anirbansingha1
Created March 22, 2020 19:53
Show Gist options
  • Select an option

  • Save Anirbansingha1/13855eb43382efdc2b4eb16ec79705db to your computer and use it in GitHub Desktop.

Select an option

Save Anirbansingha1/13855eb43382efdc2b4eb16ec79705db 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+'_dir.txt'
line='https://'+line
dir_cmd='gobuster dir -u '+line+' -t '+thread+' -w /mnt/software/dirsearch-wordlist.txt -x .php,.html,.asp -o '+output
os.system(dir_cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment