Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php in_array(count(get_included_files()), ['']) ? strcmp(php_sapi_name(), 'cli') ? pr..

Decoded Output download

<?php 
 
in_array(count(get_included_files()), ['']) ? strcmp(php_sapi_name(), 'cli') ? printf('Usephp-clitorunthechallenge 
') : printf(gzinflate(base_decode('dTBDYAgDAXQefgaC8ODDdfwyhVGmhbaKe/BfQfF8gAQFKz8aRh0JEJY0qIIenINTBEYqNNVUAfuXzIGitJVqpiBaypU8ZKtKmANzewbaqGlrAGbNWslOvgDlULNLfgY9ZiZtdxCsLJ+Q/RVuOxji0jyl9aJfrZLJzxhgtSTWSwdrfYzRFtvc/wU9WpnBQGc'))) . define('F', readline('Flag:')) . (strcmp(strlen(constant('F')), '') ? printf('Nope 
') : (in_array(substr(constant('F'), '0', ''), ['crew{']) ? strstr(strrev(crc(substr(constant('F'), '', ''))), '09') ? strnatcmp('Ak', substr(constant('F'), '', '') ^ substr(constant('F'), '9', '')) ? printf('Nopexor 
') : srand('') . define('D', openssl_decrypt('wCXNcMho0BZO0SxGkHxA==', 'aes-8-cbc', substr(constant('F'), '0', ''), '', pack('L*', rand(), rand(), rand(), rand()))) . (in_array(array_sum([ctype_print(constant('D')), strpos(substr(constant('F'), '', ''), constant('D'))]), ['']) ? strcmp(base_encode(hash('sha', substr(constant('F'), '0', '')) ^ substr(constant('F'), '')), 'BwdRVwUHBQVF') ? printf('Nope
') : printf('Congratulations,thisistherightflag
') : printf('Nope
')) : printf('Nope
') : printf('Nope
'))) : printf('Nope
'); ?>

Did this file decode correctly?

Original Code

<?php

in_array(count(get_included_files()), ['']) ? strcmp(php_sapi_name(), 'cli') ? printf('Usephp-clitorunthechallenge
') : printf(gzinflate(base_decode('dTBDYAgDAXQefgaC8ODDdfwyhVGmhbaKe/BfQfF8gAQFKz8aRh0JEJY0qIIenINTBEYqNNVUAfuXzIGitJVqpiBaypU8ZKtKmANzewbaqGlrAGbNWslOvgDlULNLfgY9ZiZtdxCsLJ+Q/RVuOxji0jyl9aJfrZLJzxhgtSTWSwdrfYzRFtvc/wU9WpnBQGc'))) . define('F', readline('Flag:')) . (strcmp(strlen(constant('F')), '') ? printf('Nope
') : (in_array(substr(constant('F'), '0', ''), ['crew{']) ? strstr(strrev(crc(substr(constant('F'), '', ''))), '09') ? strnatcmp('Ak', substr(constant('F'), '', '') ^ substr(constant('F'), '9', '')) ? printf('Nopexor
') : srand('') . define('D', openssl_decrypt('wCXNcMho0BZO0SxGkHxA==', 'aes-8-cbc', substr(constant('F'), '0', ''), '', pack('L*', rand(), rand(), rand(), rand()))) . (in_array(array_sum([ctype_print(constant('D')), strpos(substr(constant('F'), '', ''), constant('D'))]), ['']) ? strcmp(base_encode(hash('sha', substr(constant('F'), '0', '')) ^ substr(constant('F'), '')), 'BwdRVwUHBQVF') ? printf('Nope\n') : printf('Congratulations,thisistherightflag\n') : printf('Nope\n')) : printf('Nope\n') : printf('Nope\n'))) : printf('Nope\n');

Function Calls

None

Variables

None

Stats

MD5 f5cef3a032bd3b71c3e849f939bda712
Eval Count 0
Decode Time 60 ms