-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlister.py
More file actions
40 lines (33 loc) · 1.02 KB
/
sqlister.py
File metadata and controls
40 lines (33 loc) · 1.02 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
#!/usr/bin/env python3
import sys
import traceback
from lib.core.banner import banner
from lib.core.cli import parse_args
from lib.core.settings import VERSION
from lib.utils.logger import logger
from lib.core.engine import Controller
def main():
try:
# Parse Arguments
args = parse_args()
# Show Banner
if not args.batch or args.get_banner:
banner()
logger.info(f"Starting SQLister v{VERSION}...")
if args.debug:
logger.debug("Debug mode enabled")
logger.debug(f"Target: {args.url}")
# Initialize Engine
controller = Controller(args)
controller.run()
except KeyboardInterrupt:
print()
logger.error("User aborted the scan.")
sys.exit(0)
except Exception as e:
logger.error(f"Unhandled exception: {str(e)}")
if "--debug" in sys.argv:
traceback.print_exc()
sys.exit(1)
if __name__ == "__main__":
main()