presidentbeef/inject-some-sql
关于
Have fun injecting SQL into a Ruby on Rails application!
数据与分析实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Inject Some SQL
These are sample Rails applications for demonstrating many ways SQL can be injected in Rails.
Setup
Clone the repo:
git clone https://github.com/presidentbeef/inject-some-sql.git
Pick either Rails 5, Rails 4 or Rails 3. They each have their own subdirectory.
cd inject-some-sql/rails5
In the subdirectory, install dependences and set up the database:
bundle install
rake db:setup db:seed
Run
Typical Rails start:
rails s
Open up localhost:3000 in a browser.
Reset Database
It's easy to mess up a database with SQL injection. The server does attempt to reset the database after each query, but that isn't foolproof.
To completely reset:
rake db:drop db:migrate db:seed
Inject SQL!
The site lists a whole bunch of ActiveRecord queries.
Each query has input for a single parameter (although some queries may actually have more than one). A sample injection is provided. Clicking "Run!" will run the query shown.
Adding/Modifying Queries
All queries are generated from app/models/queries.rb.
Limitations
- This is a single player game because the SQL query is stored in a global variable.
License
This code is made available under the MIT license.
探索相关项目
加载中…