Advertisement
Linkcabin

sandbox

Dec 19th, 2016
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Diagnostics;
  5. using System.Threading;
  6.  
  7. namespace sandBoxCheck
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. System.Threading.Thread.Sleep(1000);
  14. int pID = Process.GetCurrentProcess().Id;
  15. Process theProc;
  16.  
  17. try
  18. {
  19. theProc = Process.GetProcessById(pID);
  20. }
  21. catch
  22. {
  23. Console.WriteLine("[!] - bad PID!");
  24. return;
  25. }
  26. bool inSandbox = false;
  27. try
  28. {
  29. ProcessModuleCollection theMods = theProc.Modules;
  30. foreach (ProcessModule pm in theMods)
  31. {
  32. if ((pm.ModuleName).Contains("cmdvrt32.dll") || (pm.ModuleName).Contains("snxhk.dll") || (pm.ModuleName).Contains("SxIn.dll"))
  33. {
  34. inSandbox = true;
  35. }
  36. }
  37. }
  38. catch
  39. {
  40. Console.Write("[!] - Problem With A Module");
  41. }
  42.  
  43. if(inSandbox)
  44. {
  45. Console.Write("[!] - We are in a Sandbox!");
  46. }
  47. else
  48. {
  49. Console.Write("[!] - Not Sandbox Verified, Shall We Run?");
  50. }
  51.  
  52.  
  53.  
  54. }
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement