CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/tools/dev/update_joomla_components.py
Views: 11766
1
#!/usr/bin/python3
2
import requests
3
4
new_com = requests.get("https://raw.githubusercontent.com/rezasp/joomscan/master/exploit/db/componentslist.txt").text
5
with open('data/wordlists/joomla.txt', 'r') as j:
6
old = j.read().splitlines()
7
8
for com in new_com.splitlines():
9
if not 'components/%s/'%(com) in old:
10
old.append('components/%s/'%(com))
11
print('[+] Adding: components/%s/'%(com))
12
13
old.sort()
14
with open('data/wordlists/joomla.txt', 'w') as j:
15
j.write('\n'.join(old))
16
j.write('\n')
17
18