Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

how to bind .exe, .reg and .bat files together


ghost's Avatar
0 0

Hello all the members of this site,

i've a keylogger code in 'c' language which can mail the logged keys to a particular e-mail id. But it doesn't have the code to mark its entry into registries so it doesn't starts on reboot. So as a solution i made a .reg file and a .bat file. .reg will mark its entry into registries and .bat has the code to copy the .exe to system32 and to run the .reg. Since its my first time to use binders, and during experiments i found that if i bind .exe and .bat, on running the final .exe….my .bat doesn't execute. So will i've to convert this .bat to .exe ??? if yes, then please give a link for such converter also…..yesterday i spent at least 2 hrs to get "exescript" (.bat to .exe converter), but wasn't able to crack it. and what about the .reg file. It too has to be converted or will work as such only??? (.bat + .exe + .reg = binder.exe)

regards


ghost's Avatar
0 0

You could always write some assembly with Win32 API calls (perhaps a shell function like ShellExecute ;) ) and convert it to shellcode for your C program and call it with a function pointer.


Mr_Cheese's Avatar
0 1

why not just add a system call and use the reg command?

surely that be the most logical and easist approach.


ghost's Avatar
0 0

In C++;

#include <cstdlib>
#include <iostream>

int main(int argc, char *argv[])
{
    system("echo FTW");
    return 0;
}

Although, I don't see why you would use a batch file, when you could simply access the registry directly via some handy APIs written into the Win32 library.

Or, if you want to get real technical, find a way to attach your keylogger to the kernel, instead of startup. :)

Assuming, this is for legitimate purposes. Such as you're on Tech Support in a school, and you want to spy on your students.


ghost's Avatar
0 0

use the system(" "); call to put the bat in as part of the program


ghost's Avatar
0 0

Hello all, sorry for replying so late. Actually for a week i was suffering from typhoid and malaria, so could not reply. Thanks for the suggestions. ok i could use the "system()" function instead of .bat file. (not comfortable with win API's…..can't code). But one more issue is there. When i use .reg file, on execution, it asks twice about writing to registries and then the ACK of that. Obviously i don't want this. I was looking around for some ready-made remote keylogger but i suppose my google skills are not that good. Would any one like to suggest something on .reg and keylogger.

and thanks for that "Quick batch…". I downloaded it and searched for its crack. Its working fine.

regards Frozen