crystal-libinjection

Binding in Crystal around Libinjection

crystal-libinjection

Crystal binding around client9 libinjection

docrystal.org

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

  1. Fork it ( https://github.com/bararchy/crystal-libinjection/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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

Thu, 21 Nov 2024 17:56:19 GMT

Languages