HNHacker News
TopNewBestAskShowJobs

ben_bai

642 karma · joined January 19, 2015

submissionscomments
ben_bai··on SpaceX tests black satellite to reduce ‘megaconstellation’ threat to astronomy
From what i read they are going with "partially painted black" Makes sense to only have the underside facing earth black. Also the satellites underside is only exposed to the sun with an steep angle because most of the time when it would be exposed to sunlight it's going to be in earths shadow. Reducing the extra heating even more..

Could work without extra cooling...

ben_bai··on SpaceX tests black satellite to reduce ‘megaconstellation’ threat to astronomy
Black satellites are nothing new. Just ask any Surveillance Agency how they handle the heating problem due to black paint.

Oops that's classified. But probably such satellites need a dedicated cooling system.

It's never as easy as, just paint it black and hope for the best.

ben_bai··on Ask HN: Is there a platform for sharing ideas that people want to “give away”?
> A Better (D)VCS

Well there are a couple git based reimplementations. I look forward to GOT (http://gameoftrees.org/) functional but still work in progress

ben_bai··on Removing the Linux /dev/random blocking pool
Yep. The OpenBSD bootloader reads an entropy file from hard disk, mixes it with RDRAND from CPU (if available) and passes it to the Kernel.

The Kernel starts an ChaCha20 stream cipher with this supplied entropy while constantly mixing in timing entropy from devices.

This chipherstream supplies the Kernel with random data and once userland is up this is good enought and also used for /dev/random and /dev/urandom, which on OpenBSB is the same device(non blocking).

Now the fun part: When a userland process gets created it has a randomdata ELF segment that the Kernel fills and which is used as entropy for a new ChaCha20 stream, just for the application should it decide to call arc4random or use random data in any other way (like calling malloc or free, which on OpenBSD make heavy use of random data).

ben_bai··on Removing the Linux /dev/random blocking pool
Deleted in 2017. https://marc.info/?l=openbsd-cvs&m=151069089605712&w=2 you can delete arandom and srandom

Edit: better link

ben_bai··on Removing the Linux /dev/random blocking pool
That's why OpenBSD cut away the start of the RC4 stream (don't remember how many bytes) to make backtracking harder.

But the point is mood b.c. the stream cipher used switched from RC4 to ChaCha20 like 5 years ago. And there is no side channel attack on ChaCha20, yet.

ben_bai··on On Linux's Random Number Generation
So like the standard arc4random_buf(3) which everybody has except for Linux.

Don't worry the name is historic it does not us the arc4 cipher any longer, at least on OpenBSD. They switched to chacha20 as stream cipher.

ben_bai··on Authentication Vulnerabilities in OpenBSD
sshd is mentioned (1.5) exactly because sshd did catch this and refused login. So no, no remote exploit in the default install.

But it was close :)

ben_bai··on Authentication Vulnerabilities in OpenBSD
Yep, there will always be parsing bugs like not sanitizing input, logic failures, weak algorithms, timing attacks, ...
ben_bai··on Authentication Vulnerabilities in OpenBSD
Which is exactly what he wrote.
ben_bai··on Syscall Call-From Verification
You are referencing a Linux manpage. But if it's also true for OpenBSD those syscalls will get deleted or a libc wrapper will be introduced.
ben_bai··on Windows File Manager re-released
Nothing wrong with using goto, sparingly. It's the preferred way for error handling in C.

Nobody has code like this anymore

    10 I=1
    20 PRINT "HELLO "
    40 PRINT %I
    50 IF (%I > 3) 10 40
    30 PRINTLN "WORLD"
    45 PRINTLN
    42 I=%I+1
