News for hackers. Stuff that matters.
Re:Transfer.sh – Easy file sharing from the command line by tptacek on Monday July 05, 2021 @02:58PM (#27740879)
This is exactly the use case for Magic Wormhole, which is what the cool kids use to transfer files:

https://github.com/magic-wormhole/magic-wormhole

Magic Wormhole uses an end-to-end PAKE to create an encrypted transport between two points in the Internet, using a rendezvous server.

It doesn't store files, which is almost never what you want; it's not a way to send a file and have 10 or 100 people download it. But it's probably the best way to get a file through a bunch of arbitrary network controls, NATs, &c to a desired destination. There's a Go implementation as well:

https://github.com/psanford/wormhole-william

... which is what I use most of the time. If you haven't played with it, I highly recommend it.

Re:Transfer.sh – Easy file sharing from the command line by mr_mitm on Tuesday July 06, 2021 @02:31AM (#27744866)
I wish magic wormhole used federated rendezvous servers, was usable from within a locked down corporate network, had a .NET implementation with a pretty GUI so that even my mom could use it, came with all major OS by default and was as accepted as e-mail so that I can actually share files with everyone, not just my nerdy friends. Is that even remotely a realistic thought?
Re:Transfer.sh – Easy file sharing from the command line by AgentME on Tuesday July 06, 2021 @04:25AM (#27745517)
I feel like a web clone of it hits some of your goals: https://webwormhole.io/
Re:Transfer.sh – Easy file sharing from the command line by mr_mitm on Tuesday July 06, 2021 @06:37AM (#27746488)
It does, except it removes a giant advantage of magic wormhole: True end to end encryption requiring only TOFU. The web version downloads JavaScript every time and unless a specific version is somehow pinned by default, you are in principle vulnerable to MitM attacks.
Re:Transfer.sh – Easy file sharing from the command line by alephu5 on Tuesday July 06, 2021 @08:02AM (#27747258)
Host your own version and hash all the JavaScript sources https://www.srihash.org/
Re:Transfer.sh – Easy file sharing from the command line by JackGreyhat on Monday July 05, 2021 @04:18PM (#27741471)
This and croc. Link: https://github.com/schollz/croc
Re:Transfer.sh – Easy file sharing from the command line by aborsy on Monday July 05, 2021 @05:18PM (#27741905)
Considering that a small deviation from a cryptographic protocol could fully turn cipher text to plaintext in a revered tool frequently recommended in HN:

https://redrocket.club/posts/croc/

I would hesitate a bit before rushing to use cool kids’ software (until it’s sufficiently proven).

Re:Transfer.sh – Easy file sharing from the command line by tptacek on Monday July 05, 2021 @06:11PM (#27742282)
I don't know anything about croc, I haven't looked carefully at it, and don't recommend it (or have any opinion on it). Lots of smart people have looked at Magic Wormhole, which is one of the things that makes it neat.
Re:Transfer.sh – Easy file sharing from the command line by peakaboo on Tuesday July 06, 2021 @01:37AM (#27744553)
This is a great way to make sure there are no alternatives to Magic Wormhole. If this attitude was common in web browsers, we would only have one software of its kind in every category. No choice for users whatsoever.
Re:Transfer.sh – Easy file sharing from the command line by tptacek on Tuesday July 06, 2021 @01:48AM (#27744605)
What's a good way to make sure of it? Not having any opinion of it, because I haven't looked at it?

There are a lot of alternatives to Magic Wormhole. Unfortunately, most of them are pretty sketchy. One thing I can say about Magic Wormhole: it's not sketchy.

Re:Transfer.sh – Easy file sharing from the command line by teawrecks on Tuesday July 06, 2021 @11:32AM (#27749903)
This sounds like a slippery slope. No one is saying not to try anything else, they're saying to make sure and use stuff that is more likely to be safe. In the case of web browsers, we do only use like 4 or 5 out of thousands.
Re:Transfer.sh – Easy file sharing from the command line by prurigro on Tuesday July 06, 2021 @01:16AM (#27744477)
Since not everyone will click the link and read to the end of the post, it seemed worth pointing out that the vulnerability being commented on here was fixed: https://schollz.com/blog/croc9/
Re:Transfer.sh – Easy file sharing from the command line by igorhvr on Monday July 05, 2021 @04:32PM (#27741562)
Ha - so cool. I love that it can be easily used to send a stream (the only thing I missed in magic-wormhole). Basically,

   ls -lah | croc send  
works.

Thanks for this link!

Re:Transfer.sh – Easy file sharing from the command line by zikduruqe on Monday July 05, 2021 @05:58PM (#27742198)
Re:Transfer.sh – Easy file sharing from the command line by cemsbr on Monday July 05, 2021 @05:41PM (#27742082)
No, it's not. Transfer.sh does not require anything to be installed in both sender and receiver ends. Only the browser is enough.
Re:Transfer.sh – Easy file sharing from the command line by iampims on Monday July 05, 2021 @05:49PM (#27742144)
Re:Transfer.sh – Easy file sharing from the command line by neolog on Monday July 05, 2021 @05:51PM (#27742165)
That's not actually related to Magic Wormhole, it's "inspired by" it.
Re:Transfer.sh – Easy file sharing from the command line by tptacek on Monday July 05, 2021 @06:11PM (#27742284)
It's a frustrating naming decision, to be sure.
Re:Transfer.sh – Easy file sharing from the command line by tptacek on Monday July 05, 2021 @06:10PM (#27742276)
Then it's not secure.
Re:Transfer.sh – Easy file sharing from the command line by BerSerKer on Monday July 05, 2021 @06:27PM (#27742395)
You seem to be missing the point. If I wanted to send a funny webm in a room on Discord or IRC for example, if I didn't want to upload it directly to Discord that is, I could use this with ShareX to upload it and get a link that's easy to share. It's not supposed to be secure. It has its place alongside Magic Wormhole just fine.
Re:Transfer.sh – Easy file sharing from the command line by tptacek on Monday July 05, 2021 @06:33PM (#27742431)
If you want to send a funny webm, use whatever you'd like. The comment to which I responded to said "no, this isn't the same use case, because Magic Wormhole makes you install something". If they'd said "this isn't the same, it's supposed to be OK for this to be grievously insecure", I'd have shrugged and moved on.
Re:Transfer.sh – Easy file sharing from the command line by 1vuio0pswjnm7 on Tuesday July 06, 2021 @04:55AM (#27745725)
What stops someone from using up all the channel IDs on the rendezvous server.

Also why no attempt at NAT traversal; instead relaying traffic through a transit server.

It's almost as if the project's purpose is not so much to create superior file transfer but more just to showcase a use of SPAKE2.

Re:Transfer.sh – Easy file sharing from the command line by jwilk on Tuesday July 06, 2021 @10:15AM (#27748884)
> almost as if the project's purpose is not so much to create superior file transfer but more just to showcase a use of SPAKE2.

That's my feeling too. See my rant: https://news.ycombinator.com/item?id=24519895

Re:Transfer.sh – Easy file sharing from the command line by tptacek on Tuesday July 06, 2021 @11:00AM (#27749514)
This rant is pretty silly. Nick Lamb's took the time to refute it on that thread; you should acknowledge that before continuing to cite your thread as if nobody had corrected you.
Re:Transfer.sh – Easy file sharing from the command line by jwilk on Tuesday July 06, 2021 @12:07PM (#27750373)
Who's Nick Lamb?

Anyway, the thead is very short, so if there were any corrections there, people can read them and make their own mind.

Re:Transfer.sh – Easy file sharing from the command line by tptacek on Tuesday July 06, 2021 @01:42PM (#27751830)
Sure, people should just read that whole thread. It doesn't sound like Magic Wormhole's authentication really clicked for you in the original rant.
Re:Transfer.sh – Easy file sharing from the command line by diplodocusaur on Tuesday July 06, 2021 @06:08AM (#27746254)
I think this is your question, if not, my apologies https://youtu.be/oFrTqQw0_3c?t=1594
Re:Transfer.sh – Easy file sharing from the command line by amelius on Tuesday July 06, 2021 @03:02AM (#27745027)
But does it support a time difference between sending and receiving?

This is the main feature I'm curious about.

Re:Transfer.sh – Easy file sharing from the command line by odyslam on Tuesday July 06, 2021 @05:09AM (#27745817)
Thanks for sharing wormhole!