Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 1.26 KB

Practical Applications Kali.md

File metadata and controls

77 lines (50 loc) · 1.26 KB

Practical Examples

An arbitrary list of practical working examples on a Kali system.

Add Command Line Banner

Kali 2021.1 and earlier

sudo chmod a+w /etc/bash.bashrc

nano /etc/bash.bashrc

In nano append at bottom of file:

# Figlet banner
figlet -f slant "H3AR7B3A7" | lolcat

Kali 2021.2

nano .zshrc

In nano append at bottom of file:

# Figlet banner
figlet -f slant "H3AR7B3A7" | lolcat

(Re-)Configure SSH

cd /etc/ssh
sudo mkdir old_ssh_keys
sudo mv ssh_host_* old_ssh_keys
sudo dpkg-reconfigure openssh-server
service ssh start
netstat -antp
service ssh stop

Using Tor & Proxychains

nano /etc/proxychains.conf

In nano:

  • Uncomment: dynamic_chain
  • Comment-out: strict_chain
  • Append at bottom: socks5 127.0.0.1 9050
service tor start
service tor status
proxychains firefox www.whatismyip.com
service tor stop

Connecting to Windows via RDP

sudo apt install freerdp2-x11

xfreerdp /v:targetIp /u:htb-student /p:Password

Connecting to Windows via SMB

smbclient -L 10.129.185.234 -U htb-student

Mounting to Share on a Windows System

sudo apt-get install cifs-utils

sudo mount -t cifs -o username=htb-student,password=Academy_WinFun! //ipaddoftarget/"Company Data" /home/user/Desktop/