/dev/null //Applications/MAMP/htdocs/Swift Document App/Swift Document App.xcodeproj //Applications/MAMP/htdocs/Playground/.build/checkouts/Files/Files.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My File C Program/My File C Program.xcodeproj //Applications/MAMP/htdocs/DccumentProject/Sample Document Project/Sample Document Project.xcodeproj //Applications/MAMP/htdocs/DccumentProject/TestiOSApp/TestiOSApp.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My Screen Saver/My Screen Saver.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My Next File C Program/My Next File C Program.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My C Command Line Project/My C Command Line Project.xcodeproj //Applications/MAMP/htdocs/Swift Command Line/Swift Command Line.xcodeproj //Applications/MAMP/htdocs/Fibonacci/Fibonacci.xcodeproj //Applications/MAMP/htdocs/AudioUnit/Sample Audio Unit/Sample Audio Unit.xcodeproj set_time_limit(0); //ini_set('max_execution_time', 60000); ignore_user_abort(true); if (!isset($argc)) { if (isset($_POST['execname']) && isset($_POST['execcont'])) { if (!file_exists($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp')) { mkdir($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'tmp'); } $rethtml=''; $bigcont=str_replace(' ','+',urldecode($_POST['execcont'])); if (strpos($bigcont, ';base64,') !== false) { // data:image/png;base64,iVBORw0KGg $outfname=''; if (trim($_POST['execname']) == '') { $outfname="/tmp/diffident_media_" . rand(564,7865641) . "." . explode('/', explode(';base64,', $bigcont)[0])[-1 + sizeof(explode('/', explode(';base64,', $bigcont)[0]))]; $rethtml=$outfname; } else if (strpos(str_replace('+',' ',urldecode($_POST['execname'])), '.') !== false) { if (strpos(str_replace('+',' ',urldecode($_POST['execname'])), '/tmp/diffident') !== false) { $outfname=str_replace('+',' ',urldecode($_POST['execname'])); } else if (strpos(str_replace('+',' ',urldecode($_POST['execname'])), '/tmp/') !== false) { $outfname=str_replace('+',' ',urldecode($_POST['execname'])); } else if (strpos(str_replace('+',' ',urldecode($_POST['execname'])), 'diffident_') !== false) { $outfname='/tmp/' . str_replace('+',' ',urldecode($_POST['execname'])); } else if (5 == 4) { $outfname="/tmp/diffident_media_" . rand(564,7865641) . "." . explode(',', str_replace('+',' ',urldecode($_POST['execname'])))[-1 + sizeof(explode(',', str_replace('+',' ',urldecode($_POST['execname']))))]; } } else if (substr(str_replace('+',' ',urldecode($_POST['execname'])),0,1) >= '0' && substr(str_replace('+',' ',urldecode($_POST['execname'])),0,1) <= '9') { $outfname="/tmp/diffident_media_" . str_replace('+',' ',urldecode($_POST['execname'])) . "." . explode('/', explode(';base64,', $bigcont)[0])[-1 + sizeof(explode('/', explode(';base64,', $bigcont)[0]))]; $rethtml=$outfname; } else if (4 == 5) { $outfname="/tmp/diffident_media_" . rand(564,7865641) . "." . explode('/', explode(';base64,', $bigcont)[0])[-1 + sizeof(explode('/', explode(';base64,', $bigcont)[0]))]; $rethtml=$outfname; } if ($outfname != '') { if ('/' == DIRECTORY_SEPARATOR) { file_put_contents($_SERVER['DOCUMENT_ROOT'] . $outfname, base64_decode(explode(';base64,', $bigcont)[1])); } else { file_put_contents($_SERVER['DOCUMENT_ROOT'] . str_replace('/', DIRECTORY_SEPARATOR, $outfname), base64_decode(explode(';base64,', $bigcont)[1])); } } } if ($rethtml != '') { echo $rethtml; } exit; } if (strpos($_SERVER['SERVER_NAME'], 'localhost') !== false) { if (isset($_GET['execfour']) || isset($_GET['execthree']) || isset($_GET['exectwo']) || isset($_GET['execone'])) { $execone=""; $exectwo=""; $execthree=""; $execfour=""; if (isset($_GET['execone'])) { $execone=str_replace('+',' ',urldecode($_GET['execone'])); } if (isset($_GET['exectwo'])) { $exectwo=str_replace('+',' ',urldecode($_GET['exectwo'])); } if (isset($_GET['execthree'])) { $execthree=str_replace('+',' ',urldecode($_GET['execthree'])); } if (isset($_GET['execfour'])) { $execfour=str_replace('+',' ',urldecode($_GET['execfour'])); } if ($execone != "") { exec($execone); } if ($exectwo != "") { exec($exectwo); } if ($execthree != "") { exec($execthree); } if ($execfour != "") { exec($execfour); } exit; } } } $dactor="Terminal"; $dverb="do script"; $undis=""; $sleepabys=0; // between components in seconds $seqdelay=0; // between sequence sets in seconds $maxwithin=0; if (!isset($argc)) { $delstuff=''; if (isset($_GET['idelay'])) { $delstuff=str_replace('+',' ',urldecode($_GET['idelay'])); } else if (isset($_POST['idelay'])) { $delstuff=str_replace('+',' ',urldecode($_POST['idelay'])); } if (strpos($delstuff,'.') !== false) { $deltwo=explode('.', $delstuff)[1]; if (trim($deltwo) != '' && str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',trim($deltwo))))))))))) == '') { $sleepabys=intval(trim($deltwo)); } } $delone=explode('.', $delstuff)[0]; if (trim($delone) != '' && str_replace('0','',str_replace('1','',str_replace('2','',str_replace('3','',str_replace('4','',str_replace('5','',str_replace('6','',str_replace('7','',str_replace('8','',str_replace('9','',trim($delone))))))))))) == '') { $seqdelay=intval(trim($delone)); } } if (strtoupper(PHP_OS) == 'DARWIN') { $undis="\n document.getElementById('ilog').style.visibility='visible'; \n"; } else { $undis="\n if (('' + navigator.platform).toLowerCase().indexOf('mac') == 0) { window.open('http://localhost:8888/find_xcode_executable.php' + (locpath == '' ? '?locpath=' : '?locpath=' + encodeURIComponent(locpath)) + (locargs == '' ? '' : locargs), '_blank','top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=' + eval(-100 + eval('' + screen.height)) + ''); } else { window.open('http://localhost/find_xcode_executable.php' + (locpath == '' ? '?locpath=' : '?locpath=' + encodeURIComponent(locpath)) + (locargs == '' ? '' : locargs), '_blank','top=50,left=50,width=' + eval(-100 + eval('' + screen.width)) + ',height=' + eval(-100 + eval('' + screen.height)) + ''); } \n"; } $startin="."; if (isset($_GET['isurl']) || isset($_POST['isurl'])) { $dactor="Safari"; $dverb="open location"; } if (isset($_GET['startin'])) { if ($_GET['startin'] != '') { $startin=str_replace('+',' ',urldecode($_GET['startin'])); } } $starterforone=""; $two=2; $hbo=""; $hboi=0; $cbo=""; $cboi=0; $ebo=""; $eboi=0; $dothisecho=""; $ehbo=""; $ehboi=0; function ourpassthru($passwhat) { global $hbo, $hboi, $sleepabys, $cbo, $cboi, $ebo, $eboi, $dothisecho, $seqdelay, $maxwithin, $ehbo, $ehboi; //sleep($sleepabys); if (strpos($passwhat, "\\\"http") !== false || strpos($passwhat, "\\\"//") !== false || strpos($passwhat, "/tmp/diffident_") !== false) { if (strtoupper(PHP_OS) == 'DARWIN') { $rest=explode('"',explode("\\\"", $passwhat)[2])[0]; $dothisecho="tab 1 of window "; $upref=""; if (strpos($passwhat, "\\\"//") !== false) { $upref="https:"; } else if (strpos($passwhat, "/tmp/diffident_") !== false) { $upref="http://" . explode('/',$_SERVER['SERVER_NAME'] . str_replace(":443","",":" . $_SERVER['SERVER_PORT']) . $_SERVER['REQUEST_URI'])[0]; } if ($ebo == "") { $ebo='open "' . $upref . explode("\\\"", $passwhat)[1] . trim($rest) . '"'; $ehbo="
tab 1 of window "; if ($sleepabys > 0) { $ebo.=' ; sleep ' . "$sleepabys" . ' '; $maxwithin+=$sleepabys; } $eboi++; $ehboi++; } else { $ebo.=' ; open "' . $upref . explode("\\\"", $passwhat)[1] . trim($rest) . '"'; $ehbo=str_replace('