|
What I've been working on- Keylogger
|
|
03-27-2010, 08:45 AM
(This post was last modified: 03-27-2010 08:46 AM by MC'.)
Post: #1
|
|||
|
|||
|
What I've been working on- Keylogger
Hey guys
I know most of the code here isn't purely malicious, but I figure I would post what I'm working on. I also just programmed a binder using the UpdateResource api complete with a configuration file to support different files types. If you guys want to see it, express interest or PM me Heres the code. Obviously, the final version won't be visible. I put it in a console window for now It logs keys, but its not completed. I still need to use a system for naming files (See below, just made a snippet to work with time). I need to find a way to upload logs, to prevent multiple instances, and hopefully add some more hooks and modify the registry Code: /*I think I'm going to name logs based on the day and time. I put the snippet at the end of the other code. I've run into a few roadblocks. I cant seem to get a working global hook on the message queue, which would handle changes to the clipboard and foreground window. My code also won't install for all users, as the registry key would not add to HKEY_LOCAL_MACHINE feel free to comments/criticism/help |
|||
|
03-27-2010, 11:02 AM
Post: #2
|
|||
|
|||
|
RE: What I've been working on- Keylogger
Pretty good so far, Try this for upload
http://www.chilkatsoft.com/ftp-library.asp . "Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
03-27-2010, 03:16 PM
Post: #3
|
|||
|
|||
|
RE: What I've been working on- Keylogger
Makes me warm inside, great work!
|
|||
|
03-28-2010, 12:58 AM
Post: #4
|
|||
|
|||
|
RE: What I've been working on- Keylogger
Good idea to use logs based on the day and time. I like the way that you used for handling. I skimmed through code and
i don't get all parts well, but my personal opinion is positive, it is good. There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
03-28-2010, 07:34 AM
(This post was last modified: 03-28-2010 07:40 AM by PoZHx.)
Post: #5
|
|||
|
|||
|
RE: What I've been working on- Keylogger
There plenty of error in your code
Your not defining your API's with A or W... Makes it pain to change when your porting it Your to do list: Don't show hidden files (registry) Why not just learn how to make a keylogger and hook NtQueryDirectoryFile and filter out your file there? Prevent multiple instances CreateMutexA/W http://msdn.microsoft.com/en-us/library/...S.85).aspx Clipboard OpenClipboard() http://msdn.microsoft.com/en-us/library/...85%29.aspx System profile What? Upload Learn Winsock and sent it using SMTP Your hide file is not going to help much/at all Also you have alot of unnecessary code just wasting memory! Also you have some weird coding lol RegSetValueExA((HKEY)key.....) Why you sending a HKEY cast when the variable "key" is already HKEY Also you have no sort of protection against keeping it undetected from AV's how do you expect it to keep undetected.. My SAH Tool would eat this keylogger for breakfast! Why did you even post your code with so many mistake took me like 5mins to fix your programming mistakes! Once you've cleaned up your code then i'll give you some good suggestions for you to research up My website http://www.DarkHook.net Programming Languages:
|
|||
|
03-28-2010, 08:42 AM
Post: #6
|
|||
|
|||
|
RE: What I've been working on- Keylogger
If it is 6.0 then there is no need for him to declare with A/W
|
|||
|
03-28-2010, 08:48 AM
Post: #7
|
|||
|
|||
RE: What I've been working on- Keylogger
(03-28-2010 08:42 AM)FreckleS Wrote: If it is 6.0 then there is no need for him to declare with A/W I don't have Visual C++ 6.0 but it should be using A and W for API's and MC should still define it as A/W in his programming so people with different compiler can compile it without changing code My website http://www.DarkHook.net Programming Languages:
|
|||
|
03-28-2010, 01:23 PM
Post: #8
|
|||
|
|||
|
RE: What I've been working on- Keylogger
Thanks for all the positive feedback guys! I'll be sure to post the code I as make improvements
(03-28-2010 07:34 AM)PoZHx Wrote: Why did you even post your code with so many mistake I am aware that there are mistakes. I am not the most experienced c++ programmer, and by taking on a large project and fixing my mistakes I'm becoming more experienced I appreciate the fact that you are providing me help. I have put a good amount of time into programming what I have there, so please don't treat me like I'm throwing garbage at you (03-28-2010 07:34 AM)PoZHx Wrote: Your to do list: For uploading, why would you prefer winsock and sending with SMTP over uploading via ftp? I've never done either, but having seen some ftp code, it looks fairly simple Also, could you elaborate on what you mean by protecting it against AV's to keep it UD? Ill have to look into mutex functions and hooking NtQueryDirectoryFile. I'm not sure how important hiding the files would be, as much as the function. Would you know a way to hide the function? I wasn't really intending to turn it into a keylogger-rootkit morph, but hiding files and processes would certainly be a nice addition Also, when I said "system profile," I just meant that Id collect as much info about the user as I could on the first run, and write it to the first log. Anyway, Ill keep on programming. Id like to remind you once again that I'm not a terribly experienced c++ programmer, so try to make the comments more constructive than critical |
|||
|
03-28-2010, 01:42 PM
Post: #9
|
|||
|
|||
|
RE: What I've been working on- Keylogger
If you use FTP then the account details can easily be reversed/discovered. By using a connection such as a TCP you can simply create a request to a php file and the php code can actually write the contents to a file on the server.
PHP Code: Code: <?phpThen simply create the request. I don't have TCP example on me atm but a simple HTTP request works fine. Code: Dim req As Net.HttpWebRequest
|
|||
|
03-28-2010, 08:58 PM
Post: #10
|
|||
|
|||
|
RE: What I've been working on- Keylogger
Here is something i found on the net (I am not so good at C++). This is example of way of uploading file on FTP server... The only "tricky" thing is CkUpload.h which i dont have in default dev c++ environment... On my opinion CkUpload.h contains information about custom variables used in the program down there...
Code: #include <iostream>Read rules ![]()
|
|||
|
« Next Oldest | Next Newest »
|






![[Image: pgsig copy.png]](http://projectghostt.com/images/pgsig copy.png)

