-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshadowscan.py
26 lines (20 loc) · 899 Bytes
/
shadowscan.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
import sys
import os
# Add the src directory to sys.path for module imports
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
import argparse
from scanner import scan_directory
from report import generate_report # This will now look for the report.py file in the src folder
def main():
parser = argparse.ArgumentParser(description="ShadowScan - Detect hidden backdoors and malicious scripts.")
parser.add_argument("--scan", required=True, help="Directory to scan")
parser.add_argument("--report", help="Save report to a JSON file")
parser.add_argument("--virustotal", help="VirusTotal API key for binary analysis")
args = parser.parse_args()
scan_results = scan_directory(args.scan, args.virustotal)
if args.report:
generate_report(scan_results, args.report)
else:
print(scan_results)
if __name__ == "__main__":
main()