frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Show HN: X11 desktop widget that shows location of your network peers on a map

https://github.com/h2337/connmap
134•h2337•8h ago•51 comments

Show HN: Conductor, a Mac app that lets you run a bunch of Claude Codes at once

https://conductor.build/
174•Charlieholtz•3d ago•78 comments

Show HN: NativeSwap – Low cost cross-chain swaps without wrappers or bridges

https://nativeswap.io
2•sourovaf•4h ago•0 comments

Show HN: ggc – A terminal-based Git CLI written in Go

https://github.com/bmf-san/ggc
62•bmf-san•4d ago•45 comments

Show HN: A free hostel in the heart of Switzerland

https://stayinginbern.ch
3•chagaif•5h ago•0 comments

Show HN: A Hard SF Novel About Consciousness and Quantum Neural Interfaces

https://www.amazon.com/dp/B0FCDCZ24S
2•minkowsky•2h ago•0 comments

Show HN: Am-I-vibing, detect agentic coding environments

https://github.com/ascorbic/am-i-vibing
59•ascorbic•1d ago•31 comments

Show HN: MCP server for Blender that builds 3D scenes via natural language

https://blender-mcp-psi.vercel.app/
148•prono•1d ago•60 comments

Show HN: Display Photos on a World Map

https://worldsnap.surge.sh/
33•stagas•4d ago•2 comments

Show HN: Viiew – TUI to View(your_data)

https://github.com/codingfisch/viiew
2•codingfisch•12h ago•0 comments

Show HN: Sifaka – Simple AI text improvement through research-backed critique

https://github.com/sifaka-ai/sifaka
7•evanvolgas•12h ago•0 comments

Show HN: I built library management app for those who outgrew spreadsheets

https://www.librari.io/
90•hmkoyan•2d ago•52 comments

Show HN: Molab, a cloud-hosted Marimo notebook workspace

https://molab.marimo.io/notebooks
121•akshayka•2d ago•21 comments

Show HN: Daily AI Times

https://siddanthemani.github.io/daily-ai-times/
2•SiddanthEmani•13h ago•1 comments

Show HN: OrioleDB Beta12 Features and Benchmarks

https://www.orioledb.com/blog/orioledb-beta12-benchmarks
55•akorotkov•5d ago•15 comments

Show HN: Weekly podcast about longevity studies from PubMed using automation

https://longevity.ternovy.com/
3•ternovy•14h ago•0 comments

Show HN: Context42 – capture your coding style from across your projects

https://github.com/zenbase-ai/context42
8•knrz•1d ago•4 comments

Show HN: Easyfaq.io – Free SEO-Optimized FAQ Page Generator (LLM-Friendly)

4•branoco•14h ago•1 comments

Show HN: Improving search ranking with chess Elo scores

https://www.zeroentropy.dev/blog/improving-rag-with-elo-scores
190•ghita_•4d ago•65 comments

Show HN: The missing link of a bookstore's tech stack

https://bookhead.net/
3•greenie_beans•14h ago•0 comments

Show HN: Posthuman Framework for AI Consciousness Thresholds and VR Emancipation

https://kanarya.group/aposthumanframework/
3•rudyon•15h ago•2 comments

Show HN: I made a CLI tool to change the Neovim color scheme faster

https://github.com/atasoya/vcc
3•ata11ata•16h ago•0 comments

Show HN: Use local LLMs to organize your files

https://github.com/hyperfield/ai-file-sorter
5•hyperfield•16h ago•0 comments

Show HN: Chat based AI form builder and calculator

https://minform.io
3•eashish93•18h ago•2 comments

Show HN: Shoggoth Mini – A soft tentacle robot powered by GPT-4o and RL

https://www.matthieulc.com/posts/shoggoth-mini
596•cataPhil•5d ago•107 comments

Show HN: OctoMailer – universal Node.js lib for multiple email service providers

https://github.com/aaurelions/octomailer
2•aaurelions•19h ago•0 comments

Show HN: Homepagr, Bookmarks for Work

https://www.homepagr.com/
2•memset•20h ago•0 comments

Show HN: Simulating autonomous drone formations

https://github.com/sushrut141/ketu
22•wanderinglight•5d ago•8 comments

Show HN: We made our own inference engine for Apple Silicon

https://github.com/trymirai/uzu
182•darkolorin•5d ago•46 comments

Show HN: Beyond Z²+C, Plot Any Fractal

