forked from s0lst1c3/eaphammer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kali-setup
executable file
·40 lines (30 loc) · 1.4 KB
/
kali-setup
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
import os
import config
def read_deps_file(deps_file):
with open(deps_file) as fd:
return ' '.join([ line.strip() for line in fd ])
if __name__ == '__main__':
if raw_input('Do you want update your package list ("apt -y update")(recommended)? [y/N]: ').lower() == 'y':
print '\n[*] Downloading package lists from kali repositories...\n'
os.system('apt -y update')
print '\n[*] complete!\n'
if raw_input('Do you want upgrade your package list ("apt -y upgrade")(recommended)? [y/N]: ').lower() == 'y':
print '\n[*] Performing upgrade...\n'
os.system('apt -y upgrade')
print '\n[*] complete!\n'
print '\n[*] Installing Kali dependencies...\n'
os.system('apt -y install %s' % read_deps_file('kali-dependencies.txt'))
print '\n[*] complete!\n'
print '\n[*] Installing Python dependencies...\n'
os.system('pip install -r pip.req')
print '\n[*] complete!\n'
print '\n[*] Compiling hostapd...\n'
os.system("cd %s && make" % config.hostapd_dir)
print '\n[*] complete!\n'
print '\n[*] Downloading default wordlist...\n'
os.system("wget %s -O %s.tar.gz" % (config.wordlist_source, config.default_wordlist))
print '\n[*] complete!\n'
print '\n[*] Extracting default wordlist...\n'
os.system("cd %s && tar xzf %s.tar.gz" % (config.wordlist_dir, config.default_wordlist))
print '\n[*] complete!\n'