Skip to content

bararchy/crystal-libinjection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Binding in Crystal around Libinjection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published