diff --git a/public_html/bridge.php b/public_html/bridge.php new file mode 100644 index 0000000..1ac1c8e --- /dev/null +++ b/public_html/bridge.php @@ -0,0 +1,11 @@ + + + diff --git a/public_html/index.php b/public_html/index.php new file mode 100644 index 0000000..d7d62ab --- /dev/null +++ b/public_html/index.php @@ -0,0 +1,15 @@ +sessionStorage.setItem("jarvis_token",' . json_encode($token) + . ');sessionStorage.setItem("jarvis_user",' . json_encode($name) . ');'; +echo str_replace('', '' . $inject, $html); diff --git a/public_html/login.php b/public_html/login.php new file mode 100644 index 0000000..1e9e46c --- /dev/null +++ b/public_html/login.php @@ -0,0 +1,80 @@ + PDO::ERRMODE_EXCEPTION]); + $row = $pdo->prepare('SELECT * FROM users WHERE username=? LIMIT 1'); + $row->execute([$u]); + $user = $row->fetch(PDO::FETCH_ASSOC); + if ($user && password_verify($p, $user['password_hash'])) { + $token = bin2hex(random_bytes(32)); + $_SESSION['jarvis_token'] = $token; + $_SESSION['jarvis_user_id'] = $user['id']; + $_SESSION['jarvis_name'] = $user['display_name']; + $pdo->prepare('UPDATE users SET last_seen=NOW() WHERE id=?')->execute([$user['id']]); + header('Location: /bridge.php'); + exit; + } + $error = 'ACCESS DENIED'; + } else { $error = 'ENTER CREDENTIALS'; } +} +?> + + +JARVIS + + + + +
+
+
+
+
+
+
+

JARVIS

+

Just A Rather Very Intelligent System

+
+ + + +
+
+
+