-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap2.py
More file actions
38 lines (32 loc) · 1.03 KB
/
map2.py
File metadata and controls
38 lines (32 loc) · 1.03 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
import subprocess
import sys
# Check Python version
if sys.version_info.major < 3 or sys.version_info.minor < 9:
print('\033[93m[!] Make sure you have Python 3.9+ installed, quitting.\n\n \033[0m')
sys.exit(1)
# Define the command for theHarvester
domain = "https://enginueeur.com"
filename = "custom_results"
sources = "bing,anubis,brave,certspotter,crtsh"
# Construct the command with options and arguments
command = [
"theHarvester",
"-d", domain,
"-f", filename,
"-b", sources,
"-l", "1000",
"-vv", # Increase verbosity
"-e", "8.8.8.8",
"-t",
"--virtual-host",
"--screenshot", "screenshots_dir",
"-s"
]
# Print a description of the script's purpose
print("Running theHarvester to gather open source intelligence.")
# Run the command and provide a description
print("Executing theHarvester command with the following options:")
print(" ".join(command)) # Print the command as a string
subprocess.run(command)
# Print a message to indicate completion
print("theHarvester script completed.")