Skip to content

DLL00P/urlencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

urlencode

A tool developed in Python to facilitate URL-encoding and decoding of strings

Usage

You can provide a string directly as an argument, or pass input through a pipe, you can even create a loop that concatenates base64.

$ urlencode 'example 1' example%201 $ echo -n 'example 2'|urlencode example%202 $ for d in {1..30}; do echo -n $d |base64|urlencode ; done MQ%3D%3D Mg%3D%3D Mw%3D%3D <SNIP>

You can pass -d to decode the input.

$ urlencode -d 'example%201' example 1 $ echo -e "example%201\nexample%202" | urlencode -d example 1 example 2

You can keep a character unencoded with -n.

$ echo -n "'http://example.com'"|urlencode -n "'" 'http%3A%2F%2Fexample.com' $ echo -n "'http://example.com'"|urlencode -n "/" %27http%3A//example.com%27

Installation

git clone https://github.com/DLL00P/urlencode cd urlencode chmod +x urlencode.py sudo mv urlencode.py /usr/bin/urlencode

References

About

A CLI tool to URL-encode or decode strings.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages