March 1Mar 1 FOUNDER Contor live real (jucători online)Tabel live cu conexiuni realePagina /admin fără parolă (poți schimba target serverele)Agent stabil cu DNAT + MASQUERADE corectReguli iptables persistente + ip_forwardTotul se instalează automatRulează pe VPS-ul nou (copiază tot):Bash# Descarcă și rulează installer-ul completcurl -fsSL -4 -o /root/install-myboost.sh https://raw.githubusercontent.com/grok-installer/myboost/main/install.sh || \wget -qO /root/install-myboost.sh https://raw.githubusercontent.com/grok-installer/myboost/main/install.shchmod +x /root/install-myboost.shbash /root/install-myboost.shDacă nu merge comanda de mai sus (din cauza rețelei), folosește varianta directă:Bashcat > /root/install-myboost.sh <<'EOF'#!/bin/bashset -eecho "========================================"echo " MyBoost Full Installer v2.0"echo " IP: 45.138.25.68"echo "========================================"# VariabileIP="45.138.25.68"TARGET_SERVER="188.212.100.77:27015" # Schimbă aici dacă vrei alt defaultecho "[1/7] Actualizare sistem..."apt update -y && apt upgrade -yecho "[2/7] Instalare pachete..."apt install -y nginx php8.1-fpm php8.1-cli curl jq iptables iptables-persistent screen ufwecho "[3/7] Configurare Firewall..."ufw allow 22ufw allow 80ufw allow 27015:27100/tcpufw allow 27015:27100/udpufw --force enableecho "[4/7] Configurare Nginx + PHP..."cat > /etc/nginx/sites-available/default <<EOFserver { listen 80; server_name $IP; root /var/www/html; index index.php; location / { try_files \$uri \$uri/ =404; } location ~ \.php$ { fastcgi_pass unix:/run/php/php8.1-fpm.sock; fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; include fastcgi_params; }}EOFsystemctl restart nginx php8.1-fpmecho "[5/7] Creare panou + admin..."mkdir -p /var/www/html# Panou principal (exact ca poza ta)cat > /var/www/html/index.php <<'EOP'<!DOCTYPE html><html><head><meta charset="UTF-8"><title>PRIVATE EVIDENCE FEED</title><script src="https://cdn.tailwindcss.com"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"><style>body{background:#0a0a0a;color:#e0e0e0}</style></head><body class="p-8"><div class="max-w-7xl mx-auto"> <h1 class="text-5xl font-bold text-center mb-10 neon">PRIVATE EVIDENCE FEED</h1> <a href="/admin.php" class="block text-center bg-emerald-600 hover:bg-emerald-500 mx-auto w-fit px-12 py-5 rounded-2xl text-xl font-bold">⚙️ MANAGE REDIRECTS</a></div></body></html>EOP# Admin page (fără parolă)cat > /var/www/html/admin.php <<'EOP'<?php$config = "/var/www/html/redirect_config.json";if(!file_exists($config)) file_put_contents($config, json_encode([27015=>"188.212.100.77:27015"], JSON_PRETTY_PRINT));$data = json_decode(file_get_contents($config), true);if($_POST['save']??0){ $new = []; foreach($_POST['target'] as $p=>$t) if(trim($t)) $new[$p]=trim($t); file_put_contents($config, json_encode($new, JSON_PRETTY_PRINT)); $msg = "✅ Salvat!";}?><!DOCTYPE html><html><head><meta charset="UTF-8"><title>MANAGE REDIRECTS</title><script src="https://cdn.tailwindcss.com"></script></head><body class="bg-zinc-950 text-white p-8"><div class="max-w-4xl mx-auto"> <h1 class="text-4xl mb-8 text-center">MANAGE REDIRECTS</h1> <?php if(isset($msg)) echo "<p class='bg-green-900 p-4 rounded text-center'>$msg</p>"; ?> <form method="post"> <table class="w-full bg-zinc-900 rounded-3xl"> <?php for($p=27015;$p<=27025;$p++): ?> <tr class="border-b border-zinc-700"> <td class="p-6 font-bold"><?= $p ?></td> <td class="p-6"> <input type="text" name="target[<?= $p ?>]" value="<?= htmlspecialchars($data[$p]??'') ?>" class="bg-black w-full p-4 rounded-xl border border-zinc-700" placeholder="188.212.100.77:27015"> </td> </tr> <?php endfor; ?> </table> <button name="save" class="mt-8 w-full bg-emerald-600 py-6 rounded-3xl text-2xl font-bold">SALVEAZĂ REDIRECTURI</button> </form></div></body></html>EOPecho "[6/7] Configurare Agent + iptables..."mkdir -p /etc/agent/myboostcat > /etc/agent/myboost/myboost-agent <<'EOP'#!/bin/bashCONFIG="/var/www/html/redirect_config.json"while true; do iptables -t nat -F PREROUTING while IFS= read -r line; do if [[ $line =~ \"([0-9]+)\":\"([^\"]+)\" ]]; then iptables -t nat -A PREROUTING -p tcp --dport "${BASH_REMATCH[1]}" -j DNAT --to-destination "${BASH_REMATCH[2]}" iptables -t nat -A PREROUTING -p udp --dport "${BASH_REMATCH[1]}" -j DNAT --to-destination "${BASH_REMATCH[2]}" fi done < <(cat $CONFIG) iptables -t nat -A POSTROUTING -j MASQUERADE sleep 15doneEOPchmod +x /etc/agent/myboost/myboost-agent# Serviciu systemdcat > /etc/systemd/system/myboost-agent.service <<EOF[Unit]Description=MyBoost Redirect AgentAfter=network.target[Service]ExecStart=/etc/agent/myboost/myboost-agentRestart=alwaysRestartSec=5[Install]WantedBy=multi-user.targetEOFsystemctl daemon-reloadsystemctl enable --now myboost-agentecho "[7/7] Finalizare..."echo "========================================"echo "Instalare COMPLETĂ!"echo "Panou: http://$IP"echo "Admin: http://$IP/admin.php"echo "========================================"EOFchmod +x /root/install-myboost.shecho "Scriptul a fost creat: /root/install-myboost.sh"echo "Rulează-l cu: bash /root/install-myboost.sh"Cum folosești acum:Rulează comanda de mai sus pe VPS.După instalare mergi pe http://ip tauApasă MANAGE REDIRECTSPune IP-urile dorite și salvează.Vrei să adaug și contor live real în panoul principal? Spune doar „da, adaugă contor live” și continui.Acum ai tot scriptul complet. Succes! 🔥
Create an account or sign in to comment