Skip to content
/ defang Public

Defang defang or fang url from FILE or standard input line by line to standard output

License

Notifications You must be signed in to change notification settings

amikai/defang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

defang

Defang defang or fang url from FILE or standard input line by line to standard output.

Usage: defang [OPTIONS] [FILE]

Arguments:
  [FILE]  input file. if not specify, the default is stdin

Options:
  -d, --decode   fang the url (reverse operation of defang)
  -h, --help     Print help
  -V, --version  Print version

Example usage

  • Defang from stdin
❯ echo "https://www.google.com" | defang
hxxps://www[.]google[.]com
  • Defang from file line by line
❯ cat foo.txt
http://www.google.com
https://www.google.com

❯ cat foo.txt | defang
hxxp://www[.]google[.]com
hxxps://www[.]google[.]com

❯ defang foo.txt
hxxp://www[.]google[.]com
hxxps://www[.]google[.]com
  • Defang from file line by line and output to file
❯ cat foo.txt
http://www.google.com
https://www.google.com

❯ cat foo.txt | defang > bar.txt
❯ cat bar.txt
hxxp://www[.]google[.]com
hxxps://www[.]google[.]com

❯ defang foo.txt > bar.txt
❯ cat bar.txt
hxxp://www[.]google[.]com
hxxps://www[.]google[.]com

Note: You can use -d option to fang (reverse operation of defang)

About

Defang defang or fang url from FILE or standard input line by line to standard output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages