Repository navigation
Expand file tree
/
Copy pathdark_web_monitoring.py
More file actions
109 lines (90 loc) · 3.38 KB
/
Copy pathdark_web_monitoring.py
File metadata and controls
109 lines (90 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import sys
import requests
from rich.console import Console
from rich.table import Table
from colorama import Fore, init
init(autoreset=True)
console = Console()
def banner():
print(Fore.WHITE + """
=============================================
Argus - Dark Web Monitoring
=============================================
""")
def monitor_scylla(query):
try:
# Scylla API endpoint
url = f"https://scylla.sh/search?q=email:*@{query}&size=100"
headers = {'User-Agent': 'Mozilla/5.0'}
response = requests.get(url, headers=headers, timeout=30)
results = response.json()
return results
except requests.RequestException as e:
print(Fore.RED + f"[!] Error querying Scylla: {e}")
return []
def monitor_pastebin(query):
try:
# Pastebin Search (through a public scraping API)
url = f"https://psbdmp.ws/api/v3/search/{query}"
response = requests.get(url, timeout=30)
data = response.json()
results = data.get('data', [])
return results
except requests.RequestException as e:
print(Fore.RED + f"[!] Error querying Pastebin dumps: {e}")
return []
def display_scylla_results(results):
if not results:
console.print(Fore.RED + "[!] No data found on Scylla.")
return
table = Table(show_header=True, header_style="bold magenta")
table.add_column("Email", style="cyan", justify="left")
table.add_column("Password", style="green")
table.add_column("Source", style="white")
for result in results:
email = result.get("email", "N/A")
password = result.get("password", "N/A")
source = result.get("source", "N/A")
table.add_row(email, password, source)
console.print(table)
def display_pastebin_results(results):
if not results:
console.print(Fore.RED + "[!] No data found on Pastebin.")
return
table = Table(show_header=True, header_style="bold magenta")
table.add_column("ID", style="cyan", justify="left")
table.add_column("Title", style="green")
table.add_column("Date", style="white")
for result in results:
paste_id = result.get("id", "N/A")
title = result.get("title", "N/A")
date = result.get("date", "N/A")
table.add_row(paste_id, title, date)
console.print(table)
def main(target):
banner()
print(Fore.WHITE + f"[*] Monitoring for domain: {target}")
# Monitor Scylla
console.print(Fore.YELLOW + "[*] Querying Scylla.sh...")
scylla_results = monitor_scylla(target)
# Monitor Pastebin Dumps
console.print(Fore.YELLOW + "[*] Querying Pastebin Dumps...")
pastebin_results = monitor_pastebin(target)
if scylla_results:
console.print(Fore.GREEN + "[+] Data found on Scylla:")
display_scylla_results(scylla_results)
else:
console.print(Fore.RED + "[!] No data found on Scylla.")
if pastebin_results:
console.print(Fore.GREEN + "[+] Data found on Pastebin:")
display_pastebin_results(pastebin_results)
else:
console.print(Fore.RED + "[!] No data found on Pastebin.")
print(Fore.CYAN + "[*] Monitoring completed.")
if __name__ == "__main__":
try:
target = input("Enter the domain to monitor: ")
main(target)
except KeyboardInterrupt:
print(Fore.RED + "\n[!] Process interrupted by user.")
sys.exit(1)