Personal configuration for a fresh Kali Linux to make it more useful with vim keybindings for the terminal and nice scripts to search the internet without leaving it. It has a DW directory to install some tools to investigate domains and access the Dark Web and other networks like freenet or zeronet
- vim - for editing files
- tmux - for multiplexing the terminal
- cowsay, figlet, lolcat - For the super fancy timer
I use bash as the default terminal instead of the zsh
~/.bashrc- Default configuration file for bash with the vim mode on~/.inputrc- File configuration the look of the input depending on the vi mode we are~/.config/aliasrc- File with all the aliases
Changing the default shell in Kali Linux
chsh -s /usr/bin/bashEsc- Exit edit mode and enter normal modeAlt+k- Exit edit mode and go back in historyAlt+j- Exit edit mode and go forward in history
i- Edit mode to writek- Go back in historyj- Go forward in historyw- Jump between words/- Search in historyA- Enter edit mode at the end of the lineI- Enter edit mode at the beggining of the linect<letter>- Change until that letter and enter edit modeC- Change until the end of the line and enter edit mode
Terminal multiplexor that allows to be scripted and it's very flexible
sudo apt install tmux~/.tmux.conf- Default file with the configuration for tmux with the default keybindings changed
Ctrl+A- Master combination to start introducing commandsMaster+-- Split horizontallyMaster+_- Split verticallyMaster+c- Create a new panelMaster+a- Go between the last panel and the actual panelMaster+&- Kill actual panelMaster+j- Go to the bottom panelMaster+k- Go to the upper panelMaster+l- Go to the right panelMaster+h- Go to the left panelMaster+[- Visual modeSpace- In visual mode select textEnter- Copy the text selected and exit visual mode
Master+]- Paste the buffer
Default text editor via terminal, when it's acceded for the first time it would download the plugins if it's need it
# Install vim
sudo apt install vim
# Install plugin manager
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim~/.vimrc- Default file with all the configuration and look for the vim editor
Web browser via terminal, that allows you to search and navigate the WWW with only a terminal
sudo apt install lynx~/.config/lynx/lynx.cfg- File with the configuration for lynx, all the keybindings, behavior, default browser to open, etc.~/.config/lynx/lynx.lss- File with the look configuration for lynx~/.local/bin/lynx- Wrapper for lynx to use our own configurations instead of the default one
q- Exit lynxj- Go down in every link in the webk- Go up in every link in the webl- Access the linkh- Go back in historyi- Information about the actual url,- Open in the default browse the actual url/- Search in the actual page
All the scripts that are on the PATH are stored in the folder `~/.local/bin/
lynx- Wrapper for lynxbing- Script to search with bing using lynxduck- Script to search with duckduckgo using lynxgoogle- Script to search with google using lynxvic- Script to open any file on the PATH with vim without going to that locationix- Script to share content using the web ix.iourlencode- Script to encode the requests for theduck,bingandgooglescriptspath- Script to show the PATH in a pretty waysharekeys- To share the keys you are pressing in the screentimer- To show a timer on the screen
~/.local/bin- Folder to store all the scripts for our user~/.config/- Personal configuration folder for our user
All the alias for our terminal are created on the file ~/.config/aliasrc
l- ls showing hidden folders with the directories firstls- Pretty ls?- Execute the scriptducksearching for what we put after??- Execute the scriptbingsearching for what we put after???- Execute the scriptgooglesearching for what we put aftervi- Executevimdownload- Executecurl -sSLOfkto download any file from the webxc- Copy the content from the terminalc- Clear the terminal
Beware: This would change your configuration for the default user
# Change directory to a temporary one
cd /tmp
# Download the repo
git clone https://github.com/bash-bunny/Kali.git
# Change into the repo directory
cd Kali
# Give permissions and execute the setup.sh script
chmod u+x setup.sh && ./setup.sh
# Enter the password when need it, wait until rebootOptional: Install the DW tools
# Change into the Dark Web directory
cd DW/
# Give permissions to the setup file
chmod u+x setup
# Execute the file
./setup