-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheclipserecon_cli.py
42 lines (33 loc) Β· 1.78 KB
/
eclipserecon_cli.py
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
import argparse
from eclipserecon import __version__
from eclipserecon.eclipse_recon import EclipseRecon
from eclipserecon.utils.logger import appLogger
from dotenv import load_dotenv
def main():
load_dotenv()
parser = argparse.ArgumentParser(description="EclipseRecon: Web Reconnaissance & Security Analysis Tool")
parser.add_argument('--target', type=str, required=True, help="The target domain or IP to scan (e.g., example.com or 192.168.1.1).")
parser.add_argument('--scan_depth', type=str, choices=['test', 'basic', 'normal', 'deep'], default='normal',
help="Scan depth: 'test', 'basic', 'normal', 'deep' (default: 'normal').")
parser.add_argument('--ipv6', action='store_true', help="Enable IPv6 scanning (default: False).")
parser.add_argument('--threads', type=int, default=10, help="Number of threads for scanning (default: 10).")
parser.add_argument('--proxies', type=str, help="Proxy settings for the OWASP scanner (e.g., http://proxy:8080).")
parser.add_argument('--pdf_report', type=str, default='security_report.pdf', help="Path to save the PDF report (default: 'security_report.pdf').")
parser.add_argument('--json_report', type=str, default='security_report.json', help="Path to save the JSON report (default: 'security_report.json').")
args = parser.parse_args()
try:
recon = EclipseRecon(
target=args.target,
scan_depth=args.scan_depth,
ipv6=args.ipv6,
threads=args.threads,
proxies=args.proxies
)
recon.execute(
pdf_path=args.pdf_report,
json_path=args.json_report
)
except Exception as e:
appLogger.error(f"β An error occurred: {e}")
if __name__ == "__main__":
main()