forked from leebaird/discover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkali.txt
85 lines (61 loc) · 2.86 KB
/
kali.txt
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Kali
# Change root password
passwd
------------------------------------------------------------------------------------------------------
# SSH
ssh-keygen Create new keys
/etc/ssh/sshd_config Daemon config file
PermitRootLogin yes Change to yes
AuthorizedKeysFile Uncomment
------------------------------------------------------------------------------------------------------
# Terminal
Edit > Profile Preferences
Colors: Uncheck Use transparent background
------------------------------------------------------------------------------------------------------
# vim
Create /root/.vimrc
syntax on
set wrapmargin=8
set number
------------------------------------------------------------------------------------------------------
# Disable screen lock
Top right icon > tools icon > Power
Power Saving > Blank screen: Never
Back arrow
Privacy > Screen Lock > Automatic Screen Lock: Off
------------------------------------------------------------------------------------------------------
# gedit
Preferences
View: Display line numbers, Highlight current line
Editor: Tab width 5, Insert spaces instead of tabs
Color Scheme: Oblivion
------------------------------------------------------------------------------------------------------
# Install Discover scripts
git clone git://github.com/leebaird/discover.git /opt/discover/
cd /opt/discover/
./update.sh
------------------------------------------------------------------------------------------------------
# Services
service <service> <start|stop|restart>
service ssh start Start ssh
/etc/init.d/ssh start Start ssh
netstat -antp | grep ssh Verify the ssh service is running
service apache2 start Start Apache
firefox localhost Verify the Apache service is running
/var/www/html/ Document root
update-rc.d <service> <enable|disable>
update-rc.d ssh enable Enable ssh to start at boot time
update-rc.d ssh disable Disable ssh from starting at boot time
------------------------------------------------------------------------------------------------------
# VPN
apt-get install network-manager-iodine network-manager-iodine-gnome
apt-get install network-manager-openconnect network-manager-openconnect-gnome
apt-get install network-manager-openvpn network-manager-openvpn-gnome
apt-get install network-manager-pptp network-manager-pptp-gnome
apt-get install network-manager-strongswan
apt-get install network-manager-vpnc network-manager-vpnc-gnome
/etc/init.d/network-manager restart
# Thanks to Robert Clowser for the bug fix!
nano /etc/network/interfaces
Remove the last two lines egarding eth0.
Reboot