Notice no goto statement, yet lots of implicit gotos.
ben_bai··on Off-Grid, Solar-Powered, Zero-Battery Refrigerator
The desulfator i speak about is powered by the 12V battery itself. It's a small box with just get hooked up to positive and negative. Technology differs but basically it charges a capacitor and produces very short high voltage charging pulses that break the formed sulfur crystals. Yes, this will deplete the battery if it's not charged otherwise.
ben_bai··on Off-Grid, Solar-Powered, Zero-Battery Refrigerator
Lead batteries can be rejuvenated, with a device mostly called "A pulser/desulfator/refresher" Short story: I had a completely dead 12V car battery. It was at 0V and would not accept a charge at all. Connected it to a bench power supply and slowly cranked the voltage up until it charged with a couple mA @ 30V. Slowly it accepted more amps so I constantly dialed the voltage down until it was charging at 14volts. Then hooked up the desulfator and left it for couple of weeks. Every other day checked voltage and hooked it up to a charger for couple hours. After that it was perfectly able to start my car(oldtimer) again.
ben_bai··on Game of Trees: A Version Control System for OpenBSD
> I, for one, would welcome a git clone (hah!) built to the core OpenBSD quality standard, but it seems unlikely that anyone cares enough to do that.

That would be got(1). Since yesterday version 0.3, 0.4 and then 0.5 was "released". It's still in early development but good enough for a casual user like me to import the OpenBSD src and start using it. Created some commits, branches, performed rebases. Looks great, but still some rough edges. Also tog(1) is great.

ben_bai··on Game of Trees: A Version Control System for OpenBSD
Yes it's a new CLI front-end. In fact it's a BSD/ISC licensed reimplementation/reimagination using the git repo structure for file storage. Commands differ a bit and knowing the OpenBSD developers, it will be more consistent and user friendly then git's CLI. Also it's taylored around OpenBSD's development style.
ben_bai··on What it’s like to own an electric car
It's just 3 phases with 230V each, which gives you 400V across individual phases. Same safety rules apply as on standard outlets, so yes, it really is just familiarity. Also lots of European households do have 400V outlets (we have 2 in our house, basement and garage). I even installed one temporarily in my living room for construction/remodeling and working with the required thick wires they are unconfortable to work with.
ben_bai··on What it’s like to own an electric car
Nitpicking: 230V +-10%, so on a good day it can be as high as 253V.

But yes most people will work on it for their own, but shy away from 400V outlets.

ben_bai··on Researchers strapped video cameras on cats and let them do their thing
Technical talk about War-Kitty and Denial-of-Service-Dog

https://www.youtube.com/watch?v=DMNSvHswljM

ben_bai··on Researchers strapped video cameras on cats and let them do their thing
Cats don't have owners, they have servants. ;)
ben_bai··on Ask HN: Examples of bad open-source code to learn what to avoid?
Always a crowd-pleaser: OpenBSD true.c vs. GNU's true.c

http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr....

https://github.com/coreutils/coreutils/blob/master/src/true....

ben_bai··on OpenBSD 6.5
KARL also includes a random offset in front of the kernel, and the bootstrap code is unlinked once the machine has booted.

    |---------------kernel-----------------|
    |-boot-|-rnd offset-|--running kernel--|
ben_bai··on OpenBSD 6.5
https://runbsd.info/
ben_bai··on SpaceX nails triple booster landing after satellite delivery
This almost always happens. It's really hard to keep a stable satellite connection, while a 150ft. booster is blasting the deck with the exhaust from 3 firing rocket engines.
ben_bai··on Why OpenBSD Rocks
It runs on Luna-88k and people use it.
ben_bai··on Why OpenBSD Rocks
Because they believe in dogfooding their software. So developers run it on their desktops, as well as on their servers.
ben_bai··on Why OpenBSD Rocks
It was setuid root but dropped privilege, but the dropping privilege came after parsing the command arguments and doing initialization, so there was a small time window while it still runs as root and in that time it could be tricked into overriding any file.
ben_bai··on Websocketd
Fun fact: OpenBSD 6.4 /bsd kernel can be shrunk from 14.8MB to 6.6MB. With gzip.
ben_bai··on 35-year-old vulnerability discovered in scp
As long as you use vi to write your rust code I'm OK.
ben_bai··on OpenBSD on a Laptop
I can't even imagine the suffering with broken shell scripts if the defaults change.
← PreviousPage 6 of 11Next →