Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked [c#] Anti Sandboxie


SP

Recommended Posts

  • 4 months later...

Re: [c#] Anti Sandboxie

 

Why do you need to convert 'sandboxiecontrolwndclassX' to String? You just can:

 

IntPtr sandboxiecontrolwndclassX = FindWindow(”sandboxiecontrolwndclass”, “Sandboxie Control”);

return ( sandboxiecontrolwndclassX != IntPtr.Zero );

Link to comment
Share on other sites

Re: [c#] Anti Sandboxie

 

Why do you need to convert 'sandboxiecontrolwndclassX' to String? You just can:

 

IntPtr sandboxiecontrolwndclassX = FindWindow(”sandboxiecontrolwndclass”, “Sandboxie Control”);

return ( sandboxiecontrolwndclassX != IntPtr.Zero );

friends: good code .. make it full and add it here

Link to comment
Share on other sites

  • 2 months later...

Re: [c#] Anti Sandboxie

 

I was used this code, it's works even sandboxie just auto start with OS, not then i run my programm in Sandboxie;

For protection i use process scan, if program parent process != explorer.exe (and ID) this.close();

 

private void ParendProcessParameters()

{

var myId = Process.GetCurrentProcess().Id; // Your current process ID

var query = string.Format("SELECT ParentProcessId FROM Win32_Process WHERE ProcessId = {0}", myId);

var search = new ManagementObjectSearcher("root\\CIMV2", query);

var results = search.Get().GetEnumerator();

if (!results.MoveNext()) throw new Exception("Huh?");

var queryObj = results.Current;

uint parentId = (uint)queryObj["ParentProcessId"];

var parent = Process.GetProcessById((int)parentId);

parent.Id // Your parent process ID

parent.ProcessName // Yeur parent process Name

}

 

Used this in CrackMev1.4;

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.