lebarradura

Untitled

May 22nd, 2021 (edited)
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Management;
  3. namespace About {
  4. public class Decode {
  5.  
  6. static public bool bro(){
  7. return true;
  8. }
  9. static public bool Main(string str) {
  10. SelectQuery query = new SelectQuery("Win32_DiskDrive");
  11. ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
  12. var drivers = searcher.Get();
  13. foreach(ManagementObject mo in drivers) {
  14. string n = mo.GetPropertyValue("Caption").ToString();
  15. if (n.ToLower().Contains("vbox") || n.ToLower().Contains("vmware")) {
  16. return true;
  17. }
  18. }
  19. return false;
  20. }
  21. }
  22. }
RAW Paste Data