CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/tools/dev/update_joomla_components.py
Views: 1904
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