HNHacker News
TopNewBestAskShowJobs

matan-h

814 karma · joined June 18, 2023

Creating cool python libraries, interested in rust , in cybersecurity, and working with electron
submissionscomments
matan-h··on Ha.mr – short URLs using compression
Its open source: https://github.com/p2r3/ha.mr
matan-h··on I created a game to detect the browser history
oh I only checked for very popular sites (here is the list: https://github.com/matan-h/falling-history/blob/main/docs/to...). Also news.ycombinator.com is in the list, so I expected at least that to be in the browser history.
matan-h··on Better adb shell
aka /sdcard on most phones
matan-h··on Better adb shell
Apart from the length, what advantages does `[-z $VAR ] && VAR=x` over `if [ ! $VAR ]; then VAR=x fi` ?

Btw, The color script is cool. This makes ANSI sensible.

matan-h··on Better adb shell
I use this to copy programs from termux.

in termux (you need lld [pkg i lld]):

   mkdir /sdcard/.adb
   cp `which bash` /sdcard/.adb
   cp $(ldd `which bash`|cut -d ">" -f2) /sdcard/.adb
in adb shell:

   cd /data/local/tmp
   cp /sdcard/.adb/bash
   cp /sdcard/.adb/*.so
   LD_LIBRARY_PATH=.
   ./bash
matan-h··on Better adb shell
I've tried it. nushell works for me only with the "-c" option, otherwise I get "Error: I/O error: Function not implemented (os error 38)". Probably the prompt function
matan-h··on Google has another secret browser
yes. (It's not really the 'root' user, but it trusts blindly and can do things such as installing apps without user confirmation.). In my other blog post about gms, the JS bridges would be running in the privileged scope.

You agreed to this in Google's privacy policy when installing Android.

matan-h··on I analyzed Stack Overflow for secrets
Thanks you for fixing it I`ve updated the blog. now my simple rust script is not that helpful :)
matan-h··on I analyzed Stack Overflow for secrets
Gitleaks regexes are fairly accurate. For example, the regex to find a GitHub PAT is "ghp_[0-9a-zA-Z]{36}" which mean it has a specific number (36+4) of characters from specific group (alphabet+number). And I try to filter out the obvious non-secrets (like 'abcd','xxxx' and '1234'). However, as I stated in the article, most of the data is not actionable: most people just revoke the token, use an old one, change some random letters, etc.
matan-h··on I analyzed Stack Overflow for secrets
I agree. I asked for a feature that warn users before they post secrets: https://meta.stackexchange.com/questions/394710/feature-requ...
matan-h··on Google has a secret browser hidden inside the settings
I have an addition to this story:

Me: here's a bug in Google Play Services.

Google: Not a bug, working as expected, closing issue.

Me: posted the bug on my blog, and it's get extensive media coverage.

Google: It seems we were wrong! It is indeed a bug. We will return to you in a few weeks.

matan-h··on Google has a secret browser hidden inside the settings
Very cool ! To ensure there is only one JavaScript interface, I edit hackability to be without popups and print, then host it. Your tool sound easier. https://portswigger-labs.net/hackability
matan-h··on Google has a secret browser hidden inside the settings
correct
matan-h··on Google has a secret browser hidden inside the settings
Me too, I have a folder in my android called "breakthrough" and it has 20 applications, including Zoom, waze, Spotify, and so on... apparently, now, it should also include Google and maybe even the Settings :)
matan-h··on Google has a secret browser hidden inside the settings
I checked that, and it's actually possible : Spotify → your plan → see available plans →click on some plan → click "advertising" → find "reCAPTCHA" and click on "Google Privacy Policy"→scroll down until "google" → you get it :)