Skip to content

Instantly share code, notes, and snippets.

@kkirsche
Created March 21, 2018 20:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kkirsche/7d971d8012fad25d29fd3a286937da34 to your computer and use it in GitHub Desktop.
Save kkirsche/7d971d8012fad25d29fd3a286937da34 to your computer and use it in GitHub Desktop.
#!/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