Jump to content
Gonzalez

[C#][Snippets] Anti-WPE, Wireshark, Sandboxie, Emulation

Recommended Posts

Anti-Sandboxie:

[DllImport("kernel32.dll")]
public static extern IntPtr GetModuleHandle(string lpModuleName);

private void DetectSandboxie()
{
if (GetModuleHandle("SbieDll.dll").ToInt32() != 0)
{
// Sandboxie Detected
// Code Here
}
}

Anti-Emulation

private void DetectEmulation()
{
long tickCount = Environment.TickCount;
Thread.Sleep(500);
long tickCount2 = Environment.TickCount;
if (((tickCount2 - tickCount) < 500L))
{
// Emulation Detected
// Code Here
}
}

Anti-Wireshark

private void DetectWireshark()
{
Process[] ProcessList = Process.GetProcesses();
foreach (Process proc in ProcessList)
{
if (proc.MainWindowTitle.Equals("The Wireshark Network Analyzer"))
{
// Wireshark Detected
// Code Here
}
}
}

Anti-WPE

private void DetectWPE()
{
Process[] ProcessList = Process.GetProcesses();
foreach (Process proc in ProcessList)
{
if (proc.MainWindowTitle.Equals("WPE PRO"))
{
// WPE Detected
// Code Here
}
}
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...