Comment on If you use Emudeck to play Wii U games, you may have malware
SamueruSama@programming.dev 2 weeks agoIt turns out the malware doesn’t work because it runs subprocess.run([“rm”, “-rf”, “/*”])
That will never delete anything, since there is no shell to expand the glob in /* here, so rm gets a literal /* as the patht to delete 😭
SpaceNoodle@lemmy.world 2 weeks ago
This is why you test your code, people
Katana314@lemmy.world 2 weeks ago
Which leads to the interesting question: How do the authors of infectious, destructive viruses test their code?
SpaceNoodle@lemmy.world 2 weeks ago
I’d set up an air-gapped test network. Could possibly set up some virtual hosts to emulate part of it, but I’d keep the whole setup isolated as a failsafe.
elvith@feddit.org 2 weeks ago
Whew, thankfully it didn’t work on my machine!