From 438afabb85b0fa451841dada375c3d27894774f9 Mon Sep 17 00:00:00 2001 From: bs1phc Date: Wed, 15 Sep 2021 22:01:51 +0100 Subject: [PATCH] first commit --- README.md | 27 ++++++++++++++++++++++++ wsl.sh | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 README.md create mode 100644 wsl.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..9d9580f --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# WSL image for the EHC labs +cueh:cueh + +# Steps Taken +- Fix repos +- Enable 3d aceleration +- winkexk +- editors for everyone : emacs,neovim and nano +- metasploit +- ffuf,gobuster +- hashcat +- gef +- pwntools +- python, rust, golang +- nvm and nodejs +- seclists +- netcat +- nmap +- git + +# Todo + +- how metapckages work with preinst and post inst scripts, after this we should be able to only work with metapackages +- figure out what other packages are needed. +# References +[Kali Metapackages](https://www.kali.org/docs/general-use/metapackages/) + diff --git a/wsl.sh b/wsl.sh new file mode 100644 index 0000000..2d2cff5 --- /dev/null +++ b/wsl.sh @@ -0,0 +1,62 @@ +check_priv() +{ + if [ "$(id -u)" -ne 0 ]; then + echo "you must be root" + exit 0 + + fi +} + +add_3d_Acceleration() +{ + cat << 'EOF' > /etc/apt/sources.list.d/kali-experimental.list +deb https://http.kali.org/kali kali-experimental main contrib non-free +EOF + apt update -y + apt install -t kali-experimental '?upgradable ?source-package("mesa|libdrm")' -y +} + + +add_winkex() +{ + apt install -y kali-win-kex +} + +add_editors() +{ + sudo apt install emacs neovim -y +} + +add_languages() +{ + sudo apt install python3 python3-pip golang -y + curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -yq + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash + source ~/.zshrc && nvm install node + echo node > ~/.nvmrc +} + +add_tools() +{ + sudo apt install metasploit-framework ffuf gobuster hashcat gdb seclists netcat-openbsd socat nmap git -y + + #gef + wget -O ~/.gdbinit-gef.py -q http://gef.blah.cat/py + echo source ~/.gdbinit-gef.py >> ~/.gdbinit + + #pwntools + sudo apt install python3-dev git libssl-dev libffi-dev build-essential -y + python3 -m pip install --upgrade pip + python3 -m pip install --upgrade pwntools +} + +sudo apt update +sudo apt upgrade -y +check_priv +add_3d_Acceleration +add_winkex +add_editors +add_languages +add_tools + +sudo apt autoremove \ No newline at end of file