←back to thread

289 points zdw | 4 comments | | HN request time: 0s | source
Show context
MartijnBraam ◴[] No.42743835[source]
I came across the tweet about this "Evil" dongle and instantly recognized it as the exact same thing I worked on before... It's not evil, it's just annoying.

https://blog.brixit.nl/making-a-usb-ethernet-adapter-work-sr...

In my case I disabled the SPI flash module to have it not appear as a CD drive, the author of this post actually found some documentation about the SPI being optional. Funnily enough this post now also gives you all the tooling to make an actual evil RJ45 dongle by reflashing one :D

replies(2): >>42744057 #>>42744435 #
stavros ◴[] No.42744057[source]
Hm, why does shorting CS and S0 make it not work?
replies(2): >>42744156 #>>42744266 #
1. nick__m ◴[] No.42744156[source]
I have no idea about S0 but CS is usually chip select. It should be sufficient to short it to prevent the chip from being selected. However CS is frequently inverted and you would have to pull it up to prevent the chip selection, so maybe S0 is always high and inhibit CS
replies(2): >>42744214 #>>42744232 #
2. stavros ◴[] No.42744214[source]
That makes sense, thank you.
3. cozzyd ◴[] No.42744232[source]
SO (MISO) should generally be high impedance if not selected...

I suspect this causes SO to always output the same value and the Ethernet controller must expect some magic

replies(1): >>42744281 #
4. nick__m ◴[] No.42744281[source]
Thanks you for refreshing my memory, I learn about that in college twenty-something years ago but never used that knowledge!