mikubill / transfer Goto Github PK
View Code? Open in Web Editor NEW🍭 集合多个API的大文件传输工具.
License: MIT License
🍭 集合多个API的大文件传输工具.
License: MIT License
Local: /home/Slmie/Havoc-OS/out/target/product/taimen/Havoc-OS-v4.3-20210330-taimen-Unofficial.zip
fetching upload tickets...getSendConfig(single mode) returns error: no csrf-token found
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7b2e9c]
goroutine 1 [running]:
transfer/apis/public/wetransfer.weTransfer.DoUpload(0x0, 0x0, 0xc000317180, 0x0, 0x1e, 0x0, 0x4, 0x0, 0x0, 0x0, ...)
/home/runner/work/transfer/transfer/apis/public/wetransfer/upload.go:86 +0x19c
transfer/apis.upload(0x7ffe0d0f6454, 0x4f, 0x2d0171f7, 0x91e880, 0xc0001966e0, 0x1, 0x1, 0x63, 0x0)
/home/runner/work/transfer/transfer/apis/upload.go:120 +0x317
transfer/apis.Upload(0xc00018b390, 0x1, 0x1, 0x91e880, 0xc0001966e0)
/home/runner/work/transfer/transfer/apis/upload.go:67 +0x347
transfer/cmd.runner.func1(0xc000212f00, 0xc00018b380, 0x1, 0x1)
/home/runner/work/transfer/transfer/cmd/controller.go:81 +0x17
getSendConfig(single mode) returns error: post https://www.wenshushu.cn/ap/task/addsend returns error: %!s()
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x78c4c8]
goroutine 1 [running]:
transfer/apis/public/wenshushu.(*wssTransfer).initUpload(0xc00006f040, 0xdc325800, 0x1)
/github/workspace/apis/public/wenshushu/upload.go:45 +0x138
transfer/apis/public/wenshushu.(*wssTransfer).PreUpload(0xc00006f040, 0x7ffd12b3d803, 0x43, 0xdc325800, 0x0, 0x0)
/github/workspace/apis/public/wenshushu/upload.go:50 +0x59
transfer/apis.upload(0x7ffd12b3d803, 0x43, 0xdc325800, 0x912b60, 0xc00006f040, 0x1, 0x1, 0x69, 0x0)
/github/workspace/apis/upload.go:94 +0x198
transfer/apis.Upload(0xc000053680, 0x1, 0x1, 0x912b60, 0xc00006f040)
/github/workspace/apis/upload.go:67 +0x332
transfer/cmd.runner.func1(0xc00008eb00, 0xc000053670, 0x1, 0x1)
/github/workspace/cmd/controller.go:64 +0x90
github.com/spf13/cobra.(*Command).execute(0xc00008eb00, 0xc000053630, 0x1, 0x1, 0xc00008eb00, 0xc000053630)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0xbc5900, 0x1, 0x1, 0xbc60e0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:943 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:883
transfer/cmd.Execute()
/github/workspace/cmd/root.go:83 +0x53
main.main()
/github/workspace/main.go:6 +0x20
(跟 CowTransfer, WeTransfer 都挺像的,不知道这其中有什么渊源……)
Local: /home/xxx/xxx Error occurred during upload xxx: start upload failed: request https://www.wenshushu.cn/ap/task/addsend error: on resp.Parse, retry exhausted. Last Resp is {"code":1117,"message":"2069295409","data":null}
我有一个关于网盘上传/下载方面的需要,想麻烦大佬帮忙。麻烦大佬给个电子邮箱,我把详细的需求发给大佬看看,谢谢!
transfer --verbose "https://wetransfer.com/downloads/xxxx/xxx"
fetching ticket..ok
failed DownloaderConfig with error: link is invaild or expired, onfile: xxxx
文件刚刚上传完就测试了,测试了windows和linux,都报了同一个错误。
请问上传时使用了 --encrypt --encrypt-key=xxx 参数
下载时如何指定解密key?
试了下 --decrypt --decrypt-key=xxx 下载到的还是加密后的文件
使用一键脚本:
curl -sL https://git.io/file-transfer | sh
此脚本仍旧是安装0.4.7,而不是最新的pre-relerase。因此部署的github-actions无法正确上传至奶牛快传并能下载。能否释放出releases版本,或更新一下一键脚本?
是否我对于这个功能理解有误?我设置了remember-me字段,但是还是以临时文件上传的。
谢谢!
如题,不登录的话,下载含有多个分享文件的分享链接时,只能下载10个文件。
我有个环境是在docker自动跑的,由于每次上传后无法把上传的key保存下来,下次容器启动就无法下载上次生成的文件。
所以想问有没有指定key上传的功能,这样容器第一次运行生成的文件上传以后,其他容器启动就用这个key去检查是否可以下载,如果可以下载就不用重复生成了,如果不可以下载就是第一次运行的逻辑要生成以后上传,避免每个容器生成的文件不一样。
fetching UserToken and FolderToken......Error occurred during initialization:
request https://api.gofile.io/getServer returns error: parse body returns error: invalid character '<' looking for beginning of value
请问如何 上传 文件夹到 notion 谢谢
直接打开网址提示This file is not public,使用./transfer 下载报错fetching ticket...Download https://gofile.io/?c=svK3Yz Error: download failed on https://gofile.io/?c=svK3Yz, returns request https://api.gofile.io/getServer error: parse body returns error: invalid character '<' looking for beginning of,版本为0.4.12
报错:
Transfer has successfully downloaded.
init Upload Error: Post "https://cowtransfer.com/transfer/preparesend": x509: certificate is valid for jy.ahzcxx.cn, not cowtransfer.com
Warning: init Upload Error: Post "https://cowtransfer.com/transfer/preparesend": x509: certificate is valid for jy.ahzcxx.cn, not cowtransfer.com
ransfer/main.go:6 +0x25
fetching ticket................................panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x7b211b]
goroutine 1 [running]:
transfer/apis/public/wetransfer.weTransfer.download(0x0, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x4, 0x0, 0x0, 0x0, ...)
/home/runner/work/transfer/transfer/apis/public/wetransfer/download.go:50 +0xffb
transfer/apis/public/wetransfer.weTransfer.DoDownload(0x0, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x4, 0x0, 0x0, 0x0, ...)
/home/runner/work/transfer/transfer/apis/public/wetransfer/download.go:31 +0x9c
transfer/apis.Download(0x7ffc52a6f639, 0x1a, 0x91e9e0, 0xc0000c66e0)
/home/runner/work/transfer/transfer/apis/download.go:18 +0xa2
transfer/cmd.handleRootTransfer(0xc0000c0050, 0x3, 0x3)
/home/runner/work/transfer/transfer/cmd/root.go:93 +0x132
transfer/cmd.Execute()
/home/runner/work/transfer/transfer/cmd/root.go:77 +0xf6
main.main()
/home/runner/work/transfer/transfer/main.go:6 +0x25
fetching ticket................................panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x7b211b]
Mac 可以使用不
:/data/data/com.termux/files/home # ./transfer Download Link: https://we.tl/t-EUv9Es6App
fetching ticket..panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1c pc=0x325430]
goroutine 1 [running]:
transfer/apis/public/wetransfer.weTransfer.download(0x0, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x4, 0x0, 0x0, 0x0, ...)
/home/runner/work/transfer/transfer/apis/public/wetransfer/download.go:48 +0xc28
transfer/apis/public/wetransfer.weTransfer.DoDownload(0x0, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x4, 0x0, 0x0, 0x0, ...)
/home/runner/work/transfer/transfer/apis/public/wetransfer/download.go:29 +0x3c
transfer/apis.Download(0xbe9f87a8, 0x1a, 0x44ed08, 0x1894900)
/home/runner/work/transfer/transfer/apis/download.go:18 +0x68
transfer/cmd.handleRootTransfer(0x189c108, 0x3, 0x3)
/home/runner/work/transfer/transfer/cmd/root.go:93 +0xd0
transfer/cmd.Execute()
/home/runner/work/transfer/transfer/cmd/root.go:77 +0xd8
main.main()
/home/runner/work/transfer/transfer/main.go:6 +0x14
验证网络正常的。
2|:/data/data/com.termux/files/home # ping we.tl
PING we.tl (13.226.124.51) 56(84) bytes of data.
64 bytes from server-13-226-124-51.hkg62.r.cloudfront.net (13.226.124.51): icmp_seq=1 ttl=233 time=38.1 ms
64 bytes from server-13-226-124-51.hkg62.r.cloudfront.net (13.226.124.51): icmp_seq=2 ttl=233 time=38.4 ms
^C
--- we.tl ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 38.166/38.331/38.496/0.165 ms
报错:
panic: runtime error: slice bounds out of range [1:0]
goroutine 1 [running]:
transfer/apis/public/gofile.goFile.download(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/runner/work/transfer/transfer/apis/public/gofile/download.go:34 +0xc6b
transfer/apis/public/gofile.goFile.DoDownload(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/runner/work/transfer/transfer/apis/public/gofile/download.go:25 +0xb4
transfer/apis.Download(0xc00001a360, 0x1a, 0xc7a7a0, 0xc00005b9a0)
/home/runner/work/transfer/transfer/apis/download.go:18 +0xab
transfer/cmd.handleRootTransfer(0xc000004490, 0x1, 0x1)
/home/runner/work/transfer/transfer/cmd/root.go:93 +0x134
transfer/cmd.Execute()
/home/runner/work/transfer/transfer/cmd/root.go:77 +0xf7
main.main()
/home/runner/work/transfer/transfer/main.go:6 +0x27
使用文叔叔 ./transfer https://ws28.cn/f/4ckxzx3eusn
sign Request returns error: post https://www.wenshushu.cn/ap/dl/sign returns error: json: cannot unmarshal string into Go struct field sendConfigResp.data of type wenshushu.sendConfigBlock, onfile: xxx.zip
报错
上传后可以到下载页面,点击下载则显示{"error":"Document not found"}
我试过./transfer --no-progres gof firmware-update.zip和./transfer gof --no-progres firmware-update.zip这样都不能隐藏进度条
在上传到奶牛快传时如果填入错误的 -a
和 -c
参数,正常情况下会报以下错误:
0 B / 173.89 MiB [________________________________________________________________] 0.00% ? p/s ?
Error occurred during upload ./*****.exe:
upload error: getUploadConfig error: Post "https://upload.qiniup.com/buckets/cftransfer/objects/***************==/uploads": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
但是偶尔会始终阻塞在这里:
0 B / 173.89 MiB [________________________________________________________________] 0.00% ? p/s ?
这时候是会一直在上传数据,并且超出了文件大小本身,进度也一直为 0。
这里提供一下调用命令,可以尝试调用多几次来触发这个 BUG:
./transfer cow -a "None" -c "None" ./******.exe
今晚这个 BUG 让我的服务器跑了 400+GB 的流量,要是没发现的话,服务器现在可能已经被停机了 o(╥﹏╥)o
希望看看这个是什么问题,感谢大佬!
transfer v0.4 上传多个文件到奶牛快传出现错误:
$ ./transfer cow -s ./acrh17/
Local: /home/vsts/work/1/s/acrh17/config.seed
7.22 KiB / 7.22 KiB [------------------------------------------------] 100.00% 4.97 KiB p/s 2s
Local: /home/vsts/work/1/s/acrh17/openwrt-ipq40xx-asus_rt-acrh17-squashfs-sysupgrade.bin
27.49 MiB / 27.49 MiB [------------------------------------------] 100.00% 414.19 KiB p/s 1m8s
Local: /home/vsts/work/1/s/acrh17/openwrt-ipq40xx-asus_rt-acrh17.manifest
10.01 KiB / 10.01 KiB [---------------------------------------------] 100.00% 10.32 KiB p/s 1s
Local: /home/vsts/work/1/s/acrh17/sha256sums
305 B / 305 B [---------------------------------------------------------] 100.00% 316 B p/s 1s
Finish Upload Error: finish upload failed: complete is not true
然后使用 cowtransfer-uploader v0.4.3 上传则没有问题,多次测试结果相同,应该可以排除网络问题。
以下为两个工具的详细日志:
目前是使用 bash 脚本安装的,有考虑支持 go install 安装吗,
上传图片提示
failed: invalid character '<' looking for beginning of value
我自己看源码直接用这个接口也不行
对不上代码了
上傳到 cow 看起來沒有問題
2021-10-13 09:30:39 [changch@hqdc034 Downloads]$ transfer cow LICENSE
Local: /home/changch/Downloads/LICENSE
1.07 KiB / 1.07 KiB [-------------------------------------------------------------------------------------] 100.00% 969 B p/s 1.3s
Download Link: https://cowtransfer.com/s/c626121bac0348
Download Code: slplqj
2021-10-13 09:30:49 [changch@hqdc034 Downloads]$
上傳到 gof 也是看起來沒有問題
2021-10-13 09:30:49 [changch@hqdc034 Downloads]$ transfer gof LICENSE
fetching UserToken and FolderToken....done
Selecting server..store3
Local: /home/changch/Downloads/LICENSE
1.07 KiB / 1.07 KiB [-------------------------------------------------------------------------------------] 100.00% 677 B p/s 1.8s
Download Link: https://gofile.io/?c=2HQiPv
User Token: h06AYXjWUvqYOkwDk1EgXHkVPqKccnHJ
2021-10-13 09:33:03 [changch@hqdc034 Downloads]$
但是開啟URL 會出現 "This file is not public."
另外 whc 無法正常上傳
奶牛网盘上传完成后可以打开下载页面但是点下载就报错了
浏览器显示:
{"error":"Document not found"}
there is no speed limit in current version, if i use transfer in the backend, it may slow down else progress.
So maybe it will be better if transfer can support speed limit.
建议[transfer]增加 github acitons上传文件到OneDrive网盘的功能
failed DownloaderConfig with error: link is invaild or expired, onfile: deepspecch3.tar
但是 浏览器下载就正常的。
譬如说https://we.tl/t-DhL3mSBHNo
如下,每次都返回这个错误链接
root@new-d7644c4b4-vlm64:/# cd ./root/
root@new-d7644c4b4-vlm64:~# ./transfer tmp ./ffsend
Local: /root/ffsend
10.25 MiB / 10.25 MiB [-----------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 1.51 MiB p/s 7s
Download Link: https://tmp.link/f/
root@new-d7644c4b4-vlm64:~#
网站上原来的remember-me改成了remember-mev2,可能是这个原因导致的
出现下面提示:
upload 文件名 failed: start upload failed: File size exceed, no payment found
示例链接:(该次上传是5月29日晚从荷兰VPS,系统为windows server 2008,主机ip为
95.179.149.62)
C:\Users\Administrator\Downloads>.\transfer cow -p 48 vultr.com.1000MB.bin
Local: C:\Users\Administrator\Downloads\vultr.com.1000MB.bin
1000.00 MiB / 1000.00 MiB [------------------------] 100.00% 6.58 MiB p/s 2m32s
Download Link: https://c-t.work/s/6fb8d170bd6d4d
Download Code: g9incx
网页访问连接点击下载文件后显示{"error":"Document not found"},使用本工具下载提示:
C:\Users\Administrator\Downloads>.\transfer https://c-t.work/s/6fb8d170bd6d4d
Remote: https://c-t.work/s/6fb8d170bd6d4d
fetching download metadata....ok
failed DownloaderConfig with error: link unavailable, 404 Not Found, onfile: vul
tr.com.1000MB.bin
再次执行同样的上传命令,所得链接是正常可以下载的。(https://c-t.work/s/a5f0f5c950a747)
该问题在过去一两个月中不同地区上传大文件(1-2G)时均会随机出现(1-2%概率),但似乎更多出现在每个shell中第一次使用本工具时。上传过程和返回链接均无异样,只有下载时才能发现。建议至少在上传之后增加链接验证的过程。
root@localhost:~# ./transfer wss transfer
Local: /root/transfer
getSendConfig(single mode) returns error: post https://www.wenshushu.cn/ap/task/addsend returns error: unexpected end of JSON input
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x78c4c8]
goroutine 1 [running]:
transfer/apis/public/wenshushu.(*wssTransfer).initUpload(0xc00011c9c0, 0x7ca000, 0x1)
/github/workspace/apis/public/wenshushu/upload.go:45 +0x138
transfer/apis/public/wenshushu.(*wssTransfer).PreUpload(0xc00011c9c0, 0x7ffc0ce2c63e, 0x8, 0x7ca000, 0x0, 0x0)
/github/workspace/apis/public/wenshushu/upload.go:50 +0x59
transfer/apis.upload(0x7ffc0ce2c63e, 0x8, 0x7ca000, 0x912b60, 0xc00011c9c0, 0x1, 0x1, 0x16, 0x0)
/github/workspace/apis/upload.go:94 +0x198
transfer/apis.Upload(0xc00010b4c0, 0x1, 0x1, 0x912b60, 0xc00011c9c0)
/github/workspace/apis/upload.go:67 +0x332
transfer/cmd.runner.func1(0xc00012ab00, 0xc00010b4b0, 0x1, 0x1)
/github/workspace/cmd/controller.go:64 +0x90
github.com/spf13/cobra.(*Command).execute(0xc00012ab00, 0xc00010b470, 0x1, 0x1, 0xc00012ab00, 0xc00010b470)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0xbc5900, 0x1, 0x1, 0xbc60e0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:943 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:883
transfer/cmd.Execute()
/github/workspace/cmd/root.go:83 +0x53
main.main()
/github/workspace/main.go:6 +0x20
尝试几次都不行,更换浏览器依旧存在
报错信息:
start upload failed: json: cannot unmarshal string into Go struct field prepareSendResp.error of type bool
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.