News for hackers. Stuff that matters.

CodeHz

Re:Public/protected/private is an unnecessary feature on Friday June 20, 2025 @12:46AM (#44324813)
Actually, it won't compile in msvc (the linking phase, to be precise), MSVC uses different names for methods with different visibilities
Windows do have this API, NtDeleteFile, AND it could be used to delete current running exe. https://twitter.com/jonaslyk/status/1345167613643661312 but it is undocumented...
Re:WordPad will be removed in a future release of Windows on Sunday September 03, 2023 @02:57AM (#37368282)
Funiest thing is, in win11, the notepad use RichEdit again (but use winui's richedit control, not win32
Re:SQLite Release 3.42.0 on Tuesday May 16, 2023 @12:22PM (#35964047)
no, you can do it by define SQLITE_DEFAULT_FOREIGN_KEYS=1 while compiling sqlite3
Btw, you can even run a executable file which has been renamed to any extension (.txt or .whatever) in command line. (See PATHEXT env) It just recognized by the explorer (and shellexecute api’ third parameter). So that’s mean all files have “executable” permission by default.
Re:Chrome DevTools, Scroll Into View gets around paywalls on Monday February 27, 2023 @02:41AM (#34954012)
Maybe it just a transparent div that blocked all the pointer events?
it could come from a template function which don't have a sfinae branch (or `if constexpr (std::is_empty<T>::value)`) for empty type
Re:uBlock Origin 1.41 on Thursday February 10, 2022 @01:01PM (#30290058)
You could try adguard (android version), but it is paid.

And the biggest problem is most of sites are already upgraded to https, it needs MITM attack, but lots of applications won't accept any user certificate... (so adguard needs be installed to let those apps bypass its proxy, that's mean, you cannot just host a central proxy server to filter all ssl traffic)

Re:Six top-level folders in a Git repo with the same name on Wednesday January 19, 2022 @11:20PM (#30004570)
BTW, the GitHub mobile app rendering them correctly (since it doesn't use html)
Re:Apache Log4j2 Jndi RCE on Thursday December 09, 2021 @12:00PM (#29499867)
Tested on: Steam (search box), Apple (icloud), Minecraft (both server and client, just type PoC in chat box) (Tip: use dnslog to test(no payload), so it should not cause any problems)
Re:Perfect Motherfucking Website on Thursday April 08, 2021 @01:06PM (#26741232)
It's not perfect, since the scrollbar is keep while while the content has dark background... maybe you need a <meta name="color-scheme" content="light dark" />
at least the oldest icons are still exists in modern win 10, yes, even after ms decided to update some icons to fit new "Fluent Design" https://imgur.com/a/6T31ziE (from latest insider build
You can achieve it without CSS actually (in chrome) Just put <meta name="color-scheme" content="light dark"> to <head> It will also make vanilla scrollbar into dark theme
Re:Censorship of Gitee:the github alternative in China on Saturday February 27, 2021 @04:42PM (#26288436)
根据相关法律政策,该内容无法显示 is "According to relevant laws and policies, the content cannot be displayed" So they just consered content in source code level
Re:Censorship of Gitee:the github alternative in China on Saturday February 27, 2021 @04:41PM (#26288431)
The readme.md has been blocked, translation for 根据相关法律政策,该内容无法显示 is "According to relevant laws and policies, the content cannot be displayed". You can still get content by `git clone`, but you can never get it in web page (including https://gitee.com/gsls200808/chinese-opensource-mirror-site/...). By the way, unlinke github, you cannot do any useful things though the web interface without a verified account(even clone through git protocol has been limited to the verified account). This sounds like a very common thing in China, but it is incredible that censorship appears on open source platforms.
Re:V (Vlang) 0.2 on Tuesday December 22, 2020 @07:43PM (#25513182)
It looks similar to nim's ARC/ORC gc approach... Just curious, have you ever compared them?
Re:Firejail – Sandbox Linux Applications on Tuesday November 10, 2020 @11:38PM (#25055535)
I think we can achieve this through windows container(not docker, it won't support interactive GUI application), by using process isolation, most api have been implemented in container.dll(see the exported functions table!), but it is undocumented... There's some demos that using this API https://github.com/microsoft/BuildXL/blob/master/Public/Src/...
Re:Linux Kernel 5.3 on Monday September 16, 2019 @09:20PM (#20990267)
it happened in my system in last boot, dmesg says dbus-daemon tried (twice!) to read urandom before its seeded, and the next message (same second, about 200ms) is about urandom has been seeded, it is a race condition!