HNHacker News
TopNewBestAskShowJobs

AntonyGarand

597 karma · joined July 5, 2017

submissionscomments
AntonyGarand··on Ask HN: Those making $500/month on side projects in 2021 – Show and tell
I built a discord bot to analyze the market of the OldSchool Runescape game once a public and fairly accurate item price API was launched.

The bot initially started as a fairly simple interface to display the real-time prices and graphs with the price history, but then as the core features were completed, it evolved into finding price spikes and dumps using simple algorithms. Once the user base increased I released a paid membership to get the best notifications while keeping other features free, and it grew organically from there! It's only been few months since it launched but it's generating well over $1k/m revenue so far.

AntonyGarand··on RCE in Visual Studio Code's Remote WSL for Fun and Negative Profit
It does, if the server accepts the connection there is nothing preventing it.

This is frequently used by apps which are installed on your machine but are accessed by links, such as zoom and discord. I think Zoom removed its server after receiving pressure[0] about it, but discord still does it: Head to https://discord.com/invite/test and it should open your local discord client, or checking the network requests will reveal up to 10 attempted local ports.

[0] https://www.zdnet.com/article/zoom-defends-use-of-local-web-...

AntonyGarand··on Show HN: Minimal 3D creative coding tool – control 8×8×8 dots with JavaScript
I assume he means the size of the payload remains technically below 32 while the "real" code is larger due to evaluating location.hash. `eval(location.hash.substring(1))` is 32 characters, but the hash itself can be few kilobytes

I used this to merge two tixies a while back, and execute an XSS as proof of concept [0]

[0] https://twitter.com/AntoGarand/status/1327101941760086017

AntonyGarand··on Open source chess developers warn about a commercial engine based on Stockfish
While this is something I would expect from a small random company, ChessBase is pretty big in the chess world.

For them to promote this "new" engine on their shop[0] feels wrong, I would expect them to meet certain quality threshold.

Lichess does mention this in the bottom of the post, which has the same feeling:

> Everyone is permitted and encouraged to modify and improve code from Stockfish/Leela while giving credit; that is the intent of open-source software. Everyone is allowed to copy Stockfish/Leela and sell them, provided the terms of the Stockfish/Leela license are met. But don’t pretend that the product being sold is something it isn’t.

[0] https://shop.chessbase.com/en/

AntonyGarand··on Electricity over $900/MWh in most of Western US now
Renewables are very reliable if you winter-proof them, the same as other sources.

The problem at the moment is that none of the sources for Texas was prepared for a cold winter, renewable or otherwise.

Quebec is 99% renewable[0] (95% hydro, 4% wind) and runs through the coldest of winter just fine!

> With over 40 853 MW of installed capacity, hydroelectric stations generate about 95% of Quebec’s electricity.

> Wind is the 2nd largest source of electricity generation in Quebec. In 2018, wind capacity reached 4 096 MW and accounted for 4% of the province’s generating capacity

[0] https://www.cer-rec.gc.ca/en/data-analysis/energy-markets/pr...

AntonyGarand··on Just Wanted to Say Thanks
Taking this opportunity to say Thank you as well! I've been using it for years on all of my machines, such a great piece of software, didn't expect to see it on here
AntonyGarand··on RemoveJS – Remove JavaScript from any website
Doesn't work with event handlers: https://remove-js.com/http://14.rs
AntonyGarand··on Feedback wanted: CORS for private networks (RFC1918)
Depending on what interactions you want, only the origin host would require https.

If you need passive mixed content, I believe it is and will remain supported by browsers for some time.

If you need active mixed content though you probably will need a workaround via passive content instead.

AntonyGarand··on Feedback wanted: CORS for private networks (RFC1918)
It does mention private to local requests will be affected, which is implying the private network host must be served via https

> Requests from a private network to a local network

https://web.dev/cors-rfc1918-feedback/#what-kinds-of-request...

AntonyGarand··on Show HN: Please-unsubscribe.com – fwd emails to unsubscribe from marketing
Among the post, this article[0] is referenced, which does mention testing on outlook and is more technical! It might be it.

> It turns out that all email services take your original message and conveniently wrap it in a div (with a class) or a blockquote, meaning you can use that as a CSS selector. It's so stupidly simple.

I wonder how the situation evolved from a decade ago. Time to do a bit of research!

0: https://web.archive.org/web/20160903225343/http://jonathan-k...

AntonyGarand··on Show HN: Please-unsubscribe.com – fwd emails to unsubscribe from marketing
While I do see the value of such a service, I wouldn't trust anyone with unsubscribe links I receive.

I have seen companies generating an API key for the unsubscribe button, where the key can be used to perform other actions and lead to account takeover

AntonyGarand··on Show HN: Please-unsubscribe.com – fwd emails to unsubscribe from marketing
This one perhaps? https://news.ycombinator.com/item?id=5327469

