presidentbeef/inject-some-sql
소개
Have fun injecting SQL into a Ruby on Rails application!
데이터 및 분석측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalInject 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.
관련 프로젝트 살펴보기
불러오는 중…