https://github.com/tarunkoyalwar/tempupserver
A Simple Temporary HTTP upload server in python. useful in CTFs, Hackthebox and pwning
https://github.com/tarunkoyalwar/tempupserver
hacking python3 upload-file
Last synced: 9 months ago
JSON representation
A Simple Temporary HTTP upload server in python. useful in CTFs, Hackthebox and pwning
- Host: GitHub
- URL: https://github.com/tarunkoyalwar/tempupserver
- Owner: tarunKoyalwar
- Created: 2021-02-20T21:15:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-01T15:40:20.000Z (over 5 years ago)
- Last Synced: 2025-03-18T05:44:11.550Z (over 1 year ago)
- Topics: hacking, python3, upload-file
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TempUpload
A Upload Server For temporary use mostly helpful in ctfs etc.
## Features
- Works Fine on Both Windows and Linux.
- `localhost/list` => List all Files in Working Directory
- `localhost/upload` => Upload using Browser
- Only Uploading is implemented Directory listing is disabled
- ['.py,'.ipynb'] are blacklisted can be changed in code.
## Uploading Using CLI
### Linux
- Using Curl
```shell
curl -F filename=@LinEnum_report 10.10.14.23:8080
```
### Windows Powershell
- Uploading via powershell depends on powershell version, check powershell.txt for more commands
- I would Strongly recommend using curl.exe `https://curl.se/download.html`
```shell
$Uri = 'http://localhost:8080/'
$Form = @{
filename = Get-Item -Path 'c:\Pictures\jdoe.png'
}
$Result = Invoke-WebRequest -Uri $Uri -Method Post -Form $Form
```
### Usage
```shell
$ python upserver.py -h
usage: upserver.py [-h] [-p PORT] [-d DIRECTORY]
A Simple http server to upload for temporary use
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Port to use avoid using 80,443 for non root user
-d DIRECTORY, --directory DIRECTORY
Working Directory
```
## Built With
* [Python3]
### License