Open FellowEsin opened 1 year ago
Would be best if we had a native linux version of this detector, for now, if you're a mod dev on Linux, hold off until the app is made into a linux binary, or have a windows user in your dev team run the checker for you.
I was able to run it with Mono
mono JarInfectionScanner.exe
EDIT: actually, mono crashes when you click browse, but i was able to run it via wine, your error message says you are missing fonts, try installing fonts with winetricks
I couldn't make it run on my computer, so I've converted the check to Python: https://gist.github.com/ivanpu/c5347bf107fa900ac79f1fcf2f056e7c
DISCLAIMER: It didn't find any infected jars on my computer, so I can't guarantee that it actually finds stage-0 infection. I assume that my code is correct if the code in this repo is correct.
I can run it inside Steam using ProtonGE or Proton (and works, says no files are infected) but not with system wine or mono. I think it needs a new enough version of Wine to have WPF or something like that.
I used ChatGPT to convert linux paths to wine paths. :chefkiss:
Or issue
winepath --windows /home/xy/.minecraft
Does work with Mono it seems, just the browse button doesn't work, but manually typing in the path scans everything fine.
Indeed works if not clicking the "Browse" button.
But it stops on the first IOExcetption
it encounters, instead of skipping that folder :facepalm:
edit: the issue is specifically with root owned ".Trash-0" and "lost+found" folders in the roots of every mounted partitions, and maybe some other special folders I'm not aware of.
I made a scanner that works with Linux if anyone here is interested. It does mostly the same thing, with a UI as well.
I know this is a bit of self-promotion, but the fact that this tool didn't work for linux bothered me so I made it for Linux.
If you wanted to get it you can use this link, but if I shouldn't self-promo here, then lmk and I'll remove this comment.
Hello! So I want to use this scanner on my Linux Mint 21.1 computer. I tried running the program with Wine, but it gives off this error:
Can you do something about it? Or perhaps there's a problem on my side? Thanks.