crystal-libinjection
crystal-libinjection
Crystal binding around client9 libinjection
Installation
Add it to Projectfile
deps do
github "bararchy/crystal-libinjection"
end
Usage
require "crystal-libinjection"
# Pass a string to the module, and check if the string contains SQL Injections
if Libinjection::SqliScan.contains_sqli?(user_request)
puts "SQL injection found".colorize.green
else
puts "String is clear".colorize.green
end
user_request = "Hello Just Testing"
=> String is clear
user_request = "Hello' OR 'a' = 'a' --DROP TABLE"
=> SQL injection found
Development
- Add instructions on how to compile libinjection from sources
- Add a script to update it
Contributing
- Fork it ( https://github.com/bararchy/crystal-libinjection/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- bararchy bararchy - creator, maintainer
Repository
crystal-libinjection
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- over 9 years ago
- May 27, 2015
License
MIT License
Links
Synced at
Wed, 06 Nov 2024 23:07:24 GMT
Languages