Created
March 21, 2018 20:27
-
-
Save kkirsche/7d971d8012fad25d29fd3a286937da34 to your computer and use it in GitHub Desktop.
This file contains 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/env python3 | |
from os import system, fsencode, fsdecode, listdir | |
from multiprocessing import Pool | |
def gobust(fp): | |
f_name = fp.split('/')[-1].split('.txt')[0] | |
system('gobuster -u http://URLHERE -w {fp} -x txt,php -o gobuster-80-{f_name}.txt'.format(fp=fp, f_name=f_name)) | |
if __name__ == '__main__': | |
wordlists = [] | |
p = ['/usr/share/seclists/Discovery/Web-Content/', '/usr/share/wordlists/dirbuster/'] | |
for path_name in p: | |
d = fsencode(path_name) | |
for f in listdir(d): | |
fn = fsdecode(f) | |
if fn.endswith('.txt'): | |
wordlists.append(path_name + fn) | |
pool = Pool(5) | |
pool.map(gobust, wordlists) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment