{"id":19923381,"url":"https://github.com/corazawaf/libinjection-go","last_synced_at":"2025-04-13T00:44:24.207Z","repository":{"id":44612298,"uuid":"430027453","full_name":"corazawaf/libinjection-go","owner":"corazawaf","description":"libinjection is a Golang port of the libinjection(https://github.com/client9/libinjection)","archived":false,"fork":false,"pushed_at":"2024-10-24T02:03:17.000Z","size":256,"stargazers_count":38,"open_issues_count":2,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-24T18:22:46.715Z","etag":null,"topics":["coraza-waf","go","golang","libinjection","owasp","sql-injection","waf","xss"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corazawaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2021-11-20T06:29:10.000Z","updated_at":"2024-10-24T02:03:21.000Z","dependencies_parsed_at":"2024-06-10T23:44:57.573Z","dependency_job_id":"2c86d8d7-a5a9-42f9-82ff-f1e3d80475ec","html_url":"https://github.com/corazawaf/libinjection-go","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corazawaf%2Flibinjection-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corazawaf%2Flibinjection-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corazawaf%2Flibinjection-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corazawaf%2Flibinjection-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corazawaf","download_url":"https://codeload.github.com/corazawaf/libinjection-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650419,"owners_count":21139672,"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":["coraza-waf","go","golang","libinjection","owasp","sql-injection","waf","xss"],"created_at":"2024-11-12T22:14:03.784Z","updated_at":"2025-04-13T00:44:24.172Z","avatar_url":"https://github.com/corazawaf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libinjection \n[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![codecov](https://codecov.io/gh/corazawaf/libinjection-go/branch/master/graph/badge.svg?token=RTCQXUDZQQ)](https://codecov.io/gh/corazawaf/libinjection-go)\n[![CodeQL](https://github.com/corazawaf/libinjection-go/actions/workflows/codeql.yml/badge.svg)](https://github.com/corazawaf/libinjection-go/actions/workflows/codeql.yml)\n\nlibinjection is a Go porting of the libinjection([http://www.client9.com/projects/libinjection/](http://www.client9.com/projects/libinjection/)) and it's thread safe.\n\n## How to use\n### SQLi Example\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/corazawaf/libinjection-go\"\n)\n\nfunc main() {\n    result, fingerprint := libinjection.IsSQLi(\"-1' and 1=1 union/* foo */select load_file('/etc/passwd')--\")\n    fmt.Println(\"=========result==========: \", result)\n    fmt.Println(\"=======fingerprint=======: \", string(fingerprint))\n}\n```\n\n### XSS Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/corazawaf/libinjection-go\"\n)\n\nfunc main() {\n\tfmt.Println(\"result: \", libinjection.IsXSS(\"\u003cscript\u003ealert('1')\u003c/script\u003e\"))\n}\n```\n\n## License\nlibinjection-go is distributed under the same license as the [libinjection](http://www.client9.com/projects/libinjection/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorazawaf%2Flibinjection-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorazawaf%2Flibinjection-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorazawaf%2Flibinjection-go/lists"}