Exploit databaseDownload repository ZIP
GH-4121a5d3ac01b1e4901cd150c4835ca9
cappricio-securities/cve-2024-1208
Sources for CVE-2024-1208
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files5
cappricio-securities/cve-2024-1208Revision 900d521b498a
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
cve20241208/utils/configure.py
Python · 1,958 bytes#!/usr/bin/env python
"""
* CVE-2024-1208
* CVE-2024-1208 Bug scanner for WebPentesters and Bugbounty Hunters
*
* @Developed By Cappricio Securities <https://cappriciosec.com>
*/
"""
import os
import yaml
from utils import const
def new_chatid(chatid):
yaml_file_path = os.path.expanduser(
const.Data.config_path)
folder_path = os.path.dirname(yaml_file_path)
os.makedirs(folder_path, exist_ok=True)
if not os.path.exists(yaml_file_path):
initial_content = {"config": {"chatid": chatid}}
with open(yaml_file_path, "w") as file:
yaml.dump(initial_content, file, default_flow_style=False)
print(f"Config file created at: {yaml_file_path}")
else:
with open(yaml_file_path, "r") as file:
data = yaml.safe_load(file)
if "config" in data and "chatid" in data["config"]:
print(f"chatid is already present: {data['config']['chatid']}")
else:
data.setdefault("config", {})
data["config"]["chatid"] = chatid
with open(yaml_file_path, "w") as file:
yaml.dump(data, file, default_flow_style=False)
print(f"chatid appended to YAML file: {yaml_file_path}")
def check_id():
yaml_file_path = os.path.expanduser(const.Data.config_path)
try:
with open(yaml_file_path, "r") as file:
data = yaml.safe_load(file)
if "config" in data and "chatid" in data["config"]:
return "Exist"
else:
return "Null"
except:
print()
def get_chatid():
yaml_file_path = os.path.expanduser(const.Data.config_path)
try:
with open(yaml_file_path, "r") as file:
data = yaml.safe_load(file)
if "config" in data and "chatid" in data["config"]:
chatid = data['config']['chatid']
return chatid
else:
return "Null"
except:
print()