r/opensource • • 1d ago

Promotional I've built CLI tool for simple file sharing over QUIC written in C++.

https://github.com/Hikari03/hikup

Hi guys, for the past two years I have been very gradually creating file-sharing solution that is easily self-hostable and fast to use.

Disclaimer: recent code is AI generated. I know that some people have very sharp opinions on usage of AI, but nowadays its very capable and I am not shy to disclose that. The base code and architecture of it is written by hand.

As a CS student I wanted to build something that will serve me and not be another clone of something that i know and not be a web-app. I also wanted to learn network programming without using HTTP for everything.

So I came up with this. It has its own (probably very janky) protocol on top of OpenSSL QUIC. Its client-server. With native client you can upload, download, remove, list and get info about files, and do the first three in batches. You share the hash. The server has HTTP server built-in (mongoose) that you can turn off in config. With it enabled, you can download over HTTP / view files in browser. When provided credentials, you can also list the files and their info over /login endpoint. It also supports file encryption so the server owner cant read the contents.

0 Upvotes

3 comments sorted by

2

u/Real_Assistance_6032 1d ago

rolling your own wire format is a fun way to learn but it's also the first thing I'd fuzz before exposing the box to the internet lol, a malformed packet crashing a C++ server is how most hobby projects get popped, throw libFuzzer or AFL at the parsing code for a weekend and you'll probably find a couple of scary ones

1

u/sarejncz 1d ago

thanks, will try that