Hacker News new | past | comments | ask | show | jobs | submit | ianschmitz's comments login

We sold ours a few days before they announced the monthly fee. I feel like we dodged a bullet.

Are there any rules that folks find really effective? It doesn’t come with any out of the box.

While I agree with you…

> It looks like they are announcing to the world today that they care more about advertisers than users.

Where does 78% of their revenue come from? I’m not sure why you’re surprised.


HSTS is a great mechanism to help protect against this. Although it assumes the user has visited the site previously within the HSTS expiration period. There’s also the HSTS preload list: https://hstspreload.org/


Interesting site on hsts.

I don't think HSTS will help if he is running his own WWW site on his laptop with a proper CA signed cert. If I understand correctly his laptop was presenting a proper WWW login page presumably over HTTPS after victims connected to his WIFI. What he was probably faking was the redirect to the Identity Provider (IDP) by staying on his own properly credentialed HTTPS site which would pass all HSTS checks. He may have also been faking DNS responses to keep users where he wants them.


Exactly this. Apple devices in fact use a domain https://captive.apple.com/ to detect when to redirect to a captive portal which will grant the user access to the internet. HTTPS isn't used here because the captive experience is to re-write all DNS lookups to a local IP to serve the captive experience.

This experience would just redirect the user to a site they've never been to before, say: wa-man-likes-your-data.com. This could have a legitimate signed cert from anywhere and look legitimate to the device with a lock icon. Put the airline's logo and a form for PII, wait a couple of hours and you've collected a plane load of data.

I used to think about doing something similar but as an education campaign. Similar to Phishing Simulators at large corporates, I had the idea to display a captive page that explained what the user did and how they can learn to avoid it in future.

Apple & Google should really make it clearer on phones that users are joining untrusted networks, especially any network not implementing Wi-Fi Certified Passpoint (Hotspot 2.0).


as I understand it, it would be http://captive.apple.com

so that the captive portal can intercept and write their own login.


Yes, my brain auto-corrected me to HTTPS.


How would they have got a proper CA signed cert for a domain they don't own?

HSTS will only make a HTTPS connection. Without the valid certificate, they should get a warning.

The only way this "works" is if a captive portal pops up a browser to a site that looks the same like amaz0n.com. Password manager wouldn't popup, but many people don't use them.

Faking DNS also won't help with the TLS warning, they won't have the certificate.

Basically, this shouldn't be possible with HSTS.


> How would they have got a proper CA signed cert for a domain they don't own?

No need. People probably don't look closely at the domain name.


Criminals are smart enough to skip any of that -- they'll trick you into opening a site that has the "same" domain and looks the same, except that the domain uses a Unicode character that is just a tiny bit different from the real one. (Thank you ICANN!) I get junk email from them every day. Even if just 1 out of 50 people fall for this, they get a good payout.

And that's just one of the many possible scenarios. When you control someone else's Internet, there is a lot of things you can do. Google's certificate transparency is going to help a lot here, but only as much as what happens in a browser.


HSTS does absolutely nothing to protect against evil portals. These portals aren't spoofing DNS for google.com, they're typically displaying their own TLS-enabled site with a familiar-looking login flow, i.e. "Log in with Facebook/Google/Amazon to access Wi-Fi."


Meh, easily avoided.

Just do a captive portal redirect to "google.johnsmith.example.com" with a properly signed certificate, add google logo and login fields, and after a user enters his credentials, just redirect them to actual google.com.

Most people don't look at domains in the url. You can actually probably register a domain like "freegooglewifi.com" or something.


How does this help if the evil portal is an entirely new destination for the victim?


Ruby is surprisingly picky with white space


Can you give an example? I can't think of a single situation where whitespace matters in Ruby (unless of course you forget to put a space between two commands or something silly).


It's not really a problem in practice (and I love Ruby), but it's still wild to me that they made the parser do this:

    $ irb
    irb(main):001:0> def foo(x=70) = x
    => :foo
    irb(main):002:0> i = 2
    => 2
    irb(main):003:0> foo / 5/i
    => 7
    irb(main):004:0> foo /5/i
    => /5/i


if foo is a method then

`foo + bar` and `foo+bar` are `foo()+bar`, but `foo +bar` is `foo(+bar)`

ternary ? : also has some interesting whitespace dependent mixups with symbols, but I cannot remember what. I think that parser has many gotchas like that, but they are really really rare to bite you, because ruby's magic follows human intuition as much as possible.


still less annoying than Python's semantic whitespace


Yea but it’s still not a delimiter


Way to follow your instinct.

I ran into similar limitations for relatively simple tasks. For example I wanted access to the token usage metadata in the response. This seems like such an obvious use case. This wasn’t possible at the time, or it wasn’t well documented anyway.


I wish more devices offered a way to enable a “slow charge” mode.

When I’m plugging my laptop into my dock to work for the next 8 hours it doesn’t need fast charging.

When I’m plugging my phone in before bed to charge for the next 8 hours it doesn’t need fast charging.


On my laptop I have a script to set

    /sys/class/power_supply/BAT0/charge_control_end_threshold
I could imagine automating this to set the threshold to the current battery level, and incrementing the threshold by 1% every N minutes to control charge speed.

Right now I try to keep it at 50% max charge like this while plugged in at home.


> When I’m plugging my phone in before bed to charge for the next 8 hours it doesn’t need fast charging.

iPhones do this with "Optimised Battery Charging" turned on (which I believe is the default setting) - "allow iPhone to wait to finish charging past 80% until the time you need to use it" (which it learns over time.)


Android has something similar. A notification pops up when I plug in at night, letting me know that it's charging slowly because I usually leave it plugged in overnight, and that I can disable it (once or permanently) to switch to fast charging.


As others have mentioned, many phones do this in software, but I find the easiest solution is simply to use a charger incapable of fast charging.


It's harder to do with a usb-c charger and laptop because the spec requires higher voltages are made available with higher wattages, and manufacturers only make products to hit sweet spots in the specs and market.

You might end up with a readily available 65W charger to get the necessary 20V, even if you don't want 3A.

https://en.wikipedia.org/wiki/USB_hardware#USB_Power_Deliver...


i have 2 chargers near my bed, one has 3 amps, the other one has 1. i use one on another depending on how fast i need it charged. not the best solution, but it works.


I have a wireless charging cradle on my nightstand intentionally hooked to a slow charger. It works fine most of the time except on the rare occasion when the phone charge is low and I'm going somewhere in a couple of hours. It would be great if there was a charging cradle with a simple "fast/slow" charge switch.

Or even better, if phones had a built-in charge status UI that instead of just saying "NN% charged / TT minutes until full" had a slider controlling charge speed that showed a range of "time until full". That way users could intelligently choose the charge speed vs time based on context.


At least on Android it's possible to disable fast charging. It's in the battery settings on my phone.


Is this supposed to be funny?


It’s interesting to see the larger laptop have the smaller battery of the two.


That CPU on passmark is reported as a 45Watt TDP, I don't think that battery is enough for it to "last all day". Edit: maybe "day long" during winter.

https://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-13700...


And smaller resolution on a larger display with a dedicated RTX 4060 graphics card.

It like they're rebranding multiple different models of Clevo as a single product line or something


Betting the HDMI port is connected to the NVIDIA GPU too. That might be great for gaming, but NVIDIA drivers are still a mess on modern Linux, especially if they have to render your desktop.


1.38% of $10B is a lot of money. I’m not saying they care though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: