mirror of
https://github.com/AggressiveUser/AllForOne.git
synced 2025-12-17 15:20:44 +00:00
UPDATED SHIT :)
This commit is contained in:
parent
0adc776d43
commit
026c71db50
76
AllForOne.py
76
AllForOne.py
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import shutil
|
import shutil
|
||||||
@ -7,6 +5,8 @@ import time
|
|||||||
import requests
|
import requests
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from concurrent.futures import ThreadPoolExecutor, wait
|
from concurrent.futures import ThreadPoolExecutor, wait
|
||||||
|
import glob
|
||||||
|
from tabulate import tabulate
|
||||||
|
|
||||||
print("\033[91m\033[93m ,-. _,---._ __ / \ _ _ _ ___ ___ ")
|
print("\033[91m\033[93m ,-. _,---._ __ / \ _ _ _ ___ ___ ")
|
||||||
print(r" / ) .-' `./ / \ /_\ | | | / __\__ _ __ /___\_ __ ___ ")
|
print(r" / ) .-' `./ / \ /_\ | | | / __\__ _ __ /___\_ __ ___ ")
|
||||||
@ -81,29 +81,73 @@ def clone_repositories(file_url):
|
|||||||
for repo in failed_repos:
|
for repo in failed_repos:
|
||||||
print(repo)
|
print(repo)
|
||||||
|
|
||||||
template_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'Template')
|
template_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'Templates')
|
||||||
if not os.path.exists(template_folder):
|
os.makedirs(template_folder, exist_ok=True)
|
||||||
os.makedirs(template_folder)
|
|
||||||
|
|
||||||
yaml_count = 0
|
|
||||||
for root, dirs, files in os.walk('TRASH'):
|
for root, dirs, files in os.walk('TRASH'):
|
||||||
for file in files:
|
for file in files:
|
||||||
if file.endswith('.yaml'):
|
if file.endswith('.yaml'):
|
||||||
source_path = os.path.join(root, file)
|
source_path = os.path.join(root, file)
|
||||||
destination_path = os.path.join(template_folder, file)
|
cve_year = extract_cve_year(file)
|
||||||
|
if cve_year:
|
||||||
|
destination_folder = os.path.join(template_folder, f"CVE-{cve_year}")
|
||||||
|
else:
|
||||||
|
destination_folder = os.path.join(template_folder, "Vulnerability-Templates")
|
||||||
|
os.makedirs(destination_folder, exist_ok=True)
|
||||||
|
destination_path = os.path.join(destination_folder, file)
|
||||||
shutil.copy2(source_path, destination_path)
|
shutil.copy2(source_path, destination_path)
|
||||||
|
|
||||||
yaml_files = [file for file in os.listdir(template_folder) if file.endswith('.yaml')]
|
|
||||||
yaml_count = len(yaml_files)
|
|
||||||
|
|
||||||
print(f'\033[92m \n{yaml_count} Nuclei Templates files copied to the Template folder.\033[0m')
|
|
||||||
|
|
||||||
shutil.rmtree('TRASH')
|
|
||||||
print('\nRemoving caches and temporary files.\n')
|
print('\nRemoving caches and temporary files.\n')
|
||||||
|
shutil.rmtree('TRASH')
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
print('\033[91m\033[93mPlease show your support by giving star to my GitHub repository "AllForOne".')
|
|
||||||
print('GITHUB: https://github.com/AggressiveUser/AllForOne\033[0m')
|
|
||||||
|
def extract_cve_year(file_name):
|
||||||
|
if file_name.startswith('CVE-') and file_name[4:8].isdigit():
|
||||||
|
return file_name[4:8]
|
||||||
|
return None
|
||||||
|
|
||||||
|
def count_yaml_files(folder):
|
||||||
|
count = 0
|
||||||
|
for root, dirs, files in os.walk(folder):
|
||||||
|
for file in files:
|
||||||
|
if file.endswith('.yaml'):
|
||||||
|
count += 1
|
||||||
|
return count
|
||||||
|
|
||||||
|
|
||||||
|
def summarize_templates():
|
||||||
|
|
||||||
|
cve_folders = glob.glob(os.path.join(template_folder, 'CVE-*'))
|
||||||
|
cve_yaml_count = 0
|
||||||
|
for folder in cve_folders:
|
||||||
|
cve_yaml_count += count_yaml_files(folder)
|
||||||
|
|
||||||
|
vulnerability_templates_folder = os.path.join(template_folder, 'Vulnerability-Templates')
|
||||||
|
vulnerability_yaml_count = count_yaml_files(vulnerability_templates_folder)
|
||||||
|
|
||||||
|
total_yaml_count = cve_yaml_count + vulnerability_yaml_count
|
||||||
|
|
||||||
|
data = [
|
||||||
|
["CVE Templates", cve_yaml_count],
|
||||||
|
["Other Vulnerability Templates", vulnerability_yaml_count],
|
||||||
|
["Total Templates", total_yaml_count]
|
||||||
|
]
|
||||||
|
|
||||||
|
headers = ["Templates Type", "Templates Count"]
|
||||||
|
|
||||||
|
table = tabulate(data, headers, tablefmt="fancy_grid")
|
||||||
|
|
||||||
|
print(table)
|
||||||
|
|
||||||
|
|
||||||
file_url = 'https://raw.githubusercontent.com/AggressiveUser/AllForOne/main/PleaseUpdateMe.txt'
|
file_url = 'https://raw.githubusercontent.com/AggressiveUser/AllForOne/main/PleaseUpdateMe.txt'
|
||||||
|
|
||||||
clone_repositories(file_url)
|
clone_repositories(file_url)
|
||||||
|
|
||||||
|
template_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'Templates')
|
||||||
|
|
||||||
|
summarize_templates()
|
||||||
|
|
||||||
|
#Intro
|
||||||
|
print('\033[91m\033[93mPlease show your support by giving star to my GitHub repository "AllForOne".')
|
||||||
|
print('GITHUB: https://github.com/AggressiveUser/AllForOne\033[0m')
|
||||||
|
|||||||
@ -9,7 +9,7 @@ https://github.com/5cr1pt/templates
|
|||||||
https://github.com/ARPSyndicate/kenzer-templates
|
https://github.com/ARPSyndicate/kenzer-templates
|
||||||
https://github.com/Akokonunes/Private-Nuclei-Templates
|
https://github.com/Akokonunes/Private-Nuclei-Templates
|
||||||
https://github.com/Arvinthksrct/alltemplate
|
https://github.com/Arvinthksrct/alltemplate
|
||||||
https://github.com/AshiqurEmon/nuclei_templates.git
|
https://github.com/AshiqurEmon/nuclei_templates
|
||||||
https://github.com/CharanRayudu/Custom-Nuclei-Templates
|
https://github.com/CharanRayudu/Custom-Nuclei-Templates
|
||||||
https://github.com/DoubleTakes/nuclei-templates
|
https://github.com/DoubleTakes/nuclei-templates
|
||||||
https://github.com/Elsfa7-110/mynuclei-templates
|
https://github.com/Elsfa7-110/mynuclei-templates
|
||||||
@ -30,6 +30,7 @@ https://github.com/R-s0n/Custom_Vuln_Scan_Templates
|
|||||||
https://github.com/Saimonkabir/Nuclei-Templates
|
https://github.com/Saimonkabir/Nuclei-Templates
|
||||||
https://github.com/Saptak9983/Nuclei-Template
|
https://github.com/Saptak9983/Nuclei-Template
|
||||||
https://github.com/ShangRui-hash/my-nuclei-templates
|
https://github.com/ShangRui-hash/my-nuclei-templates
|
||||||
|
https://github.com/freakyclown/Nuclei_templates
|
||||||
https://github.com/SirAppSec/nuclei-template-generator-log4j
|
https://github.com/SirAppSec/nuclei-template-generator-log4j
|
||||||
https://github.com/Str1am/my-nuclei-templates
|
https://github.com/Str1am/my-nuclei-templates
|
||||||
https://github.com/SumedhDawadi/Custom-Nuclei-Template
|
https://github.com/SumedhDawadi/Custom-Nuclei-Template
|
||||||
@ -104,6 +105,9 @@ https://github.com/thebrnwal/Content-Injection-Nuclei-Script
|
|||||||
https://github.com/thecyberneh/nuclei-templatess
|
https://github.com/thecyberneh/nuclei-templatess
|
||||||
https://github.com/thelabda/nuclei-templates
|
https://github.com/thelabda/nuclei-templates
|
||||||
https://github.com/themoonbaba/private_templates
|
https://github.com/themoonbaba/private_templates
|
||||||
|
https://github.com/rix4uni/BugBountyTips
|
||||||
|
https://github.com/Lu3ky13/Authorization-Nuclei-Templates
|
||||||
|
https://github.com/bug-vs-me/nuclei
|
||||||
https://github.com/topscoder/nuclei-wordfence-cve
|
https://github.com/topscoder/nuclei-wordfence-cve
|
||||||
https://github.com/toramanemre/apache-solr-log4j-CVE-2021-44228
|
https://github.com/toramanemre/apache-solr-log4j-CVE-2021-44228
|
||||||
https://github.com/toramanemre/log4j-rce-detect-waf-bypass
|
https://github.com/toramanemre/log4j-rce-detect-waf-bypass
|
||||||
@ -117,5 +121,22 @@ https://github.com/yavolo/nuclei-templates
|
|||||||
https://github.com/z3bd/nuclei-templates
|
https://github.com/z3bd/nuclei-templates
|
||||||
https://github.com/zer0yu/Open-PoC
|
https://github.com/zer0yu/Open-PoC
|
||||||
https://github.com/zinminphyo0/KozinTemplates
|
https://github.com/zinminphyo0/KozinTemplates
|
||||||
|
<<<<<<< Updated upstream
|
||||||
https://github.com/projectdiscovery/nuclei-templates
|
https://github.com/projectdiscovery/nuclei-templates
|
||||||
https://github.com/pikpikcu/my-nuclei-templates
|
https://github.com/pikpikcu/my-nuclei-templates
|
||||||
|
=======
|
||||||
|
https://github.com/foulenzer/foulenzer-templates
|
||||||
|
https://github.com/joanbono/nuclei-templates
|
||||||
|
https://github.com/Nithissh0708/Custom-Nuclei-Templates
|
||||||
|
https://github.com/ChiaraNRTT96/BountySkill
|
||||||
|
https://github.com/bhataasim1/PersonalTemplates
|
||||||
|
https://github.com/themastersunil/Nuclei-TamplatesBackup
|
||||||
|
https://github.com/themastersunil/nucleiDB
|
||||||
|
https://github.com/Linuxinet/nuclei-templates
|
||||||
|
https://github.com/Aituglo/nuclei-templates
|
||||||
|
https://github.com/abbycantcode/Nuclei-Template
|
||||||
|
https://github.com/pacho15/mynuclei_templates
|
||||||
|
https://github.com/pikpikcu/my-nuclei-templates
|
||||||
|
https://github.com/SirBugs/Priv8-Nuclei-Templates
|
||||||
|
https://github.com/projectdiscovery/nuclei-templates
|
||||||
|
>>>>>>> Stashed changes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user