Skip to content

Commit

Permalink
Merge pull request #61 from NickstaDB/bugfix/wp-userenum-clear-wppara…
Browse files Browse the repository at this point in the history
…muser

Reset wpparamuser between scans in list mode.
  • Loading branch information
Tuhinshubhra authored Mar 22, 2019
2 parents 804faf9 + 6ed3668 commit 3fe846e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepscans/wp/userenum.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ def start(id, url, ua, ga, source):

# the regular way of checking vua user Parameter -- For now just check upto 20 ids
cmseek.info('Harvesting usernames from wordpress author Parameter')
global wpparamuser
wpparamuser = []
usrrange = range(31) # ain't it Obvious
threads = [threading.Thread(target=wpauthorenum, args=(ua,url,r)) for r in usrrange]
for thread in threads:
thread.start()
for thread in threads:
thread.join()
global wpparamuser
# Combine all the usernames that we collected
usernames = set(wpjsonuser+jpapiuser+wpparamuser)
if len(usernames) > 0:
Expand Down

0 comments on commit 3fe846e

Please sign in to comment.