localhost'; if ($sugu == '_') { $sugu='-'; } else { $sugu.='-'; } } } if (isset($_GET['initc'])) { $initc=oururldecode($_GET['initc']); } else { $initc="EnvGet, vUserProfile, USERPROFILE param := \"\" paramtwo := \"x.ahk\" paramthree := \"x.exe\" yeslf := \"\" dq := Chr(34) Loop, %0% ; For each parameter: { if A_Index = 1 ZZ_Index = \"%1%\" else if A_Index = 2 ZZ_Index = \"%2%\" else if A_Index = 3 ZZ_Index = \"%3%\" If ZZ_Index contains \".ahk\" { paramtwo = \"%ZZ_Index%\" paramthree := StrReplace(paramtwo, \".ahk\", \".exe\") } else { If ZZ_Index contains \".AHK\" { paramtwo = \"%ZZ_Index%\" paramthree := StrReplace(paramtwo, \".AHK\", \".exe\") } else { yeslf := StrReplace(ZZ_Index, \"(])\", \"`r`n\") If StrLen(\"%yeslf%\") = StrLen(\"%ZZ_Index%\") { If ZZ_Index contains \".\" { FileDelete, %vUserProfile%\%paramtwo% FileCopy, %ZZ_Index%, %vUserProfile%\%paramtwo% } else { If SubStr(yeslf, 1, 1) = Chr(34) yeslf := SubStr(yeslf, 2, (Strlen(yeslf) - 2)) param := \"yes\" } } else If SubStr(yeslf, 1, 1) = Chr(34) yeslf := SubStr(yeslf, 2, (Strlen(yeslf) - 2)) param := \"yes\" ; Fetch the contents of the variable whose name is contained in A_Index. } } } If StrLen(param) != 0 { FileDelete, %vUserProfile%\%paramtwo% FileAppend, %yeslf%, %vUserProfile%\%paramtwo% } IfWinExist Ahk2Exe.exe for AutoHotKey WinActivate else { Run c:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe /in %vUserProfile%\%paramtwo% /out %vUserProfile%\%paramthree% WinActivate Ahk2Exe.exe for AutoHotKey } Run %vUserProfile%\%paramthree% return"; } if (isset($_GET['ahkthere'])) { if (strpos($_SERVER['SERVER_NAME'], 'localhost') !== false) { if ($autohotkeythere != "") { echo "
"; } else { echo " "; } exit; } } if (isset($_GET['porttry'])) { if (strlen($_GET['porttry']) == 0) { $porttry=""; } else { $porttry=':' . str_replace(':','',str_replace('+',' ',urldecode($_GET['porttry']))); if ($porttry == ":80") { $porttry=""; } } } if (isset($_GET['dirbit'])) { if (strlen($_GET['dirbit']) > 0) { $dirbit=str_replace('+',' ',urldecode($_GET['dirbit'])); if (strpos($dirbit . '`', DIRECTORY_SEPARATOR . '`') === false) { $dirbit.=DIRECTORY_SEPARATOR; } } } if (isset($_GET['ahkcommand']) && !isset($_GET['partcode'])) { if ($autohotkeycompiler != "") { exec($autohotkeycompiler . ' "' . str_replace(' ', '" "',trim(str_replace("\n", "(])", str_replace("\r\n", "(])", str_replace('+',' ',urldecode($_GET['ahkcommand'])))), '"')) . '"'); } exit; } if (isset($_GET['partcode']) && isset($_GET['filecontent']) && isset($_GET['filename']) && strpos($_SERVER['SERVER_NAME'], 'localhost') !== false) { $dirbit=""; $filebit=basename(str_replace('+',' ',urldecode($_GET['filename']))); if (PHP_OS == "Darwin") { $dirbit.=getenv("HOME") . DIRECTORY_SEPARATOR; } else if (PHP_OS =='WINNT' || PHP_OS =='WIN32' || PHP_OS =='Windows') { $dirbit.=getenv("USERPROFILE") . DIRECTORY_SEPARATOR; } if (isset($_GET['dirbit'])) { if (strlen($_GET['dirbit']) > 0) { $dirbit=str_replace('+',' ',urldecode($_GET['dirbit'])); if (strpos($dirbit . '`', DIRECTORY_SEPARATOR . '`') === false) { $dirbit.=DIRECTORY_SEPARATOR; } } } if ($dirbit == "") { $xdirbit=dirname(__FILE__) . DIRECTORY_SEPARATOR; } if (strlen($_GET['partcode']) > 0) { $isfinal=false; if (strpos($_GET['partcode'], 'of') !== false) { if (explode('of', $_GET['partcode'])[0] == explode('of', $_GET['partcode'])[1]) { $isfinal=true; if (strpos('`' . str_replace('+',' ',urldecode($_GET['partcode'])), '`1of') !== false) { if (file_exists($dirbit . $filebit)) { unlink($dirbit . $filebit); } } } } if (!$isfinal && strpos('`' . str_replace('+',' ',urldecode($_GET['partcode'])), '`1of') !== false) { file_put_contents($dirbit . $filebit, oururldecode($_GET['filecontent'])); } else { $sofar=""; if (file_exists($dirbit . $filebit)) { $sofar=file_get_contents($dirbit . $filebit); } //file_put_contents($dirbit . $filebit, $sofar . oururldecode($_GET['filecontent'])); if (strpos($_GET['partcode'], 'of') !== false) { if (explode('of', $_GET['partcode'])[0] == explode('of', $_GET['partcode'])[1]) { file_put_contents($dirbit . $filebit, $sofar . oururldecode($_GET['filecontent'])); if (strpos(strtolower($filebit), "compileahk.ahk") !== false) { if ($autohotkeythere != "") { if ($autohotkeycompiler != "") { unlink($autohotkeycompiler); exec($autohotkeythere . " /in " . $dirbit . $filebit . " /out " . $autohotkeycompiler); } else { $autohotkeycompiler=str_replace('.AHK','.exe',str_replace('.ahk','.exe',$dirbit . $filebit)); exec($autohotkeythere . " /in " . $dirbit . $filebit . " /out " . $autohotkeycompiler); } } } else if (strpos(strtolower($filebit), ".ahk") !== false) { if ($autohotkeythere != "") { if ($autohotkeycompiler != "" || 1 == 1) { $acompiler=str_replace('.AHK','.exe',str_replace('.ahk','.exe',$dirbit . $filebit)); if (file_exists($acompiler)) { unlink($acompiler); } exec($autohotkeythere . " /in " . $dirbit . $filebit . " /out " . $acompiler); } if (isset($_GET['ahkargs'])) { if ($autohotkeycompiler != "" || 1 == 1) { if (strlen($_GET['ahkargs']) == 0) { exec($acompiler); } else { exec($acompiler . ' "' . str_replace(' ', '" "',trim(str_replace("\n", "(])", str_replace("\r\n", "(])", str_replace('+',' ',urldecode($_GET['ahkargs'])))), '"')) . '"'); } } //exit; } } } echo "Optional Path (else user home directory) | |
Base Filename (eg. AutoHotKey compiling script) | |
Chunking Start Code | |
Content (maybe chunked) |