Skip to content
Permalink
Browse files
first commit
  • Loading branch information
bs1phc committed Sep 15, 2021
0 parents commit 438afabb85b0fa451841dada375c3d27894774f9
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
@@ -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/)

62 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

0 comments on commit 438afab

Please sign in to comment.