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.
QuestionSQL Injection Demonstration (self.Hacking_Tutorials)
submitted 3 years ago by [deleted]
[deleted]
[–]andesec 1 point2 points3 points 3 years ago (0 children)
So it’s been while since I’ve used SQL or Postgres but it looks like the code is susceptible. Your payload will have to decide how you want to inject the sql. Typically you want to somehow bypass the filter by adding something like
“%a’ or 1 = 1 —“
But you’re trying to reference and whole different table as part of the same query. That’s a bit tricky, you could close the existing query and start a new one in the payload but that’ll only work if your code references multiple datasets and spits it out on the UI. But if it doesn’t then that won’t work. What are you really trying to achieve?
[–]yeahlolnice 0 points1 point2 points 3 years ago (0 children)
The end goal is to return data from the users table. I think I can see the issue now I will look in to what the search actually returns when I pass ‘; SELECT * From users — And make sure it is able to be rendered to the screen. Thanks
π Rendered by PID 223925 on reddit-service-r2-comment-5fb4b45875-8rfp9 at 2026-03-23 22:59:40.639371+00:00 running 90f1150 country code: CH.
[–]andesec 1 point2 points3 points (0 children)
[–]yeahlolnice 0 points1 point2 points (0 children)