Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I got stuck on level 3 too, unfortunately after reading this I had the answer the entire time! I had been trying an SQL injection but couldn't get it to work, so eventually I assumed maybe format() does something weird (I've never used Python before) and that is blocking the SQL injection and there must be another solution. I must have been malformed SQL or typoing, hah.


Haha, same here. I tried so many things including trying to exploit .format (not much Python experience here either) and finally decided that it must be the SQL injection. Didn't solve it though, but got close according to the write-ups.


For future reference: When you run into a problem where you think that syntax errors are the cause, try to replicate the database on your own computer.

In this case, the database schema and the code to access the database is known. The errors that are thrown when trying to exploit it locally will help you find a solution :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: