forked from greenygh0st/authwatch-gg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
executable file
·61 lines (53 loc) · 1.99 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
import os
import sys
def uninstall_parts(package):
import shutil
#sys.prefix
loc=os.sep.join([sys.prefix, 'lib', 'python' + sys.version[:3], 'site-packages', package]) #try sys.prefix
if os.path.exists(loc):
print 'Removing files from ' + loc
shutil.rmtree(loc,ignore_errors=False)
loc=os.sep.join([sys.prefix, 'lib', 'python' + sys.version[:3], 'dist-packages', package]) #try dist-packages
if os.path.exists(loc):
print 'Removing files from ' + loc
shutil.rmtree(loc,ignore_errors=False)
#/usr/local
loc=os.sep.join(['/usr/local', 'lib', 'python' + sys.version[:3], 'site-packages', package]) #try sys.prefix
if os.path.exists(loc):
print 'Removing files from ' + loc
shutil.rmtree(loc,ignore_errors=False)
loc=os.sep.join(['/usr/local', 'lib', 'python' + sys.version[:3], 'dist-packages', package]) #try dist-packages
if os.path.exists(loc):
print 'Removing files from ' + loc
shutil.rmtree(loc,ignore_errors=False)
if os.path.exists('/usr/local/bin/' + package):
print 'Removing file: /usr/local/bin/' + package
try: os.remove('/usr/local/bin/' + package)
except: pass
if os.path.exists('/usr/bin/' + package):
print 'Removing file: /usr/bin/' + package
try: os.remove('/usr/bin/' + package)
except: pass
if os.path.islink('/usr/bin/' + package):
print 'Removing link: /usr/bin/' + package
try: os.remove('/usr/bin/' + package)
except: pass
#binary
if 'uninstall' in sys.argv:
uninstall_parts('authwatch')
print 'Uninstall complete'
sys.exit(0)
#INSTALL IT
from distutils.core import setup
s = setup(name='authwatch',
version='1.0',
description='This tool/utility allows you to monitor the wifi tubes for auth, deauth or assoc requests. You can optionally output the data to a dump file. Aircrack suite and scapy are required to use this tool.',
license='NA',
author='Dale Myszewski',
author_email='[email protected]',
url='http://daleslab.com',
packages=['authwatch'],
package_dir={'authwatch': ''},
scripts=['authwatch']
)