Skip to content

Commit

Permalink
Add an example of using the new comment: keyword argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 27, 2023
1 parent 81bd83f commit 57c6bb0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -177,6 +177,15 @@ puts sqli.to_sql(space: '/**/')
# 1/**/UNION/**/SELECT/**/(1,2,3,4,id)/**/FROM/**/users
```

Bypass filters using MySQL `#` comments:

```ruby
sqli = Ronin::Code::SQLI.new
sqli.or { 1 == 1 }
puts sqli.to_sql(terminate: true, comment: '#')
# 1 OR 1=1 OR 1=1;#
```

## Requirements

* [Ruby] >= 3.0.0
Expand Down

0 comments on commit 57c6bb0

Please sign in to comment.