{"id":17680794,"url":"https://github.com/bararchy/crystal-libinjection","last_synced_at":"2025-03-30T19:13:13.342Z","repository":{"id":32769098,"uuid":"36360610","full_name":"bararchy/crystal-libinjection","owner":"bararchy","description":"Binding in Crystal around Libinjection","archived":false,"fork":false,"pushed_at":"2015-07-11T08:36:44.000Z","size":632,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T21:36:48.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bararchy.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}},"created_at":"2015-05-27T10:46:14.000Z","updated_at":"2015-05-27T10:46:37.000Z","dependencies_parsed_at":"2022-08-30T15:21:39.610Z","dependency_job_id":null,"html_url":"https://github.com/bararchy/crystal-libinjection","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/bararchy%2Fcrystal-libinjection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bararchy%2Fcrystal-libinjection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bararchy%2Fcrystal-libinjection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bararchy%2Fcrystal-libinjection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bararchy","download_url":"https://codeload.github.com/bararchy/crystal-libinjection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365645,"owners_count":20765546,"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":[],"created_at":"2024-10-24T09:08:51.217Z","updated_at":"2025-03-30T19:13:13.318Z","avatar_url":"https://github.com/bararchy.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crystal-libinjection\n\nCrystal binding around client9 [libinjection](https://github.com/client9/libinjection)\n\n[![docrystal.org](http://www.docrystal.org/badge.svg)](http://www.docrystal.org/github.com/bararchy/crystal-libinjection)\n\n## Installation\n\nAdd it to `Projectfile`\n\n```crystal\ndeps do\n  github \"bararchy/crystal-libinjection\"\nend\n```\n\n## Usage\n\n```crystal\nrequire \"crystal-libinjection\"\n\n# Pass a string to the module, and check if the string contains SQL Injections\n\nif Libinjection::SqliScan.contains_sqli?(user_request)\n  puts \"SQL injection found\".colorize.green\nelse\n  puts \"String is clear\".colorize.green\nend\n```\n```crystal\nuser_request = \"Hello Just Testing\"\n=\u003e String is clear\n\nuser_request = \"Hello' OR 'a' = 'a' --DROP TABLE\"\n=\u003e SQL injection found\n```\n\n## Development\n\n* Add instructions on how to compile libinjection from sources\n* Add a script to update it\n\n## Contributing\n\n1. Fork it ( https://github.com/bararchy/crystal-libinjection/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [bararchy](https://github.com/bararchy) bararchy - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbararchy%2Fcrystal-libinjection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbararchy%2Fcrystal-libinjection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbararchy%2Fcrystal-libinjection/lists"}