service pack??
D3d9 Mid-Function [ Windows XP ]
A little Instruction .
Mid-Function hook can be founded in d3d9.dll which located on Windws/System32
We can hook with it .
Code:DrawIndexPrimitive: 4FF51658 , vTable[82] BeginScene: 4FF514B8,VTable[41] EndScene: 4FF514D8 ,VTable[42] pDevice: 4FDE6C28
service pack??
[img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]
Here's a D3D mouse I found while searching for some nice d3d things.
In your endscene or present put this:Code:void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){ D3DRECT rec; rec.x1 = x; rec.x2 = x + w; rec.y1 = y; rec.y2 = y + h; pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0); } void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice){ POINT myCursor; GetCursorPos(&myCursor); DrawRect(myCursor.x,myCursor.y,30,1,color,pDevice); DrawRect(myCursor.x+1,myCursor.y,28,1,color,pDevice); DrawRect(myCursor.x+2,myCursor.y,26,1,color,pDevice); DrawRect(myCursor.x+3,myCursor.y,24,1,color,pDevice); DrawRect(myCursor.x+4,myCursor.y,22,1,color,pDevice); DrawRect(myCursor.x+5,myCursor.y,20,1,color,pDevice); DrawRect(myCursor.x+6,myCursor.y,18,1,color,pDevice); DrawRect(myCursor.x,myCursor.y,1,30,color,pDevice); DrawRect(myCursor.x,myCursor.y+1,1,28,color,pDevice); DrawRect(myCursor.x,myCursor.y+2,1,26,color,pDevice); DrawRect(myCursor.x,myCursor.y+3,1,24,color,pDevice); DrawRect(myCursor.x,myCursor.y+4,1,22,color,pDevice); DrawRect(myCursor.x,myCursor.y+5,1,20,color,pDevice); DrawRect(myCursor.x,myCursor.y+6,1,18,color,pDevice); }
Credits-Code:DrawMouse(Blue,pDevice);
Solify
Reflex- (04-16-2012)
Is there an Image on how this looks like
Saw some nice stuff.
I'm currently looking for a simple spammer for WarRock,
i tried this ;
if(Spammer)
{
keybd_event('I'),0,0,0);
keybd_event('A'),0,0,0);
keybd_event('M'),0,0,0);
keybd_event('A'),0,0,0);
keybd_event('H'),0,0,0);
keybd_event('A'),0,0,0);
keybd_event('C'),0,0,0);
keybd_event('K'),0,0,0);
keybd_event('E'),0,0,0);
keybd_event('R'),0,0,0);
keybd_event('Z'),0,0,0);
keybd_event('Z'),0,0,0);
sleep(20);
}
but this isn't gonna work becuase of the lagg, i know this is maybe in the wrong section but i can't find help anywhere else.
The best.
Back on the 30th of september.
WarRock Contributer Force
My hacks are only for WarRock International!
can I share this here?
anyone wanna share what can be improved to help me? please?
Exe file:Code:#include <iostream> #include <windows.h> using namespace std; int main() { int x,y,principle, add,sub,multi,ball,div; ball = 0; system("color a"); cout<<"Thankyou for using this simple arithmetic calculator! - Allaroundgames"<<endl; cin.get(); cout<<"input number: "; cin>>x; cout<<"input number: "; cin>>y; cout<< endl; cout<<"choose your principle add = 1, sub = 2, multi = 3, div = 4 : "; add = 1; sub = 2; multi = 3; div = 4; while (ball == 0) { cin>> principle; if (principle == add) { x+y; cout<<endl<<"answer: "<<x+y<<endl<<endl; system("PAUSE"); system("cls"); cout<<"input number: "; cin>>x; cout<<"input number: "; cin>>y; cout<< endl; cout<<"choose your principle add = 1, sub = 2, multi = 3, div = 4 : "; add = 1; sub = 2; multi = 3; } if (principle == sub) { x-y; cout<<endl<<"answer: "<<x-y<<endl<<endl; system("PAUSE"); system("cls"); cout<<"input number: "; cin>>x; cout<<"input number: "; cin>>y; cout<< endl; cout<<"choose your principle add = 1, sub = 2, multi = 3, div = 4 : "; add = 1; sub = 2; multi = 3; } if (principle == multi) { x*y; cout<<endl<<"answer: "<<x*y<<endl<<endl; system("PAUSE"); system("cls"); cout<<"input number: "; cin>>x; cout<<"input number: "; cin>>y; cout<< endl; cout<<"choose your principle add = 1, sub = 2, multi = 3, div = 4 : "; add = 1; sub = 2; multi = 3; } if (principle == div) { x/y; cout<<endl<<"answer: "<<x/y<<endl<<endl; system("PAUSE"); system("cls"); cout<<"input number: "; cin>>x; cout<<"input number: "; cin>>y; cout<< endl; cout<<"choose your principle add = 1, sub = 2, multi = 3, div = 4 : "; add = 1; sub = 2; multi = 3; } } return 0; }
Calculator.exe - Jotti's malware scan
https://www.virustotal.com/file/e2da...is/1341447922/
Rar Archive thats holding the Exe file:
Calculator.rar - Jotti's malware scan
https://www.virustotal.com/file/99cb...is/1341448129/
Belongs to C++ Snippets thread.
Moved.
You need to download a compiler to make this calculator there are many free compilers but there are many premium compilers what u pay a lot of money!!!!
To create a 2 numbered calculator use this
Code:#include <stdio.h> #include <stdlib.h> int main() { int num = 0; printf("Please Enter a number"); scanf ("%i", &num); printf("%i", num); int num2 = 0; printf("Please Enter a second number"); scanf ("%i", &num2); printf("%i", num + num2); return 0; }
Code:LRESULT CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { HWND cboShutdown_After; const char *Shutdown_After[] = { "Shutdown After","Restart After" }; switch(uMsg) { case WM_INITDIALOG: cboShutdown_After = GetDlgItem(hwndDlg, IDD_Shutdown_After_CBO); for(int Count = 0; Count < 2; Count++) { SendMessage(cboShutdown_After, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>((LPCTSTR)Shutdown_After[Count])); } SendMessage(cboShutdown_After, CB_SETCURSEL, 0, 0); break; case WM_CLOSE: EndDialog(hwndDlg, 0); return TRUE; case WM_COMMAND: switch(LOWORD(wParam)) { case IDD_Shutdown_After_CBO: // If the combo box sent the message, switch(HIWORD(wParam)) // Find out what message it was { case 1: // i have two strings in my dropdown list, "Shutdown after & Restart After" , what i need to put beside the case to have //function when user click one of the string to execute something with the messagebox? MessageBox(hwndDlg, "Thanks for using!", "Information", MB_ICONINFORMATION); break; case 2: // This means that the list is about to display MessageBox(hwndDlg, "Thanks for using!!", "Information", MB_ICONINFORMATION); break; case CBN_CLOSEUP: break; } break; /* * TODO: Add more control ID's, when needed. */ case IDC_BTN_QUIT: EndDialog(hwndDlg, 0); return TRUE; case IDC_BTN_APPLY: MessageBox(hwndDlg, "Thanks for using!", "Information", MB_ICONINFORMATION); return TRUE; } }
THE MOST SCARIEST AND EXCITED PART IN CODING IS 【DEBUGGING】.
Snippet: Read/Write to Memory
Keywords: ReadProcessMemory, Memory, WriteProcessMemory, C++, Trainer, Hack
Code:/* ################################################################################################## # Simple Memory Writing/Reading by Inmate # # Credits: -InSanE- # # Example how to use it: # # DWORD PATCHBYTE[] = {0x12,0x34,0x56,0x78}; # # WriteExterninMemory("Call of Duty®: Modern Warfare® 3 Multiplayer",0x123456, *PATCHBYTE); # ################################################################################################## */ #include <Windows.h> #include <iostream> void WriteInternInMemory(DWORD dwOldAdress, DWORD dwNewAdress){ //use this function in your injected .dll when you want to patch some adress :) (intern) DWORD oldProtect; if(VirtualProtect((void*)dwOldAdress, sizeof(dwNewAdress), PAGE_EXECUTE_READWRITE, &oldProtect)){ memcpy((void*)dwOldAdress, &dwNewAdress, sizeof(dwNewAdress)); VirtualProtect((void*)dwOldAdress, sizeof(dwNewAdress), oldProtect, &oldProtect); } } void WriteExterninMemory(LPCSTR WindowName, DWORD dwOldValue, DWORD dwNewValue){ DWORD dwPid; HWND hWnd; HANDLE ProcHandle; hWnd = FindWindowA(NULL,WindowName); while(!hWnd){ hWnd = FindWindowA(NULL,WindowName); Sleep(1000); } if (GetWindowThreadProcessId(hWnd, &dwPid)){ ProcHandle = OpenProcess(PROCESS_VM_WRITE |PROCESS_VM_OPERATION,false,dwPid); } if(ProcHandle != 0){ WriteProcessMemory(ProcHandle,(LPVOID)dwOldValue,&dwNewValue,sizeof(dwNewValue),NULL); } } void ReadExterninMemory(LPCSTR WindowName, DWORD dwAdresstoRead, DWORD dwStoreAdress){ DWORD dwPid; HWND hWnd; HANDLE ProcHandle; hWnd = FindWindowA(NULL,WindowName); while(!hWnd){ hWnd = FindWindowA(NULL,WindowName); Sleep(1000); } if (GetWindowThreadProcessId(hWnd, &dwPid)){ ProcHandle = OpenProcess(PROCESS_VM_READ |PROCESS_VM_OPERATION,false,dwPid); } if(ProcHandle != 0){ ReadProcessMemory(ProcHandle,(LPVOID)dwAdresstoRead,&dwStoreAdress,sizeof(dwStoreAdress),NULL); } }
Allows the use of va-args without any other arguments passed (ie SomeFunction(...)), and the second counts the number of arguments.
Code:#define im_va_start(ap) {\ __asm push eax\ __asm mov eax, ebp\ __asm add eax, 8h\ __asm mov ap, eax\ __asm pop eax\ } #define im_va_count(ap, num, t) {\ for(num = 0; *(t*)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) > 0; ++num){ }\ --num;\ im_va_start(argptr);\ }
^ Function overloading was created to avoid this hackery.
Otherwise you should use an initializer_list. If you have multiple types, use an initializer_list of tuples.
Also, Why not #define.
Snippet Name : AeriaAVA
Key Words : CIN , COUT xD
Code:#include <iostream> #include <string> using namespace std; class MPGH{ public: string y; void Name(string y){ myname = y; } string Set(){ return myname; } private: string myname; }; int main() { MPGH Ahmed; Ahmed.Name("AeriaAVA"); cout << Ahmed.Set() << endl; system("PAUSE"); return 0; }
For when type safety isn't important, such as using a function definition to allow you to pass any parameters, error check depending on other characteristics. It's very dependant on the situation, normally va-args are bad.
Also, I guess I have to post a snippet, strcmp with length param.Code:struct foo { const char* name; void (*fn)(...); };
Also AeriaAvA, instead of declaring using namespace std on a global scope, it's okay if you put it into local scopes such as your main function or your class.Code:bool strcmp(char* str1, char* str2, uint length) { for(uint i = 0; i < length; ++i) { if(*str1++ != *str2++) return false; } return true; }
Last edited by [implicit]; 10-30-2012 at 10:46 PM.