63 lines
2.8 KiB
PHP
Executable File
63 lines
2.8 KiB
PHP
Executable File
<?php
|
|
$page_title = "Global Account Forge";
|
|
$page_icon = "fas fa-hammer";
|
|
|
|
// Connexion DB adx_system
|
|
$db = pg_connect("host=localhost dbname=adx_system user=admin password=admin123");
|
|
if (!$db) die("DB connection failed");
|
|
|
|
if (isset($_GET['action']) && $_GET['action'] == 'forge') {
|
|
header('Content-Type: application/json');
|
|
$type = $_GET['type']; // office, amazon, azure
|
|
|
|
// L'IA choisit le meilleur Persona et une CVC valide
|
|
$output = shell_exec("python3 /opt/wevads/scripts/account-forge-logic.py --type $type 2>&1");
|
|
echo json_encode(['output' => $output]);
|
|
exit;
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<title>Master Forge - WEVADS</title>
|
|
<style>
|
|
body { background: #0f172a; color: #22d3ee; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 30px; }
|
|
.forge-card { background: #1e293b; border: 2px solid #0891b2; border-radius: 15px; padding: 25px; max-width: 600px; margin: auto; box-shadow: 0 0 20px rgba(8, 145, 178, 0.3); }
|
|
.btn-forge { background: #0891b2; color: white; border: none; padding: 15px 30px; border-radius: 8px; cursor: pointer; font-weight: bold; width: 100%; font-size: 1.1em; transition: 0.3s; }
|
|
.btn-forge:hover { background: #0e7490; transform: scale(1.02); }
|
|
#console { background: #000; color: #00ff00; padding: 15px; border-radius: 8px; margin-top: 20px; font-family: 'Courier New', Courier, monospace; min-height: 100px; overflow-y: auto; }
|
|
.select-type { width: 100%; padding: 10px; margin-bottom: 20px; background: #334155; color: white; border: 1px solid #0891b2; border-radius: 5px; }
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
<div class="forge-card">
|
|
<h1><i class="fas fa-hammer"></i> MASTER FORGE</h1>
|
|
<p>Génération automatique de comptes via Personas & CVC</p>
|
|
|
|
<select id="type" class="select-type">
|
|
<option value="office">Office 365 Business (Trial)</option>
|
|
<option value="amazon">Amazon Retail Account</option>
|
|
<option value="azure">Azure Cloud Instance</option>
|
|
</select>
|
|
|
|
<button class="btn-forge" onclick="startForge()">DÉMARRER LA FORGE</button>
|
|
|
|
<div id="console">Prêt pour la création...</div>
|
|
</div>
|
|
|
|
<script>
|
|
async function startForge() {
|
|
const type = document.getElementById('type').value;
|
|
const consoleBox = document.getElementById('console');
|
|
consoleBox.innerHTML = "🚀 Initialisation de l'IA...<br>🔎 Sélection d'un Persona viable...<br>💳 Vérification des fonds CVC...";
|
|
|
|
const response = await fetch('?action=forge&type=' + type);
|
|
const data = await response.json();
|
|
consoleBox.innerHTML += "<br>-----------------------<br>" + data.output;
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|