Advertisement
Guest User

Anti Debug - Fiddler - dnspy

a guest
Oct 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.19 KB | None | 0 0
  1.   Public Sub Anti_Debug()
  2.         ' The following expression was wrapped in a checked-statement
  3.         Dim tools = "fiddler,dnspy,debugger,debug"
  4.         While True
  5.             Dim array As String() = tools.Split(New Char() {","c})
  6.             Dim processes As Process() = Process.GetProcesses()
  7.             For Each process As Process In processes
  8.                 Dim num As Integer = array.Length - 1
  9.                 For j As Integer = 0 To num
  10.                     Dim flag As Boolean = process.ProcessName.ToLower().Contains(array(j))
  11.                     If flag Then
  12.                         Process.Start("cmd.exe", "/c echo Close - " + process.ProcessName + " + Fuck You & pause")
  13.                         Process.GetCurrentProcess().Kill()
  14.                     End If
  15.                     Dim flag2 As Boolean = process.MainWindowTitle.ToLower().Contains(array(j))
  16.                     If flag2 Then
  17.                         Process.Start("cmd.exe", "/c echo Close - " + process.ProcessName + " + Fuck You & pause")
  18.                         Process.GetCurrentProcess().Kill()
  19.                     End If
  20.                 Next
  21.             Next
  22.             Thread.Sleep(1)
  23.         End While
  24.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement