Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Diagnostics;
- using System.Threading;
- namespace sandBoxCheck
- {
- class Program
- {
- static void Main(string[] args)
- {
- System.Threading.Thread.Sleep(1000);
- int pID = Process.GetCurrentProcess().Id;
- Process theProc;
- try
- {
- theProc = Process.GetProcessById(pID);
- }
- catch
- {
- Console.WriteLine("[!] - bad PID!");
- return;
- }
- bool inSandbox = false;
- try
- {
- ProcessModuleCollection theMods = theProc.Modules;
- foreach (ProcessModule pm in theMods)
- {
- if ((pm.ModuleName).Contains("cmdvrt32.dll") || (pm.ModuleName).Contains("snxhk.dll") || (pm.ModuleName).Contains("SxIn.dll"))
- {
- inSandbox = true;
- }
- }
- }
- catch
- {
- Console.Write("[!] - Problem With A Module");
- }
- if(inSandbox)
- {
- Console.Write("[!] - We are in a Sandbox!");
- }
- else
- {
- Console.Write("[!] - Not Sandbox Verified, Shall We Run?");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement