Jump to content
Gonzalez

[MASM] Anti-Wireshark

Recommended Posts

Posted
; ================================================================
; [ Anti-Wireshark ]
; Coded by Armaked0n of Macedonian Forces
; ----------------------------------------------------------------
; Greetz: Darkness.MKD, Darker, Bra1n1aC, KnOppIx, Outlaw, Vertigo
; ================================================================

.386
.model flat, stdcall

option casemap : none

include windows.inc
include kernel32.inc
include user32.inc

includelib kernel32.lib
includelib user32.lib

.data

szWiresharkWinText CHAR 'The Wireshark Network Analyzer', NULL
szWiresharkWinClass CHAR 'gdkWindowToplevel', NULL

.code

Start proc

push TRUE
call AntiWireshark

push NULL
call ExitProcess

Start endp

; ==================================================================================
; AntiWireshark -> anti Wireshark procedure
; ----------------------------------------------------------------------------------
; BOOL bKillWireshark
; Specifies whether the function should kill Wireshark if detected. TRUE specifies
; that this should be done, FALSE that the program should exit.
; ==================================================================================

AntiWireshark proc bKillWireshark : BOOL

push offset szWiresharkWinText
push offset szWiresharkWinClass
call FindWindow

cmp eax, NULL
jne @wireshark_detected

ret

@wireshark_detected:
cmp dword ptr [bKillWireshark], FALSE
jne @kill_wireshark

push NULL
call ExitProcess

@kill_wireshark:
push NULL
push NULL
push WM_CLOSE
push eax
call SendMessage

ret

AntiWireshark endp

end Start

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...