-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
executable file
·49 lines (40 loc) · 1.43 KB
/
main.py
File metadata and controls
executable file
·49 lines (40 loc) · 1.43 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
#!/usr/bin/env python3
"""
S.C.O.U.T (Scope Change Observation & Unified Tracking) - Bug Bounty Monitoring Tool
Main entry point for the application
"""
import argparse
import sys
from src.monitor import SCOUTMonitor
import logging
def setup_logging():
"""Setup basic logging configuration"""
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
handlers=[
logging.FileHandler('scout.log'),
logging.StreamHandler(sys.stdout)
]
)
def main():
"""Main entry point for S.C.O.U.T"""
parser = argparse.ArgumentParser(description='S.C.O.U.T (Scope Change Observation & Unified Tracking) - Bug Bounty Monitoring Tool')
parser.add_argument('--config', default='config.json', help='Path to config file')
args = parser.parse_args()
setup_logging()
logger = logging.getLogger(__name__)
try:
# Initialize monitor
monitor = SCOUTMonitor(args.config)
# Run monitoring once
logger.info("Running one-time monitoring...")
monitor.run_once()
logger.info("One-time monitoring completed")
except KeyboardInterrupt:
logger.info("S.C.O.U.T stopped by user")
except Exception as e:
logger.error(f"S.C.O.U.T error: {e}")
sys.exit(1)
if __name__ == "__main__":
main()