-
Notifications
You must be signed in to change notification settings - Fork 1
/
GitHack.py
executable file
·40 lines (34 loc) · 809 Bytes
/
GitHack.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
36
37
38
39
40
#!/usr/bin/env python
# coding:utf-8
"""
Copyright (c) 2017 BugScan (http:https://www.bugscan.net)
See the file 'LICENCE' for copying permission
"""
import os
import sys
from lib.data import paths
from lib.common import banner
from lib.common import usage
from lib.common import setPaths
from lib.common import initAgents
from lib.common import initDirs
from lib.common import checkdepends
from lib.controler import start
def main():
init()
def init():
try:
paths.GITHACK_ROOT_PATH = os.path.dirname(os.path.realpath(__file__))
banner()
if len(sys.argv) < 2:
usage()
sys.exit(1)
checkdepends()
setPaths(sys.argv[-1])
initAgents()
initDirs()
start()
except:
raise
if __name__ == '__main__':
main()