News for hackers. Stuff that matters.
Re:Password may not contain: select, insert, update, delete,... by matheusmoreira on Sunday January 21, 2024 @10:13PM (#39085751)
Make it infinite times and stop after the output stabilizes to a constant string!
Re:Password may not contain: select, insert, update, delete,... by kevincox on Monday January 22, 2024 @08:16AM (#39089165)
I think this is actually a correct solution. Although not particularly elegant or efficient. If as long as if the string is unsafe the string will be modified. Then looping infinitely will never return an unsafe string. If it is also true that the modifications only delete characters then you will eventually arrive at a safe (or empty) string.