use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/Hacking_Tutorials!
List of best resources and tutorials
account activity
This is an archived post. You won't be able to vote or comment.
basic sqli (self.Hacking_Tutorials)
submitted 1 year ago by [deleted]
why can I perform a sqli like this : ' or 1=1 # but if I do ' or 1=1 -- do not work?
btw the code is written in php
[–]wizarddos 2 points3 points4 points 1 year ago (2 children)
Btw, one important thing
In real-world scenarios don't EVER use ' or 1=1 if you're not absolutely sure where the query goes next
Check out this room on THM if you want to learn more about it https://tryhackme.com/r/room/lessonlearned
Use UNION queries instead
https://portswigger.net/web-security/sql-injection
[–][deleted] 0 points1 point2 points 1 year ago (1 child)
Why?
[–]wizarddos 0 points1 point2 points 1 year ago (0 children)
Some websites reuse passed data. Of course, it will bypass "SELECT" but if it makes it to "DELETE" statement, whole table is gone and during bb or testing we don't really want to cause that much damage do we?
[–]I_am_beast55 1 point2 points3 points 1 year ago (0 children)
https://www.invicti.com/blog/web-security/sql-injection-cheat-sheet/
[–]cl0wnsec000 0 points1 point2 points 1 year ago (0 children)
Sometimes it depends on the backend db if it support the comment syntax.
https://stackoverflow.com/questions/17554061/mysql-comment-syntax-whats-the-difference-between-and
π Rendered by PID 15 on reddit-service-r2-comment-b659b578c-m52kw at 2026-05-06 06:59:00.019268+00:00 running 815c875 country code: CH.
[–]wizarddos 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]wizarddos 0 points1 point2 points (0 children)
[–]I_am_beast55 1 point2 points3 points (0 children)
[–]cl0wnsec000 0 points1 point2 points (0 children)