add joomla component update script

This commit is contained in:
h00die 2020-11-21 12:36:21 -05:00
parent e2e086ba6f
commit 92a9d50ea9
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/usr/bin/python3
import requests
new_com = requests.get("https://raw.githubusercontent.com/rezasp/joomscan/master/exploit/db/componentslist.txt").text
with open('data/wordlists/joomla.txt', 'r') as j:
old = j.read().splitlines()
for com in new_com.splitlines():
if not 'components/%s/'%(com) in old:
old.append('components/%s/'%(com))
print('[+] Adding: components/%s/'%(com))
old.sort()
with open('data/wordlists/joomla.txt', 'w') as j:
j.write('\n'.join(old))
j.write('\n')