{"id":20652207,"url":"https://github.com/polarspetroll/escapeapi","last_synced_at":"2025-06-15T18:38:39.165Z","repository":{"id":93434018,"uuid":"371816396","full_name":"polarspetroll/EscapeAPI","owner":"polarspetroll","description":"An API for escaping different kind of queries","archived":false,"fork":false,"pushed_at":"2021-06-30T18:38:20.000Z","size":4,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T06:33:17.740Z","etag":null,"topics":["api","directory-traversal","os-command-injection","path-traversal","security","xss"],"latest_commit_sha":null,"homepage":"https://s.polarspetroll.repl.co/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polarspetroll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-05-28T20:55:07.000Z","updated_at":"2024-09-17T07:49:13.000Z","dependencies_parsed_at":"2023-03-06T09:30:34.879Z","dependency_job_id":null,"html_url":"https://github.com/polarspetroll/EscapeAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polarspetroll%2FEscapeAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polarspetroll%2FEscapeAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polarspetroll%2FEscapeAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polarspetroll%2FEscapeAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polarspetroll","download_url":"https://codeload.github.com/polarspetroll/EscapeAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249517749,"owners_count":21284832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","directory-traversal","os-command-injection","path-traversal","security","xss"],"created_at":"2024-11-16T17:33:08.618Z","updated_at":"2025-04-18T16:18:23.872Z","avatar_url":"https://github.com/polarspetroll.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Escape API\n\nan API for escaping html, shell and path queries\n\n---\n\n## Documentation\n\n**parameters**\n- **method** escaping method\n- **data** string to be escaped\n\n**available methods**\n\nMethod | Description |  Type | Prevention|\n|---|---|---|---|\n| html | HTML escape | string | XSS\n| shell|  UNIX bourne shell escape| string | os command injection\n| path | UNIX path escape | string | directory traversal\n\n#### examples\n\n```\ncurl \"https://s.polarspetroll.repl.co/api?method=html\u0026data=\u003c\u003e/\u003e,test'\"\n```\noutput :\n```json\n{\n  \"ok\":true,\n  \"data\":\"\u0026lt;\u0026gt;/\u0026gt;,test\u0026#39;\"\n}\n```\n---\n```\ncurl \"https://s.polarspetroll.repl.co/api?method=shell\u0026data=ls -la | cat /etc/passwd\"\n```\n\noutput:\n\n```json\n{\n  \"ok\":true,\n  \"data\":\"ls\\\\ -la\\\\ \\\\|\\\\ cat\\\\ /etc/passwd\"\n}\n```\n---\n\n```\ncurl \"https://s.polarspetroll.repl.co/api?method=path\u0026data=../../../../../../../etc/passwd\"\n```\n\noutput:\n\n```json\n{\n  \"ok\":true,\n  \"data\":\"./././././././etc/passwd\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolarspetroll%2Fescapeapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolarspetroll%2Fescapeapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolarspetroll%2Fescapeapi/lists"}