Created
March 22, 2020 19:53
-
-
Save Anirbansingha1/13855eb43382efdc2b4eb16ec79705db 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+'_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