Settings

Theme

Show HN: I wrote a ~2KB executable file HTTP file downloader without Libc

github.com

9 points by DenisDolya a month ago · 6 comments

Reader

goosethe a month ago

https://gist.github.com/seanwevans/3e9ba17431d5464092d0fb839...

this compiles to 10kb on my machine with no golfing. it literally just supports grabbing whatever is at the url given (http 1.0)

Retr0id a month ago

I did a <4KB one that supports DNS+TLS (albeit insecurely) https://github.com/DavidBuchanan314/kurl/

  • DenisDolyaOP a month ago

    This is of course great, and very creative, but why not use an HTTP proxy if this TLS is still unprotected?

    Did I misunderstand something?

    • Retr0id a month ago

      Many servers support TLS only, so implementing the client side of TLS was a matter of compatibility, not security. If external dependencies are allowed then why not just use libcurl?

indigodaddy a month ago

Does this do anything curl can’t or are we just enthralled with the tininess?

  • DenisDolyaOP a month ago

    Actually hfile has nothing new, So the basic philosophy here is a small binary.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection