forked from Azure/counterfit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcounterfit.py
30 lines (24 loc) · 810 Bytes
/
counterfit.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
import sys
import os
import warnings
from counterfit.core import config
from counterfit.core.state import CFState
from counterfit.core.terminal import Terminal
if sys.version_info < (3, 7):
print("[!] Python 3.7+ is required")
sys.exit(1)
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" # make tensorflow quiet
warnings.filterwarnings("ignore", category=FutureWarning)
if __name__ == "__main__":
terminal = Terminal()
num_attacks = CFState.get_instance().import_frameworks()
num_targets = CFState.get_instance().import_targets()
terminal.load_commands() # load commands last. Choices depend on targets and attacks.
print(config.start_banner)
print(
f"""
[+] {num_attacks} attacks
[+] {num_targets} targets
"""
)
sys.exit(terminal.cmdloop())