![]() |
|
★ ★ ★ [Mega Thread] A Beginners Guide to Keylogging ★ ★ ★ - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Blackhat • Red Team • Offensive Security (https://hackforums.net/forumdisplay.php?fid=447) +---- Forum: Keyloggers (https://hackforums.net/forumdisplay.php?fid=113) +---- Thread: ★ ★ ★ [Mega Thread] A Beginners Guide to Keylogging ★ ★ ★ (/showthread.php?tid=1191358) |
★ ★ ★ [Mega Thread] A Beginners Guide to Keylogging ★ ★ ★ - Impurity - Apr 29, 2011 [img]http://img222.imageshack.us/img222/3209/biginnersguide1.png[/img] [img]http://img843.imageshack.us/img843/1757/biginnersguide2.png[/img] Welcome to a Beginner's Guide to Keyloggers! In this guide I will go through all the common topics that you may need to know. When you finish reading this topic you will know everything you will ever need to get started keylogging. I cover every topic related to keyloggers as well as cover terminology and definitions. I'll explain how a keylogger works and how to even get started making your own! So let's get started! [img]http://img821.imageshack.us/img821/6431/tableofcontents.png[/img]
[img]http://img222.imageshack.us/img222/4192/whatisakeylogger.png[/img] A keylogger is a program that logs a keyboards keystrokes. It can be used for several purposes, both black hat and white hat. The most common use is black hat. A keylogger functions by grabbing a keystroke, triggered by when the slave presses a key on their keyboard, and saving it to a variable. This process is called "keyboard hooking". It then will take this long variable and send it via a SMTP or FTP server. You can then view these logs and use it for whatever your intention may be. Keyloggers have several different features that I will go into in a later section. The most basic ones only include keyboard hooking and a way to send the logs. [img]http://img845.imageshack.us/img845/6192/learningtheling.png[/img] One of the most confusing things about starting something new is not understanding the lingo. If you don't understand the lingo, how will you know what people are talking about? In this section I'll be explaining the common terms people use concerning keyloggers. I'll be going over some other more general things as well.
[img]http://img844.imageshack.us/img844/7559/commonfeatures.png[/img] As I've said before, most keyloggers have two basic settings. Keyboard hooking and log sending (by FTP or SMTP). Most keylogger developers (myself included) like to include more settings to help ease the user experience. Below is a list of common settings you may find, and what they do:
[img]http://img708.imageshack.us/img708/2619/howdoiuseit.png[/img] Using a keylogger is a lot easier than it sounds. All you need to do is find one that you want to use, download it, and then chose your settings. Once you have entered all your information and chosen your settings, click the build button. The builder will create your server. This is what you give to people. Give them this file and when they run it they will be infected and you will start receiving logs. Pretty self explanitory. If you ever have a question contact the creator and they should be able to help you. [img]http://img688.imageshack.us/img688/2545/whatisastub.png[/img] A stub is a separate binary that contains special code that is required for the keylogger to function. There are usually two things in a keylogger. The builder and the stub. Some keyloggers will have a stub built in. A builder takes the information and settings you've chosen and merges it with a stub. The stub contains keyhooks and the workings of each feature. These two merge to create your virus, containing all of the information. I'll cover this file in the next section. [img]http://img64.imageshack.us/img64/512/whatistheserver.png[/img] A server is the ouptput of your keylogging builder. It takes your user information (the builder) and the actual malicious code (the stub) and merges the two (via either CodeDOM which I'll explain later in this section, or by filesplitting, which I will also cover) to make one bad ass file. There are several ways that this is accomplished, and both ways have their ups and downs. The server is also what you distribute to infect people. It is your "virus" CodeDom is a type of building that generates the code during runtime. This allows the user to only have to download one file (just a builder). After inputting your information, the builder will take this and combine it with the malicious code (already inside the builder). This helps lower detection rates, but overall is harder to do, and is harder to reFUD (you have to re distribute the entire builder, instead of just providing another stub). Filesplitting is the old school way to do things. It requries taking your information (the builder) and combining it with a separate file that contains the malicious code. While this makes it easier to detect, it's easier to update as you can simply give your users another file (same thing, just with less detections). [img]http://img717.imageshack.us/img717/4883/whatiscrypting.png[/img] Crypting can be very complex, though it isn't necessary for you to know all of this information. So for this section I'll keep things to what you need to know. Crypting involves taking a stub (sometimes it's CodeDOM) and using that to FUD (or lower your detection rate) your file. The entire process can get a bit confusing, and I won't bother getting into it. What you do need to know is that crypting can easily corrupt your keylogging sever making it no longer work. A corrupt keylogger may not be detected (the crypter at least did it's job) but it will not send logs making it useless. Because of this you should chose your crypters carefully and it may take a while to find one that works (for free) with your keylogging server. If you are buying a crypter (which I recommend) then be sure to ask the seller to either test or verify your server. In short, crypting is used to lower detection rate, and raise execution rates. That's all you need to know. * - Impurity - Apr 29, 2011 [img]http://img855.imageshack.us/img855/8088/differencebetween1.png[/img] [img]http://img641.imageshack.us/img641/143/differencebetween2.png[/img] There is one major defining difference between a stealer and a keylogger. A stealers purposes is to steal passwords that have been saved in the browser/application. Ever logged into something and your browser prompted you to save the password? This is what stealers steal. They are good for massivley grabbing passwords and quickly. Once run they do not continue to steal until run again. [img]http://img824.imageshack.us/img824/2525/whatisnet.png[/img] .Net Framework is a very in-depth concept from Microsoft. While you don't need to know (or should you really care) you should know that most keyloggers are written in Visual Basic .Net, giving it a dependancies. Depending on who made it (whether they suck or not) you may have to install a specific version (.Net 4.0). Most computers (99%) come with .Net 2.0 installed. Your output will also requrie a specific framework (depending on which one you use). [img]http://img854.imageshack.us/img854/3008/whataregoodloggers.png[/img] This is like asking what your favorite ice cream flavor is! There is no "correct" answer. It's best to go and figure things out for yourself. Being spoon fed information doesn't help you grow intellectually. But, because I'm in a good mood, I'll post some recomendations!
While there are plenty of other ones, I suggest these. But you should form your own opinion! 😉 [img]http://img717.imageshack.us/img717/5843/upsidetokeyloggers.png[/img] Keyloggers are great for having massive amounts of slaves. They will constantly send you their info and passwords without you having to do anything. They are more stable that other types of malware and are easier to write. They are also extremeley beginner friendly, and that is why they are so popular. [img]http://img571.imageshack.us/img571/3508/downsidetokeyloggers.png[/img] There's one major downside to keyloggers. Well two, but the second is a downside for all types of malware. The first is that (most) keyloggers don't allow you to have any control once you've infected your slave. You have no control, you can't stop logs, you can't do anything really. Keyloggers are starting to add in remote logging and this is slowly growing to be more and more advanced. The second downside is the .Net dependancy for most keyloggers. This is actually a downside for a lot of malware. [img]http://img15.imageshack.us/img15/5162/iwanttomakemyown.png[/img] Well, aren't you ambitious!? It's great that you want to learn, but please...please do not copy and paste public source! Actually learn it for yourself! Once you've done that and made one, don't release it unless it's actually advanced/totally yours. There are plenty of ones on the market. Anyway, to learn how to make a keylogger, you'll need to figure out what language. For beginners I recommend Visual Basic .Net. Learn about SMTP mailing, and keyboard hooks. Then learn about filesplitting. There are plenty of guides on this forum, just search around! [img]http://img841.imageshack.us/img841/5366/ivebeeninfected1.png[/img] [img]http://img651.imageshack.us/img651/7591/whatdoido.png[/img] Firstly, you are in the wrong section. You'll want to head over to the White-Hat Help section. You can either post there, or post in the Hijack This section to get help from a professional HJT Helper. * - Impurity - Apr 29, 2011 [img]http://img857.imageshack.us/img857/5821/conclusionv.png[/img] Well, this tutorial was a lot longer than I anticipated, it spans from two posts and covers everything you could possibly need to know about keylogging. Hopefully this will help some people out and will reduce the amount of pointless threads in this section. If this tutorial helped you, please post what you thought of it! If you have a suggestion, feel free to PM or post here. I also wanna give a big thank you to Kom for the graphics! Once again, if you need anything let me know! Thanks for reading! * - Kom - Apr 29, 2011 Finaly we were able to finish this ^^ lol Hope people apreciate this. * - NatserLives - Apr 29, 2011 Good guide keep up the good work * - Impurity - Apr 29, 2011 Thank you, glad you liked it! * - tux1 - Apr 29, 2011 Good guide and well organised, I would also say that a downside to keyloggers is that your info for the email/ftp account is held in the server so some clever person could decrypt it and steal all your logs. * - Impurity - Apr 29, 2011 That's a hazard with all malware. You can get someones IP via a RAT. * - akshaybz - Apr 29, 2011 Great guide bro.. you might have spent loads of time in it.. keep up good work :) * - Fake. - Apr 29, 2011 Shit graphics are shit, kom :P Nice guide for new kids, though. If you fix the grammar/spelling errors and clear a few of your points up this should hopefully reduce the number of repeated questions. Also, add a Where can I find a keylogger? answer, since that has been an increasingly popular question over the past two weeks :) * - kiss gaozhou - Apr 29, 2011 LOVE IT ;p you should make a short guild for how to use a keylogger for less gifted people that just joined the forums <AKA: IDIOTS***> * - Impurity - Apr 29, 2011 I don't understand your suggestion @kiss gaozhou. @Fake, yeah, Kom's pretty bad xD <3 (jk). Also, take a look at the "What is a good keylogger", pretty much the same thing. * - Fake. - Apr 29, 2011 (Apr 29, 2011 04:39 PM)Impurity Wrote: @Fake, yeah, Kom's pretty bad xD <3 (jk). Also, take a look at the "What is a good keylogger", pretty much the same thing.[/color] I was thinking more along the lines of Where can I find keyloggers? In this goddamn section, idiot. But whatever you say :P * - Impurity - Apr 29, 2011 Aha! I figure if they can't figure that out, they shouldn't use a computer. -.-;; * - Kom - Apr 29, 2011 Well... Bite me -.- Least I helped write it -.- lol besides, my bad grammar is my own.. that's how you know its origional ;) |