Python based CLI tool to agressively url-encode strings, rather than just encoding non-url characters this tool will encode every character in the URL.
Firstly make a function in your .bash_profile
to call the script
function url-encode()
{
python ~/<path to script>/url_encode.py $@
}
Now simply call the script from your command line :)
$ url-encode "foo"
foo
$ url-encode --all "foo"
%66%6f%6f
$ echo "foo" | url-encode
foo
$ echo "foo" | url-encode --all
%66%6f%6f
You can also do some double encoding to bypass some LFI restriction :
$ url-encode --all --double "test"
%25%37%34%25%36%35%25%37%33%25%37%34