Solving Luhn

This challenge was written for Ruxcon CTF 2015. It's an SQL injection with a twist

PRO
Tier
Hard
2-4 Hrs.
579