DeaD_EyE

[aur] malware packages

Jul 22nd, 2025
477
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 KB | None | 0 0
  1. from subprocess import run
  2.  
  3.  
  4. def installed(packages: set[str]) -> set[str]:
  5.     proc = run(["pacman", "-Q"], capture_output=True, encoding="utf8")
  6.  
  7.     return {
  8.         line.split(maxsplit=1)[0].strip() for line in
  9.         proc.stdout.splitlines()
  10.     } & packages
  11.  
  12.  
  13. malware_packages = {
  14. # false positive test
  15. #    "linux",
  16. #    "mc",
  17.     "librewolf-fix-bin",
  18.     "firefox-patch-bin",
  19.     "zen-browser-patched-bin",
  20.     "minecraft-cracked",
  21.     "ttf-ms-fonts-all",
  22.     "vesktop-bin-patched",
  23. }
  24.  
  25. if installed_packages := " ".join(installed(malware_packages)):
  26.     print("❌You are fucked!!!❌\n\nUninstall following packages with pacman:\n")
  27.     print(f"pacman -R {installed_packages}")
  28. else:
  29.     print("🆗 You're safe. 🆗\n\nFollowing packages are not installed:\n", "\n".join(malware_packages), sep="\n")
  30.  
  31.  
Comments
  • User was banned
Add Comment
Please, Sign In to add comment