https://www.juliascope.com/
101•akunzler•5d ago•26 comments
Open in hackernews

Show HN: X11 desktop widget that shows location of your network peers on a map

https://github.com/h2337/connmap
134•h2337•8h ago

Comments

wslh•8h ago
No basically secure:

char mapFilename[256]; strcat(strcpy(mapFilename, getenv("HOME")), RESOURCES); strcat(mapFilename, mapName);

h2337•8h ago
What's insecure? Can you explain what's the vulnerability here and how and by whom can it be exploited?
floating-io•8h ago
Assuming that code is actually present in your app, env vars can hold more than 255 characters. Easy buffer overflow to trigger. Use length-bounded copies and concats...

That's just off the top of my head; I've not written in C in a while.

h2337•8h ago
Why would you want to trigger a buffer overflow in user application if you can already control HOME envvar?
floating-io•7h ago
Yeah, that is not a helpful attitude to take when it comes to this sort of thing. If nothing else, a super-long home path can crash your app and leave your user scratching their head. In other words, this is a bug (as is the fact that paths are not necessarily limited to 255 characters in the first place; see the PATH_MAX constant, I think it is?).

As to what could be accomplished with an overflow? I don't know; I'm not in security, and I don't sit around thinking of possible uses for various bugs when it comes to compromising systems.

Perhaps the most important thing to realize, though, is that you're distributing software publicly. Your security situation may not be the same as your user's security situation. Assumptions should not be made.

Something to keep in mind.

h2337•7h ago
Thanks for the discussion. Fix is already committed.
floating-io•7h ago
No problem. =)
db48x•4h ago
As long as you’re fixing that bug, you should do it right. If the return value from snprintf if more than 256 but less than a few GB then you should malloc a buffer big enough to hold the string and then call snprintf again with the new buffer. Only if that or malloc fails would you print an error. (It’s really a shame that the C standard library requires so many extra steps to do things correctly; this ought to be way easier.)
sedatk•8h ago
Basically, any path longer than 256 characters for `mapFilename` would cause a buffer overrun.

An unprivileged app could run your app (say, with more privileges), with a very long `HOME` environment path, causing a buffer overflow, and potentially exploit it to use your app's privileges to do more stuff than it was supposed to.

Basically, you should never use strcpy and strcat and but use the secure alternatives like strcpy_s and strcat_s, even when you know the source buffer would never exceed the destination size.

h2337•8h ago
> (say, with more privileges)

Isn't it a moot point if unprivileged app can already run anything with more privileges? In normal operation, connmap requires no special privileges.

sedatk•7h ago
Sure, but since there's no enforced standard for how privileges are configured on a system, there's always the possibility that your app to be the only escape ticket.

You can dismiss that possibility of course. But, as a general habit, it's best to use secure alternatives instead of mulling over probabilities every other line.

As a positive side-effect, the change would make your app not crash on systems with long HOME env paths.:)

DonHopkins•6h ago
Using strcat to a fixed size buffer is like using a gun to kill flies in a crowded flophouse while on crystal meth.
h2337•7h ago
Thanks for noticing! Fix pushed.
josephcsible•7h ago
While that's indeed a bug, for it to be a security vulnerability, wouldn't there also have to be a security boundary involved? Specifically, mapName is always either "w1000b.png" or "w1000.png", so the only way to trigger the buffer overflow would be through the HOME environment variable. But if an attacker can run commands as you with arbitrary environment variables, aren't you already pwned? What would anyone gain by running your program and exploiting it to do something, rather than just doing the thing directly? https://devblogs.microsoft.com/oldnewthing/20060508-22/?p=31...
im3w1l•6h ago
While exploitation is unlikely I think such things are still best avoided because multiple such things can sometimes be chained together.
ben0x539•8h ago
That's a really neat idea, damn.
rootbear•7h ago
Forgive my ignorance, but I'm not sure what this is showing me. I'm running it on my home linux system, which is connected to the Internet via Verizon FIOS. The map shows three red dots, none of which are near me.
h2337•7h ago
Those 3 dots are your peers, the other end of the TCP connection :)

So you basically have some apps running in the background (or foreground) that are making those connections.

