mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +08:00
posts: 添加py-uploadserver文章及相关图片资源
添加了一篇关于使用Python创建匿名文件上传服务器的教程文章,并包含了所需的图片资源。文章详细介绍了安装步骤、使用方法以及如何将服务暴露到公网的两种方案。
This commit is contained in:
BIN
src/content/assets/images/83e64b93c9f130785f89ccbcd60a7844.png
Normal file
BIN
src/content/assets/images/83e64b93c9f130785f89ccbcd60a7844.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
BIN
src/content/assets/images/py-uploadserver-1.png
Normal file
BIN
src/content/assets/images/py-uploadserver-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
src/content/assets/images/py-uploadserver-2.png
Normal file
BIN
src/content/assets/images/py-uploadserver-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
src/content/assets/images/py-uploadserver.png
Normal file
BIN
src/content/assets/images/py-uploadserver.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
50
src/content/posts/py-uploadserver.md
Normal file
50
src/content/posts/py-uploadserver.md
Normal 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
|
||||||
|
```
|
||||||
|
|
||||||
|
接下来,你就可以在内网环境使用这个 **文件上载器** 了
|
||||||
|

|
||||||
|
|
||||||
|
再然后,我们就可以将其打到公网了
|
||||||
|
|
||||||
|
# 打到公网
|
||||||
|
|
||||||
|
### 方案一:使用EdgeOne进行IPv6回源
|
||||||
|
|
||||||
|
将你的IPv6做 **DDNS** ,然后使用EdgeOne回源
|
||||||
|

|
||||||
|
|
||||||
|
### 方案二:STUN(仅NAT1可用)
|
||||||
|
|
||||||
|
当你的家庭网络为 **NAT1** ,则可以使用类似这样的软件将你的 **内网端口** 直接打到 **公网端口** (貌似该程序对TCP分片敏感,会导致RST) [MikeWang000000/Natter: Expose your TCP/UDP port behind full-cone NAT to the Internet.](https://github.com/MikeWang000000/Natter)
|
||||||
|

|
||||||
Reference in New Issue
Block a user