Kali-Environment
- TODO: script para realizar setup parcial o completo.
Reconfiguración de teclado
Instalación utilerías
Pyenv
sudo apt install -y build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git
curl https://pyenv.run | bash
Buscar en .zshrc
o .bashrc
si no se encuentran las siguientes líneas, ponerlas.
SDKMan
curl -s "https://get.sdkman.io" | bash
sdk list java
sdk install java <version o nombre>
sdk use <version o nombre> # ysoserial requiere java 8
Navegador
- FoxyProxy.
- Wappalizer.
- Configuración de certificado de BurpSuite.
- CookieEditor.
Configuraciones personales
.tmux.conf.local
.zshrc
[...]
# Comentar líneas siguientes
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
[...]
# Enable ~/.target file
export TARGET_FILE="$HOME/.target"
if ! [ -f "$TARGET_FILE" ]
then
touch $TARGET_FILE
fi
export TARGET="$(cat $TARGET_FILE)"
# Custom aliases
alias ll='lsd -lh --group-dirs=first'
alias la='lsd -a --group-dirs=first'
alias l='lsd --group-dirs=first'
alias lla='lsd -lha --group-dirs=first'
alias ls='lsd --group-dirs=first'
alias cat='/bin/batcat'
alias catn='/bin/cat'
alias catnl='/bin/batcat --paging=never'
# Custom functions
function new_target(){
# Usage: new_target <box name> <box IP>
set_target $2
mkdir -p $1/{nmap,content,exploits,scripts}
cd $1
tmux
}
function set_target(){
# Usage: set_target <box IP>
echo $1 > $TARGET_FILE
export TARGET=$1
}
function clear_target(){
echo '' > $TARGET_FILE
unset TARGET
}
function extract_ports(){
ports="$(cat $1 | grep -oP '\d{1,5}/open' | awk '{print $1}' FS='/' | xargs | tr ' ' ',')"
ip_address="$(cat $1 | grep -oP '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' | sort -u | head -n 1)"
echo -e "\n[*] Extracting information...\n" > extractPorts.tmp
echo -e "\t[*] IP Address: $ip_address" >> extractPorts.tmp
echo -e "\t[*] Open ports: $ports\n" >> extractPorts.tmp
echo $ports | tr -d '\n' | xclip -sel clip
echo -e "[*] Ports copied to clipboard\n" >> extractPorts.tmp
cat extractPorts.tmp; rm extractPorts.tmp
}
function set_proxy() {
# Usage: set_proxy <host> <port>
export {http,https,ftp}_proxy="http://$1:$2"
}
function unset_proxy() {
unset {http,https,ftp}_proxy
}
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Scripts para xcfe4 (barra)
Click derecho a barra superior: Panel/Add New Items...
→ Generic Monitor
Ubicación: /home/srrequiem/scripts
ethernet.sh
vpn.sh
#!/bin/sh
IFACE=$(/usr/sbin/ifconfig | grep tun0 | awk '{print $1}' | tr -d ':')
if [ "$IFACE" = "tun0" ]
then
echo "$(/usr/sbin/ifconfig tun0 | grep "inet " | awk '{print $2}')"
else
echo "Disconnected"
fi