rootbear•7h ago
Okay, got it, thanks. I suppose it could also be the FIOS router itself making those connections, or any of the other systems on my local network.
h2337•7h ago
No, for normal network configurations they wouldn't show. It's most likely your system connmap is running on making those connections.
esseph•5h ago
You might be surprised how much traffic every device makes.
jdwithit•3h ago
It's only showing connections directly initiated by your computer. Not anything "upstream" of you like the FIOS router. It would also show any connections TO your computer, but being behind NAT on a normal home network, that would likely be nothing unless you've intentionally punched holes.
positron26•7h ago
Maybe they were expecting first hops like from traceroute. Maybe traceroute is an interesting way to continue developing.
afroturf•2h ago
I'm colorblind and had to change the dots color. Might be a nice config option.
GranPC•7h ago
Pretty cool! Reminds me of the game Uplink.
apollo-zero•6h ago
Uplink! I loved that game. I should find it again.
itomato•7h ago
This seems like it belonged on freshmeat ca. Y2K.
djabatt•3h ago
must have at least once
MarcelOlsz•2h ago
What's that? Webarchive/google don't return much of anything.
28304283409234•2h ago
http://freshmeat.net was a directory of open source software back in the 90's and noughts. It was one of the main ways to discover software.

But what is X11? Is that like Wayland? ;-)

teddyh•1h ago
A modern equivalent is <https://freshcode.club/>
ducktective•48m ago
For this application, current best practice is using Electron stack, or better, cloning VSCode and relying on GeoLeoMaximusDYP v3.2 LLM for geo-location.
lxgr•6h ago
Neat! This runs fully offline (i.e. without calls to a GeoIP database), right?
h2337•6h ago
Correct! GeoIP database is local.
lxgr•6h ago
Nice! Where is it from, and do you know if it incorporates geofeed [1] data for networks that publish it?

[1] https://ipregistry.co/blog/geofeeds

serbuvlad•6h ago
From what I was able to tell looking at the code, yes.

The database is embedded in the program. Specifically, it is this file:

https://github.com/h2337/connmap/blob/master/connmap/resourc...

Presumably generated by the author with this Python script

https://github.com/h2337/connmap/blob/master/tools/get-ip-da...

lxgr•6h ago
Ah, cool, this should incorporate location data at least as good as what the networks self-report! (I suspect that these databases, on top of ingesting all geofeed data, do something similar to Wi-Fi positioning, i.e. correlate the IP address of various GPS-enabled devices with their physical location to try and deduce undocumented/non-public allocation patterns.)
DonHopkins•6h ago
Of course it works fully offline, since then you don't have any network peers to draw on the map.
lxgr•6h ago
Localhost has to be somewhere too :)
freeone3000•6h ago
make sure interNIC is your first hop! LogDeleter is not optional <3
hamburglar•5h ago
This is some old school style bare bones C. popen with a big old pipe chain is pretty quick n dirty. I’d have gone digging around in proc for the active connections. Cool stuff though. I like that it’s so straightforward to read.
quotemstr•1h ago
> This is some old school style bare bones C.

Which has now become some kind of meta-ironic fashion statement. It's 2025's going to the coffee shop with a typewriter.

generalizations•4h ago
Of course this was made by an i3wm user. Nicely done!
rxwxx•4h ago
In the fonction IpRangeVector_resize() in ip.c, you have a bug, that's not how realloc are supposed to be used.
anthk•3h ago
OpenBSD devs did the same with either XPlanet or Xearth, can't rememeber. Now they use a GeoJson format.

Then you can import it under geo/viking port:

     doas pkg_add viking
Open Viking and just load the geo.json file from

        /usr/local/share/markers/OpenBSD.geojson
raldi•3h ago
What's a network peer?
atworkc•3h ago
Servers / Computers your device is currently communicating with, e.g. github servers when you load the link (well probably a cdn edge one)
jdwithit•3h ago
Yeah from an extremely quick read of the code, I agree with atworkc. It's showing any IP address you have an established network connection to.

  void refreshConnections() {
    ssOutput =
        popen("ss -atun4 | grep ESTAB | awk '{print $6}' | cut -f1 -d\":\"", "r");

    if (ssOutput == NULL) {
      printf("Failed to run ss command\n");
      exit(1);
    }
  }
edit: ssOutput is a global variable which is read elsewhere.
mhd•1h ago
Someone should make a windowmaker dockapp out of this.
bit1993•1h ago
Dam! Great tool. Very clean. Thank you.
kleiba•1h ago
One step closer to those futuristic screen interfaces you see in Hollywood blockbusters!