-
Notifications
You must be signed in to change notification settings - Fork 41
/
web-brutator.py
35 lines (25 loc) · 771 Bytes
/
web-brutator.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
31
32
33
34
35
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import colored
import sys
import traceback
from lib.core.ArgumentsParser import ArgumentsParser
from lib.core.Config import *
from lib.core.Controller import Controller
import lib.core.Globals as Globals
from lib.core.Logger import logger
class Program:
def __init__(self):
print(colored.stylize(BANNER, colored.attr('bold')))
Globals.initialize()
# Parse command-line arguments
arguments = ArgumentsParser()
# Controller
try:
controller = Controller(arguments.args)
controller.run()
except KeyboardInterrupt:
logger.error('Canceled by the user')
sys.exit(0)
if __name__ == '__main__':
main = Program()