polarspetroll/EscapeAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

an API for escaping html, shell and path queries


parameters

  • method escaping method
  • data string to be escaped

available methods

MethodDescriptionTypePrevention
htmlHTML escapestringXSS
shellUNIX bourne shell escapestringos command injection
pathUNIX path escapestringdirectory traversal
curl "https://s.polarspetroll.repl.co/api?method=html&data=<>/>,test'"

output :

{
  "ok":true,
  "data":"&lt;&gt;/&gt;,test&#39;"
}

curl "https://s.polarspetroll.repl.co/api?method=shell&data=ls -la | cat /etc/passwd"

output:

{
  "ok":true,
  "data":"ls\\ -la\\ \\|\\ cat\\ /etc/passwd"
}

curl "https://s.polarspetroll.repl.co/api?method=path&data=../../../../../../../etc/passwd"

output:

{
  "ok":true,
  "data":"./././././././etc/passwd"
}

About

An API for escaping different kind of queries

Topics

Resources

Stars

Watchers

Forks

Languages