posts: 添加py-uploadserver文章及相关图片资源

添加了一篇关于使用Python创建匿名文件上传服务器的教程文章,并包含了所需的图片资源。文章详细介绍了安装步骤、使用方法以及如何将服务暴露到公网的两种方案。
This commit is contained in:
二叉树树
2025-12-11 09:45:01 +08:00
parent 5220d8e5be
commit 7905a0b37e
5 changed files with 50 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -0,0 +1,50 @@
---
title: 想要一个匿名文件上载器?一行命令装好!
published: 2025-12-11T09:08:55
description: 有时候我们可能出门在外想要带文件回家但是U盘插来插去并不优雅那么我们可以尝试在自家电脑启动一个匿名文件上载器然后将其暴露到公网
image: ../assets/images/83e64b93c9f130785f89ccbcd60a7844.png
tags:
- Python
draft: false
lang: ""
---
# 安装
确保你安装了 **Python**
安装 **uploadserver**
```bash
pip install --user uploadserver
```
接下来,创建并进入一个新文件夹,作为 **上传目录**
```bash
mkdir upload
cd upload
```
运行,并监听 **IPv4****8000端口**
```bash
python -m uploadserver 8000
```
又或者,监听 **IPv6****8000端口**
```bash
python -m uploadserver --bind :: 8000
```
接下来,你就可以在内网环境使用这个 **文件上载器**
![](../assets/images/py-uploadserver.png)
再然后,我们就可以将其打到公网了
# 打到公网
### 方案一使用EdgeOne进行IPv6回源
将你的IPv6做 **DDNS** 然后使用EdgeOne回源
![](../assets/images/py-uploadserver-1.png)
### 方案二STUN仅NAT1可用
当你的家庭网络为 **NAT1** ,则可以使用类似这样的软件将你的 **内网端口** 直接打到 **公网端口** 貌似该程序对TCP分片敏感会导致RST [MikeWang000000/Natter: Expose your TCP/UDP port behind full-cone NAT to the Internet.](https://github.com/MikeWang000000/Natter)
![](../assets/images/py-uploadserver-2.png)