logoalt Hacker News

xxstoday at 9:24 AM1 replyview on HN

I tend to deal with unwanted installations by creating a zero length file with the name (weights.bin) and remove all permissions from all users, taking the ownership as well. While the download and friends commence they fail to overwrite it.

The tactic used to work even as prevention to common RPC exploits (viruses/worms) on windows as well (in the early 2000s).


Replies

alexpotatotoday at 12:07 PM

The zero size filed with the same name trick was the first thing I thought of as well.