Ejemplo n.º 1
0
<?php

require_once 'includes/config.php';
require_once 'class/payload.class.php';
if (isset($_POST['create'])) {
    $name = $_POST['name'];
    $code_url = $_POST['code_url'];
    $code_inject = $_POST['code_inject'];
    $payload = new Payload();
    $payload->setName($name);
    $payload->setUrl($code_url);
    $payload->setCode($code_inject);
    $payload->insertpayload();
    echo $payload->status;
}
?>
<div class="panel">
    <div class="ui pointing menu">
      <a href="index.php?action=panel" class="item">Logs</a>
      <a href="index.php?action=payload" class="active item">Custom payload</a>
      <a href="logout.php" class="item">Logout</a>
      <div class="right menu">
        <div class="item">
          <div class="ui transparent icon input">
            <input type="text" placeholder="Search...">
            <i class="fa fa-search"></i>
          </div>
        </div>
        <a class="item">Welcome <?php 
echo $_SESSION['username'];
?>