I have this virus that came from an npm package and I want to read the code. My problem is that I cannot read the contents of the file.
Trying to make it readable, I took the drastic step of allowing all permissions on the file. (Yes, I know. Kids, don't play with matches or set random things to 777.) I
chmoded it to 777 and moved it to my Desktop. I'm the owner of the file. I changed the extension to
.txt, and its icon is now a bunch of characters.
sudo cat as well. No, I'm not about to execute it as the superuser or anything like that. I thought that the superuser would bypass the permissions problem.
But no; any kind of read command gets a permission denied.
I'm using a Mac.
How on Earth is this file unreadable with 777 permissions and
cat running as the superuser?