Skip to content

Commit 57c6bb0

Browse files
committed
Add an example of using the new comment: keyword argument.
1 parent 81bd83f commit 57c6bb0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,15 @@ puts sqli.to_sql(space: '/**/')
177177
# 1/**/UNION/**/SELECT/**/(1,2,3,4,id)/**/FROM/**/users
178178
```
179179

180+
Bypass filters using MySQL `#` comments:
181+
182+
```ruby
183+
sqli = Ronin::Code::SQLI.new
184+
sqli.or { 1 == 1 }
185+
puts sqli.to_sql(terminate: true, comment: '#')
186+
# 1 OR 1=1 OR 1=1;#
187+
```
188+
180189
## Requirements
181190

182191
* [Ruby] >= 3.0.0

0 commit comments

Comments
 (0)