-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
34 lines (26 loc) · 780 Bytes
/
Copy pathmain.py
File metadata and controls
34 lines (26 loc) · 780 Bytes
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
#!/usr/bin/env python
# coding=utf8
"""
SignFinder - Tool for easy clean PE32 from AV signature
Main entry point for the application.
Uses dependency injection to wire together all components.
Requires: https://github.com/erocarrera/pefile
Install: pip install pefile
"""
import sys
from signfinder.di import DependencyContainer
print(f"DEBUG: main.py received args: {sys.argv}")
def main():
"""Main entry point"""
try:
container = DependencyContainer()
cli = container.cli
cli.run()
except KeyboardInterrupt:
print("\n[!] Interrupted by user", file=sys.stderr)
sys.exit(1)
except Exception as e:
print(f"[!] Fatal error: {str(e)}", file=sys.stderr)
sys.exit(1)
if __name__ == "__main__":
main()