Archive: https://web.archive.org/web/20171003162605/https://litmus.co...

AntonyGarand··on Tables: Tracking work for teams
Seatable[0] is another alternative which is mostly open source, following a licensing similar to MongoDB for their server if I recall correctly. They're now on version 1.3, not sure if they're fully stable yet but it's a viable self-hosted alternative.

[0] https://seatable.io/

AntonyGarand··on I lost €4k in a Facebook scam
It absolutely is: https://github.com/kgretzky/evilginx2
AntonyGarand··on Understanding Programs Using Graphs
I would start with https://astexplorer.net, which handles many languages, and provides interactivity: click on a node within the ast, and il will highlight the corresponding code and vice versa.

The ast's are usually language specific, therefore it's not cross language.

AntonyGarand··on Ask HN: Do you ever truly use your revision history?
I navigate through unfamiliar code almost daily, completely different projects and different authors. I use the blame feature a ton to understand in what context a method was added: by blaming it, I can usually see what other code was added at the same time, and its evolution.

I've used git-svn[0] to use git within svn, it's been working flawlessly in my case.

[0] https://git-scm.com/docs/git-svn

AntonyGarand··on Why does Google prepend while(1); to their JSON responses? (2010)
I made a post few months ago regarding this exact vulnerability: https://dev.to/antogarand/why-facebooks-api-starts-with-a-fo...

HN discussion: https://news.ycombinator.com/item?id=18443125

---

While this vulnerability is getting old, it's very interesting to see its prevention still in effect on major websites. Even if the original vulnerability is patched, we never know when a modern variant might pop out, such as using UTF16BE as charset to extract array data!

AntonyGarand··on Why does Google prepend while(1); to their JSON responses? (2010)
It is for older browser which do not support CORS, as well as different variants such as using a script with the UTF16BE charset:

https://portswigger.net/blog/json-hijacking-for-the-modern-w...

AntonyGarand··on Non-Euclidean Worlds Engine [video]
I researched a similar effect few years ago when I was trying to replicate part of the game `AntiChamber` in Unity.

At the time, I found out about Stencil Buffers, which did let us create a cube with various different rooms on the different faces: https://www.youtube.com/watch?v=5DKIP9N-OB4

Since then, there has been more "Portals" technique released, among which this blog post which seems to achieve a similar result: http://tomhulton.blogspot.com/2015/08/portal-rendering-with-...

Another game which uses a different type of geometry is HyperRogue: https://www.youtube.com/watch?v=2DtUJ_x_2Hc

It has a hyperbolic plane instead of a regular rectangular one.

AntonyGarand··on Why Facebook's API starts with a for loop
While the attack is using things for a different purpose, using JSON to provide data to a website is totally legit.

I don't see how people could have prevented this without the knowledge of such an attack

AntonyGarand··on Cloudflare Brings Its 1.1.1.1 DNS Service to Android & iOS Mobile Devices
They mentionned it in the article, this is required and only used by the third-party bug-reporting service (instabug)
AntonyGarand··on Ask HN: Is there a modern “power on to basic” computer, for kids to learn on?
This is known as the Reverse Polish Notation: https://en.wikipedia.org/wiki/Reverse_Polish_notation
AntonyGarand··on Slack Is Buying HipChat from Atlassian
To be fair, there are tons of very low severity vulnerabilities disclosed on HackerOne and this does not mean the application is vulnerable. Slack is definetly not vulnerable because it is written in php and you can pollute an iframe on their career website. Having such a program in place is actually good for the application security as it does get audited by tons of hackers thanks to the monetary rewards.
AntonyGarand··on Cross-Origin Read Blocking
Will we be able to report errors using the upcoming report-to header? I didn't see a report mechanism listed, but like with hpkp and cors I would like those errors to.be reporteable
AntonyGarand··on JavaScript: Async math is hard
Well, considering `x = x + await 2` and `x = await 2 + x` produces different behavior, it is more related to async/await than to the `+=` operator!
AntonyGarand··on JavaScript: Async math is hard
The fun thing about this is that you're not expecting this code to be bad, I don't feel like it's wrong to expect the same behavior with and without the `await`
AntonyGarand··on Version 6 of Angular Now Available
Very nice!

The ng update command will make updating a lot easier, this has been bugging me with the fast release cycle Angular is using.

AntonyGarand··on DNS Performance compared: CloudFlare 1.1.1.1 x Google 8.8.8.8 x Quad9 x OpenDNS
https://pi-hole.net
AntonyGarand··on The Google Assistant is going global
That's a surprise for me, I'm not a native speaker and in both French and English, it has done a great job at understanding my accents.
AntonyGarand··on Show HN: git self-blame – Blame yourself for others' mistakes
I suggest making a git blame-nemesis for this purpose
← PreviousPage 4 of 5Next →