ich hab mal versucht das
"Client Based Packet Injection in Silkroad"
nach zu bauen.
Da ich die express Version von Visual C++ habe, konnte ich das nicht zu 100% nach bauen. Bei "namespace Win32Gui" hab ich das so gemacht:
Code:
namespace Win32Gui { //INT_PTR CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) //{ // switch(uMsg) // { // case WM_INITDIALOG: // { // } // break; // case WM_COMMAND: // { // int button = LOWORD(wParam); // switch(button) // { // case IDCANCEL: // { // PostQuitMessage(0); // } break; // case IDC_BUTTON1: // { // Packet::TPacket * sitPacket = new Packet::TPacket; // sitPacket->size = 1; // sitPacket->opcode = 0x7017; // sitPacket->data[0] = 0x04; // Packet::SendPacket(sitPacket); // } break; // } // } break; // default: // { // return FALSE; // } // } // return TRUE; //} DWORD WINAPI GuiThread(LPVOID lpParam) { //HWND hwnd = CreateDialog(gInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc); //MSG Msg = {0}; //while(GetMessage(&Msg, NULL, 0, 0) > 0) //{ // if(!IsDialogMessage(hwnd, &Msg)) // { // TranslateMessage(&Msg); // DispatchMessage(&Msg); // } //} Sleep(60000); //while(true){ Packet::TPacket * sitPacket = new Packet::TPacket; sitPacket->size = 1; sitPacket->opcode = 0x7017; sitPacket->data[0] = 0x04; Packet::SendPacket(sitPacket); //} return 0; } void Setup() { CreateThread(0, 0, GuiThread, 0, 0, 0); } }
--------------------------------------------------------------------------
english
hello and sorry for my english ,
i have tried the
"Client Based Packet Injection in Silkroad"
but i have visual c++ express edition, and i can't create resources. at "namespace Win32Gui" i do it so (look code above).
after 60 sec. the code shoult send the packet. but it happen nothing (in game). is the packet invalid or the packet is not sendig because the code?