├── README.md ├── Source ├── CRC.h ├── Pointer.h ├── MultiMs.h └── MyFuction.h ├── Script ├── Full_.h ├── Hurt_.h ├── Dingua_.h ├── GiFon_.h ├── HumanLr_.h ├── XY_Fix.h ├── WalkFast_.h ├── DoubleShoot_.h ├── ControlHunUnP_.h ├── HumTempControl_.h ├── ControlHumanSide_.h ├── KiKiTelePort.h ├── OverAttack_.h └── MobLrControl_.h ├── CrackShield.res ├── VMProtectSDK32.lib ├── VMProtectSDK.h ├── CsForm.h ├── CrackShield.cbproj.local ├── MyFuction.h ├── CrackShield.cbproj ├── LICENSE └── CsForm.cpp /README.md: -------------------------------------------------------------------------------- 1 | # CrackShield-MapleStory-Hack 2 | -------------------------------------------------------------------------------- /Source/CRC.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Source/CRC.h -------------------------------------------------------------------------------- /Script/Full_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/Full_.h -------------------------------------------------------------------------------- /Script/Hurt_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/Hurt_.h -------------------------------------------------------------------------------- /CrackShield.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/CrackShield.res -------------------------------------------------------------------------------- /Script/Dingua_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/Dingua_.h -------------------------------------------------------------------------------- /Script/GiFon_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/GiFon_.h -------------------------------------------------------------------------------- /Script/HumanLr_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/HumanLr_.h -------------------------------------------------------------------------------- /Script/XY_Fix.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/XY_Fix.h -------------------------------------------------------------------------------- /Source/Pointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Source/Pointer.h -------------------------------------------------------------------------------- /Script/WalkFast_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/WalkFast_.h -------------------------------------------------------------------------------- /VMProtectSDK32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/VMProtectSDK32.lib -------------------------------------------------------------------------------- /Script/DoubleShoot_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/DoubleShoot_.h -------------------------------------------------------------------------------- /Script/ControlHunUnP_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/ControlHunUnP_.h -------------------------------------------------------------------------------- /Script/HumTempControl_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/HumTempControl_.h -------------------------------------------------------------------------------- /Script/ControlHumanSide_.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aaaddress1/CrackShield-MapleStory-Hack/HEAD/Script/ControlHumanSide_.h -------------------------------------------------------------------------------- /Script/KiKiTelePort.h: -------------------------------------------------------------------------------- 1 | // TWMS151.2 KIKI 2 | long KiKiTelePortSw; 3 | long KiKiXY[2]; 4 | void __declspec(naked) KiKiTelePortHook(){ 5 | VMProtectBegin("KiKiTelePortHook"); 6 | asm{ 7 | cmp [KiKiTelePortSw],ebx 8 | je NoKiKi 9 | mov [esi+0x67A4],ebx 10 | mov ebx,[ebp-0x8] 11 | sub ebx,3000 12 | mov [esi+0x0067B4],ebx 13 | mov ebx,[KiKiXY+0x0] 14 | mov [esi+0x67A4],ebx 15 | mov ebx,[KiKiXY+0x4] 16 | mov [esi+0x67A8],ebx 17 | xor ebx,ebx 18 | cmp [LevUpMode],02 19 | je KiKiMain 20 | mov [KiKiTelePortSw],ebx 21 | KiKiMain: 22 | push 0x0969D90 23 | ret 24 | NoKiKi: 25 | push 0x096A085 26 | ret 27 | } 28 | VMProtectEnd(); 29 | } 30 | -------------------------------------------------------------------------------- /Script/OverAttack_.h: -------------------------------------------------------------------------------- 1 | //ndfa 150.2 2 | long NodelayHookCallO1 = 0x042189f; 3 | long NodelayUseID =00; 4 | long NDFASW = 00; 5 | long NodelayFinalSkillIcsRet = 00; 6 | 7 | void __declspec(naked) OverAttackNodelay(){ 8 | VMProtectBegin("OverAttackNodelay"); 9 | asm{ 10 | mov eax,[eax+0x4] 11 | lea ecx,[ebp-0x10] 12 | mov [ebp-0x8],eax 13 | call NodelayHookCallO1 14 | xor edi,edi 15 | push [NodelayUseID] 16 | pop [esi+0x5F54] 17 | push 0x0939D8F 18 | ret 19 | } 20 | VMProtectEnd(); 21 | } 22 | 23 | long SetNodelayHookAdr = (long)OverAttackNodelay; 24 | 25 | void __declspec(naked) NodelayFinalSkillHook(){ 26 | #ifdef VMProtectSDK 27 | VMProtectBegin("_RecvPacketHook"); 28 | #endif 29 | asm{ 30 | cmp [esp+0x24],0x0939D7F //8b 40 04 8d 4d f0 89 45 f8 e8 ?? ?/ ?/ ?? 33 ff [2/2] 31 | jne Return 32 | cmp [NDFASW],00 33 | je Return 34 | push [SetNodelayHookAdr] 35 | pop [esp+0x24] 36 | Return: 37 | Jmp dword ptr [NodelayFinalSkillIcsRet] 38 | } 39 | #ifdef VMProtectSDK 40 | VMProtectEnd(); 41 | #endif 42 | } 43 | 44 | 45 | -------------------------------------------------------------------------------- /Script/MobLrControl_.h: -------------------------------------------------------------------------------- 1 | //MobLrControl TWMS151.2 2 | bool MobLROnOff=00; 3 | long NextX; 4 | void __declspec(naked) MobLR(){ 5 | VMProtectBegin("MobLR"); 6 | asm{ 7 | Push Eax 8 | cmp [MobLROnOff],0 9 | je Return 10 | Cmp [Ecx+0x0002A8], 01 11 | Je Control 12 | Cmp [Ecx+0x0002A8], 03 13 | Je Control 14 | Jmp Return 15 | 16 | Control: 17 | and [Ecx+0x0000FC], 00000000 18 | Mov Eax, [NextX] 19 | sub eax,10 20 | inc [Ecx+0x0000FC] 21 | Cmp [Ecx+0x0006A4], Eax 22 | Jl Return 23 | sub [Ecx+0x0000FC],02 24 | Cmp [Ecx+0x0006A4], Eax 25 | Jg Return 26 | Return: 27 | cmp [LevUpMode],02 28 | je StartKiKiHum 29 | TrueNormalAdr: 30 | Pop Eax 31 | Push 0x09C3A30 // 55 8B EC 51 53 56 57 FF 75 08 32 | Ret 33 | 34 | StartKiKiHum: 35 | cmp [ecx+0x2a8],01 36 | je StartMain 37 | cmp [ecx+0x2a8],03 38 | je StartMain 39 | jmp TrueNormalAdr 40 | StartMain: 41 | mov eax,[ecx+0x6a4] 42 | sub eax,32 43 | mov [KiKiXY+0x0],eax 44 | mov eax,[ecx+0x6a8] 45 | mov [KiKiXY+0x4],eax 46 | mov [KiKiTelePortSw],01 47 | jmp TrueNormalAdr 48 | } 49 | VMProtectEnd(); 50 | } 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /VMProtectSDK.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef _WIN64 4 | #pragma comment(lib, "VMProtectSDK64.lib") 5 | #else 6 | #pragma comment(lib, "VMProtectSDK32.lib") 7 | #endif 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | // protection 14 | __declspec(dllimport) void __stdcall VMProtectBegin(const char *); 15 | __declspec(dllimport) void __stdcall VMProtectBeginVirtualization(const char *); 16 | __declspec(dllimport) void __stdcall VMProtectBeginMutation(const char *); 17 | __declspec(dllimport) void __stdcall VMProtectBeginUltra(const char *); 18 | __declspec(dllimport) void __stdcall VMProtectBeginVirtualizationLockByKey(const char *); 19 | __declspec(dllimport) void __stdcall VMProtectBeginUltraLockByKey(const char *); 20 | __declspec(dllimport) void __stdcall VMProtectEnd(void); 21 | __declspec(dllimport) BOOL __stdcall VMProtectIsDebuggerPresent(BOOL); 22 | __declspec(dllimport) BOOL __stdcall VMProtectIsVirtualMachinePresent(void); 23 | __declspec(dllimport) BOOL __stdcall VMProtectIsValidImageCRC(void); 24 | __declspec(dllimport) char * __stdcall VMProtectDecryptStringA(const char *value); 25 | __declspec(dllimport) wchar_t * __stdcall VMProtectDecryptStringW(const wchar_t *value); 26 | 27 | // licensing 28 | enum VMProtectSerialStateFlags 29 | { 30 | SERIAL_STATE_FLAG_CORRUPTED = 0x00000001, 31 | SERIAL_STATE_FLAG_INVALID = 0x00000002, 32 | SERIAL_STATE_FLAG_BLACKLISTED = 0x00000004, 33 | SERIAL_STATE_FLAG_DATE_EXPIRED = 0x00000008, 34 | SERIAL_STATE_FLAG_RUNNING_TIME_OVER = 0x00000010, 35 | SERIAL_STATE_FLAG_BAD_HWID = 0x00000020, 36 | SERIAL_STATE_FLAG_MAX_BUILD_EXPIRED = 0x00000040, 37 | }; 38 | #pragma pack(push, 1) 39 | typedef struct 40 | { 41 | WORD wYear; 42 | BYTE bMonth; 43 | BYTE bDay; 44 | } VMProtectDate; 45 | typedef struct 46 | { 47 | INT nState; // VMProtectSerialStateFlags 48 | wchar_t wUserName[256]; // user name 49 | wchar_t wEMail[256]; // email 50 | VMProtectDate dtExpire; // date of serial number expiration 51 | VMProtectDate dtMaxBuild; // max date of build, that will accept this key 52 | INT bRunningTime; // running time in minutes 53 | BYTE nUserDataLength; // length of user data in bUserData 54 | BYTE bUserData[255]; // up to 255 bytes of user data 55 | } VMProtectSerialNumberData; 56 | 57 | #pragma pack(pop) 58 | __declspec(dllimport) INT __stdcall VMProtectSetSerialNumber(const char * SerialNumber); 59 | __declspec(dllimport) INT __stdcall VMProtectGetSerialNumberState(); 60 | __declspec(dllimport) BOOL __stdcall VMProtectGetSerialNumberData(VMProtectSerialNumberData *pData, UINT nSize); 61 | __declspec(dllimport) INT __stdcall VMProtectGetCurrentHWID(char * HWID, UINT nSize); 62 | 63 | #ifdef __cplusplus 64 | } 65 | #endif 66 | -------------------------------------------------------------------------------- /Source/MultiMs.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | typedef NTSTATUS (NTAPI *NtQuerySystemInformation_t) (SYSTEM_INFORMATION_CLASS SystemInformationClass, PVOID SystemInformation, ULONG SystemInformationLength, PULONG ReturnLength); 5 | typedef NTSTATUS (NTAPI *NtQueryObject_t) (HANDLE Handle, OBJECT_INFORMATION_CLASS ObjectInformationClass, PVOID ObjectInformation, ULONG ObjectInformationLength, PULONG ReturnLength); 6 | 7 | struct SYSTEM_HANDLE_INFORMATION 8 | { 9 | DWORD pid; 10 | BYTE type; 11 | BYTE flags; 12 | WORD handle; 13 | DWORD object; 14 | DWORD access; 15 | }; 16 | 17 | typedef struct _OBJECT_NAME_INFORMATION { 18 | ::UNICODE_STRING Name; 19 | } OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION; 20 | 21 | bool EnableMultiMS() 22 | { 23 | int handleCount = 1024; 24 | 25 | HMODULE ntdll = GetModuleHandleW(L"ntdll"); 26 | if (ntdll == NULL) 27 | { 28 | //Log(L"Couldn't get ntdll handle\n"); 29 | return false; 30 | } 31 | 32 | NtQueryObject_t ntQO = (NtQueryObject_t)GetProcAddress(ntdll, "NtQueryObject"); 33 | NtQuerySystemInformation_t ntQSI = (NtQuerySystemInformation_t)GetProcAddress(ntdll, "NtQuerySystemInformation"); 34 | if (ntQO == NULL || ntQSI == NULL) 35 | { 36 | //Log(L"Couldn't find procedures for MultiMS (%x / %x)\n", ntQO, ntQSI); 37 | return false; 38 | } 39 | 40 | struct HandleInfoSet 41 | { 42 | unsigned int count; 43 | SYSTEM_HANDLE_INFORMATION handles[1]; 44 | }; 45 | 46 | HandleInfoSet *infoSet = (HandleInfoSet *)malloc(4 + sizeof(SYSTEM_HANDLE_INFORMATION) * handleCount); 47 | DWORD length; 48 | 49 | NTSTATUS status = ntQSI((SYSTEM_INFORMATION_CLASS)16, infoSet, 4 + sizeof(SYSTEM_HANDLE_INFORMATION) * handleCount, &length); 50 | 51 | //Log(L"alloc with %i // %i\n", handleCount, handleCount * sizeof(SYSTEM_HANDLE_INFORMATION) + 4); 52 | 53 | while (status == 0xc0000004) //STATUS_INFO_LENGTH_MISMATCH 54 | { 55 | free(infoSet); 56 | 57 | handleCount *= 2; 58 | 59 | //Log(L"alloc with %i // %i\n", handleCount, handleCount * sizeof(SYSTEM_HANDLE_INFORMATION) + 4); 60 | infoSet = (HandleInfoSet *)malloc(4 + sizeof(SYSTEM_HANDLE_INFORMATION) * handleCount); 61 | status = ntQSI((SYSTEM_INFORMATION_CLASS)16, infoSet, 4 + sizeof(SYSTEM_HANDLE_INFORMATION) * handleCount, &length); 62 | } 63 | 64 | if (status != 0) //STATUS_SUCCESS 65 | { 66 | //Log(L"Failed to enumerate handles open by this process (errorcode %x)\n", status); 67 | free(infoSet); 68 | return false; 69 | } 70 | 71 | for (unsigned int i = 0; i < infoSet->count; i++) 72 | { 73 | wchar_t nameBuffer[1024]; 74 | if (infoSet->handles[i].handle ==(signed) 0x0012019F) continue; // some buggy thing we need to skip 75 | status = ntQO((HANDLE)infoSet->handles[i].handle, (OBJECT_INFORMATION_CLASS)1, nameBuffer, 1024, &length); 76 | if (status != 0) //STATUS_SUCCESS 77 | continue; 78 | 79 | if (wcsstr(nameBuffer + 4, L"WvsClientMtx") != NULL) 80 | { 81 | HANDLE handle; 82 | DuplicateHandle(GetCurrentProcess(), (HANDLE)infoSet->handles[i].handle, 0, &handle, 0, FALSE, DUPLICATE_CLOSE_SOURCE); 83 | CloseHandle(handle); 84 | //Log(L"Mutex closed, MultiMS is ok\n"); 85 | break; 86 | } 87 | } 88 | 89 | free(infoSet); 90 | return true; 91 | } 92 | -------------------------------------------------------------------------------- /CsForm.h: -------------------------------------------------------------------------------- 1 | //--------------------------------------------------------------------------- 2 | 3 | #ifndef CsFormH 4 | #define CsFormH 5 | //--------------------------------------------------------------------------- 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | //--------------------------------------------------------------------------- 17 | class TCrackShieldMainForm : public TForm 18 | { 19 | __published: // IDE-managed Components 20 | TLabel *Status; 21 | TButton *RecSave; 22 | TPageControl *PageControl; 23 | TTabSheet *TabSheet1; 24 | TGroupBox *HurtSetGroup; 25 | TCheckBox *NoHurt; 26 | TCheckBox *ZeroHurt; 27 | TCheckBox *HurtHalf; 28 | TGroupBox *ArrestGroup; 29 | TCheckBox *Arrest; 30 | TCheckBox *Reach180; 31 | TGroupBox *BaseFuction; 32 | TCheckBox *StopMob; 33 | TCheckBox *DoubleShoot; 34 | TCheckBox *SuperSkill; 35 | TCheckBox *RollNodelay; 36 | TCheckBox *MobNoAttackCB; 37 | TCheckBox *FinalAttackNodelay; 38 | TCheckBox *AutoPick; 39 | TCheckBox *MobLr; 40 | TCheckBox *StupidMob; 41 | TCheckBox *Fullsw; 42 | TCheckBox *WalkSpeedUp; 43 | TGroupBox *HpMpProtect; 44 | TCheckBox *HpProtect; 45 | TEdit *HpSetCount; 46 | TComboBox *HpKeyCombo; 47 | TCheckBox *MpProtect; 48 | TEdit *MpSetCount; 49 | TComboBox *MpKeyCombo; 50 | TTabSheet *TabSheet2; 51 | TGroupBox *LevUpModeGroup; 52 | TLabel *Tip1; 53 | TRadioButton *VacLevUp; 54 | TRadioButton *FullMapLevUp; 55 | TRadioButton *KikiLevUp; 56 | TCheckBox *FarGo; 57 | TEdit *BlockPickTime; 58 | TGroupBox *KeyGroup; 59 | TCheckBox *KeyCb1; 60 | TEdit *KeyBlcokTime1; 61 | TComboBox *ComboBoxKey1; 62 | TCheckBox *KeyCb2; 63 | TEdit *KeyBlcokTime2; 64 | TComboBox *ComboBoxKey2; 65 | TCheckBox *KeyCb3; 66 | TEdit *KeyBlcokTime3; 67 | TComboBox *ComboBoxKey3; 68 | TCheckBox *KeyCb4; 69 | TEdit *KeyBlcokTime4; 70 | TComboBox *ComboBoxKey4; 71 | TCheckBox *KeyCb5; 72 | TEdit *KeyBlcokTime5; 73 | TComboBox *ComboBoxKey5; 74 | TCheckBox *KeyCb6; 75 | TEdit *KeyBlcokTime6; 76 | TComboBox *ComboBoxKey6; 77 | TCheckBox *KeyCb7; 78 | TEdit *KeyBlcokTime7; 79 | TComboBox *ComboBoxKey7; 80 | TCheckBox *KeyCb8; 81 | TEdit *KeyBlcokTime8; 82 | TComboBox *ComboBoxKey8; 83 | TTabSheet *TabSheet3; 84 | TListBox *BlackItemList; 85 | TLabel *ItemFocusStatus; 86 | TButton *AddBlackItem; 87 | TButton *DeleteOne; 88 | TButton *ClearList; 89 | void __fastcall FormCreate(TObject *Sender); 90 | void __fastcall NoHurtClick(TObject *Sender); 91 | void __fastcall ZeroHurtClick(TObject *Sender); 92 | void __fastcall HurtHalfClick(TObject *Sender); 93 | void __fastcall ArrestClick(TObject *Sender); 94 | void __fastcall SuperSkillClick(TObject *Sender); 95 | void __fastcall RollNodelayClick(TObject *Sender); 96 | void __fastcall MobNoAttackCBClick(TObject *Sender); 97 | void __fastcall FinalAttackNodelayClick(TObject *Sender); 98 | void __fastcall AutoPickClick(TObject *Sender); 99 | void __fastcall MobLrClick(TObject *Sender); 100 | void __fastcall RegKeyBoardHook(); 101 | void __fastcall StupidMobClick(TObject *Sender); 102 | void __fastcall FullswClick(TObject *Sender); 103 | void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose); 104 | void __fastcall WalkSpeedUpClick(TObject *Sender); 105 | void __fastcall StopMobClick(TObject *Sender); 106 | void __fastcall HpSetCountChange(TObject *Sender); 107 | void __fastcall MpSetCountChange(TObject *Sender); 108 | void __fastcall HpKeyComboChange(TObject *Sender); 109 | void __fastcall MpKeyComboChange(TObject *Sender); 110 | void __fastcall RecSaveClick(TObject *Sender); 111 | void __fastcall KeyCb1Click(TObject *Sender); 112 | void __fastcall KeyCb2Click(TObject *Sender); 113 | void __fastcall KeyCb3Click(TObject *Sender); 114 | void __fastcall KeyCb4Click(TObject *Sender); 115 | void __fastcall KeyCb5Click(TObject *Sender); 116 | void __fastcall KeyCb6Click(TObject *Sender); 117 | void __fastcall KeyCb7Click(TObject *Sender); 118 | void __fastcall KeyCb8Click(TObject *Sender); 119 | void __fastcall KeyBlcokTime1Change(TObject *Sender); 120 | void __fastcall KeyBlcokTime2Change(TObject *Sender); 121 | void __fastcall KeyBlcokTime3Change(TObject *Sender); 122 | void __fastcall KeyBlcokTime4Change(TObject *Sender); 123 | void __fastcall KeyBlcokTime5Change(TObject *Sender); 124 | void __fastcall KeyBlcokTime6Change(TObject *Sender); 125 | void __fastcall KeyBlcokTime7Change(TObject *Sender); 126 | void __fastcall KeyBlcokTime8Change(TObject *Sender); 127 | void __fastcall ComboBoxKey1Change(TObject *Sender); 128 | void __fastcall ComboBoxKey2Change(TObject *Sender); 129 | void __fastcall ComboBoxKey3Change(TObject *Sender); 130 | void __fastcall ComboBoxKey4Change(TObject *Sender); 131 | void __fastcall ComboBoxKey5Change(TObject *Sender); 132 | void __fastcall ComboBoxKey6Change(TObject *Sender); 133 | void __fastcall ComboBoxKey7Change(TObject *Sender); 134 | void __fastcall ComboBoxKey8Change(TObject *Sender); 135 | void __fastcall FarGoClick(TObject *Sender); 136 | void __fastcall FullMapLevUpClick(TObject *Sender); 137 | void __fastcall VacLevUpClick(TObject *Sender); 138 | void __fastcall KikiLevUpClick(TObject *Sender); 139 | void __fastcall Reach180Click(TObject *Sender); 140 | private: // User declarations 141 | public: // User declarations 142 | __fastcall TCrackShieldMainForm(TComponent* Owner); 143 | }; 144 | //--------------------------------------------------------------------------- 145 | extern PACKAGE TCrackShieldMainForm *CrackShieldMainForm; 146 | //--------------------------------------------------------------------------- 147 | #endif 148 | -------------------------------------------------------------------------------- /CrackShield.cbproj.local: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 2012/11/21 18:57:17.000.045,=C:\Users\Adr\Documents\RAD Studio\Projects\File1.cpp 5 | 2012/11/21 18:57:49.000.443,C:\Users\Adr\Desktop\新破盾\File1.cpp=C:\Users\Adr\Documents\RAD Studio\Projects\File1.cpp 6 | 2012/11/21 18:57:52.000.585,C:\Users\Adr\Desktop\新破盾\Project2.cbproj=C:\Users\Adr\Documents\RAD Studio\Projects\Project2.cbproj 7 | 2012/11/21 19:00:59.000.375,C:\Users\Adr\Desktop\新破盾\File1.cpp= 8 | 2012/11/21 19:01:17.000.277,C:\Users\Adr\Desktop\新破盾\CrackShield.cbproj=C:\Users\Adr\Desktop\新破盾\Project2.cbproj 9 | 2012/11/21 19:01:23.000.981,=C:\Users\Adr\Desktop\新破盾\Unit1.cpp 10 | 2012/11/21 19:04:27.000.072,C:\Users\Adr\Desktop\新破盾\CsForm.h=C:\Users\Adr\Desktop\新破盾\Unit1.h 11 | 2012/11/21 19:04:27.000.072,C:\Users\Adr\Desktop\新破盾\CsForm.cpp=C:\Users\Adr\Desktop\新破盾\Unit1.cpp 12 | 2012/11/21 19:04:27.000.072,C:\Users\Adr\Desktop\新破盾\CsForm.dfm=C:\Users\Adr\Desktop\新破盾\Unit1.dfm 13 | 2012/11/21 19:05:31.000.060,=C:\Users\Adr\Desktop\新破盾\Source\Pointer.h 14 | 2012/11/21 19:07:11.000.752,C:\Users\Adr\Desktop\新破盾\File1.dfm=C:\Users\Adr\Desktop\新破盾\CsForm.dfm 15 | 2012/11/21 19:07:11.000.752,C:\Users\Adr\Desktop\新破盾\File1.h=C:\Users\Adr\Desktop\新破盾\CsForm.h 16 | 2012/11/21 19:07:11.000.752,C:\Users\Adr\Desktop\新破盾\File1.cpp=C:\Users\Adr\Desktop\新破盾\CsForm.cpp 17 | 2012/11/21 19:07:22.000.726,C:\Users\Adr\Desktop\新破盾\CsForm.dfm=C:\Users\Adr\Desktop\新破盾\File1.dfm 18 | 2012/11/21 19:07:22.000.726,C:\Users\Adr\Desktop\新破盾\CsForm.cpp=C:\Users\Adr\Desktop\新破盾\File1.cpp 19 | 2012/11/21 19:07:22.000.726,C:\Users\Adr\Desktop\新破盾\CsForm.h=C:\Users\Adr\Desktop\新破盾\File1.h 20 | 2012/11/21 19:08:27.000.846,=C:\Users\Adr\Desktop\新破盾\MyFuction.h 21 | 2012/11/21 19:08:34.000.305,C:\Users\Adr\Desktop\新破盾\MyFuction.h= 22 | 2012/11/21 19:09:01.000.649,=C:\Users\Adr\Desktop\新破盾\Source\MyFuction.h 23 | 2012/11/21 19:19:48.000.003,C:\Users\Adr\Desktop\CsNewVIP\CrackShield.cbproj=C:\Users\Adr\Desktop\新破盾\CrackShield.cbproj 24 | 2012/11/21 19:24:01.000.686,C:\Users\Adr\Desktop\CsNewVIP\MyFuction.h=C:\Users\Adr\Desktop\新破盾\Source\MyFuction.h 25 | 2012/11/21 19:24:10.000.774,C:\Users\Adr\Desktop\CsNewVIP\CrackShield.cbproj=C:\Users\Adr\Desktop\CsNewVIP\CrackShield.cbproj 26 | 2012/11/21 19:24:23.000.345,C:\Users\Adr\Desktop\CsNewVIP\Source\Pointer.h=C:\Users\Adr\Desktop\新破盾\Source\Pointer.h 27 | 2012/11/21 19:25:46.000.700,C:\Users\Adr\Desktop\新破盾\CsForm.cpp= 28 | 2012/11/21 19:25:54.000.649,=C:\Users\Adr\Desktop\CsNewVIP\CsForm.cpp 29 | 2012/11/21 19:26:12.000.599,=C:\Users\Adr\Desktop\CsNewVIP\Source\CRC.h 30 | 2012/11/21 19:26:12.000.611,=C:\Users\Adr\Desktop\CsNewVIP\Source\MultiMs.h 31 | 2012/11/21 19:26:12.000.626,=C:\Users\Adr\Desktop\CsNewVIP\Source\MyFuction.h 32 | 2012/11/21 19:37:47.000.280,=C:\Users\Adr\Desktop\CsNewVIP\Script\Dingua_.h 33 | 2012/11/21 19:37:47.000.370,=C:\Users\Adr\Desktop\CsNewVIP\Script\OverAttack_.h 34 | 2012/11/21 19:37:47.000.338,=C:\Users\Adr\Desktop\CsNewVIP\Script\HumTempControl_.h 35 | 2012/11/21 19:37:47.000.234,=C:\Users\Adr\Desktop\CsNewVIP\Script\ControlHumanSide_.h 36 | 2012/11/21 19:37:47.000.400,=C:\Users\Adr\Desktop\CsNewVIP\Script\XY_Fix.h 37 | 2012/11/21 19:37:47.000.299,=C:\Users\Adr\Desktop\CsNewVIP\Script\DoubleShoot_.h 38 | 2012/11/21 19:37:47.000.303,=C:\Users\Adr\Desktop\CsNewVIP\Script\Full_.h 39 | 2012/11/21 19:37:47.000.266,=C:\Users\Adr\Desktop\CsNewVIP\Script\ControlHunUnP_.h 40 | 2012/11/21 19:37:47.000.390,=C:\Users\Adr\Desktop\CsNewVIP\Script\WalkFast_.h 41 | 2012/11/21 19:37:47.000.318,=C:\Users\Adr\Desktop\CsNewVIP\Script\GiFon_.h 42 | 2012/11/21 19:37:47.000.333,=C:\Users\Adr\Desktop\CsNewVIP\Script\HumanLr_.h 43 | 2012/11/21 19:37:47.000.458,=C:\Users\Adr\Desktop\CsNewVIP\Script\芲郎.vmp 44 | 2012/11/21 19:37:47.000.357,=C:\Users\Adr\Desktop\CsNewVIP\Script\MobLrControl_.h 45 | 2012/11/21 19:37:47.000.376,=C:\Users\Adr\Desktop\CsNewVIP\Script\SS_Mouse.h 46 | 2012/11/21 19:37:47.000.352,=C:\Users\Adr\Desktop\CsNewVIP\Script\Hurt_.h 47 | 2012/11/21 19:38:17.000.942,C:\Users\Adr\Desktop\CsNewVIP\Script\芲郎.vmp= 48 | 2012/11/26 23:20:35.000.770,C:\Users\Adr\Desktop\CsNewVIP\MyFuction.h= 49 | 2012/11/29 22:37:10.000.196,C:\Users\Adr\Desktop\CsNewVIP\Script\KiKiTelePort.h=C:\Users\Adr\Desktop\CsNewVIP\Script\SS_Mouse.h 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /MyFuction.h: -------------------------------------------------------------------------------- 1 | #pragma hdrstop 2 | #include 3 | #include 4 | #include 5 | #define JMP(from, to) (int)(((int)to - (int)from) - 5); 6 | //--------------------------------------------------------------------------- 7 | /* 8 | 9 | long GetVkCodeByString(String StringName){ 10 | long GetKeyCode = NULL; 11 | if (StringName=="A") 12 | GetKeyCode = ('A'); 13 | else if (StringName=="B") 14 | GetKeyCode = ('B'); 15 | else if (StringName=="C") 16 | GetKeyCode = ('C'); 17 | else if (StringName=="D") 18 | GetKeyCode = ('D'); 19 | else if (StringName=="E") 20 | GetKeyCode = ('E'); 21 | else if (StringName=="F") 22 | GetKeyCode = ('F'); 23 | else if (StringName=="G") 24 | GetKeyCode = ('G'); 25 | else if (StringName=="H") 26 | GetKeyCode = ('H'); 27 | else if (StringName=="I") 28 | GetKeyCode = ('I'); 29 | else if (StringName=="J") 30 | GetKeyCode = ('J'); 31 | else if (StringName=="K") 32 | GetKeyCode = ('K'); 33 | else if (StringName=="L") 34 | GetKeyCode = ('L'); 35 | else if (StringName=="M") 36 | GetKeyCode = ('M'); 37 | else if (StringName=="N") 38 | GetKeyCode = ('N'); 39 | else if (StringName=="O") 40 | GetKeyCode = ('O'); 41 | else if (StringName=="P") 42 | GetKeyCode = ('P'); 43 | else if (StringName=="Q") 44 | GetKeyCode = ('Q'); 45 | else if (StringName=="R") 46 | GetKeyCode = ('R'); 47 | else if (StringName=="S") 48 | GetKeyCode = ('S'); 49 | else if (StringName=="T") 50 | GetKeyCode = ('T'); 51 | else if (StringName=="U") 52 | GetKeyCode = ('U'); 53 | else if (StringName=="V") 54 | GetKeyCode = ('V'); 55 | else if (StringName=="W") 56 | GetKeyCode = ('W'); 57 | else if (StringName=="X") 58 | GetKeyCode = ('X'); 59 | else if (StringName=="Y") 60 | GetKeyCode = ('Y'); 61 | else if (StringName=="Z") 62 | GetKeyCode = ('Z'); 63 | else if (StringName=="Ctrl") 64 | GetKeyCode = (VK_CONTROL); 65 | else if (StringName=="Alt") 66 | GetKeyCode = (VK_MENU); 67 | else if (StringName=="Shift") 68 | GetKeyCode = (VK_SHIFT); 69 | else if (StringName=="End") 70 | GetKeyCode = (VK_END); 71 | else if (StringName=="Delete") 72 | GetKeyCode = (VK_DELETE); 73 | else if (StringName=="Insert") 74 | GetKeyCode = (VK_INSERT); 75 | else if (StringName=="Page Up") 76 | GetKeyCode = (VK_PRIOR); 77 | else if (StringName=="Page Down") 78 | GetKeyCode = (VK_NEXT); 79 | else if (StringName=="Home") 80 | GetKeyCode = (VK_HOME); 81 | else if (StringName=="Space") 82 | GetKeyCode = (VK_SPACE); 83 | else if (StringName=="F1") 84 | GetKeyCode = (VK_F1); 85 | else if (StringName=="F2") 86 | GetKeyCode = (VK_F2); 87 | else if (StringName=="F3") 88 | GetKeyCode = (VK_F3); 89 | else if (StringName=="F4") 90 | GetKeyCode = (VK_F4); 91 | else if (StringName=="F5") 92 | GetKeyCode = (VK_F5); 93 | else if (StringName=="F6") 94 | GetKeyCode = (VK_F6); 95 | else if (StringName=="F7") 96 | GetKeyCode = (VK_F7); 97 | else if (StringName=="F8") 98 | GetKeyCode = (VK_F8); 99 | else if (StringName=="F9") 100 | GetKeyCode = (VK_F9); 101 | else if (StringName=="F10") 102 | GetKeyCode = (VK_F10); 103 | else if (StringName=="F11") 104 | GetKeyCode = (VK_F11); 105 | else if (StringName=="F12") 106 | GetKeyCode = (VK_F12); 107 | else if (StringName=="Up") 108 | GetKeyCode = (VK_UP); 109 | else if (StringName=="Left") 110 | GetKeyCode = (VK_LEFT); 111 | else if (StringName=="Down") 112 | GetKeyCode = (VK_DOWN); 113 | return GetKeyCode; 114 | } 115 | */ 116 | 117 | void MEMwrite(PVOID address, void* val, int bytes) 118 | { 119 | DWORD d, ds; 120 | VirtualProtect(address, bytes, PAGE_EXECUTE_READWRITE, &d); 121 | memcpy(address, val, bytes); 122 | VirtualProtect(address,bytes,d,&ds); 123 | } 124 | 125 | 126 | long GetValue(int Adr) 127 | { 128 | try { 129 | return *(DWORD*)(Adr) ; 130 | } catch (...) { 131 | return 0 ; 132 | } 133 | } 134 | 135 | void Delay(unsigned int mSec ) 136 | { 137 | unsigned int StartTime,CheckTime; 138 | StartTime=timeGetTime(); 139 | do 140 | { 141 | CheckTime=timeGetTime(); 142 | Sleep(100); 143 | Application->ProcessMessages(); 144 | } 145 | while ( ( CheckTime - StartTime ) <= mSec ) ; 146 | } 147 | 148 | 149 | long MakeKeyLParam(unsigned int Key, unsigned int Flag) 150 | { 151 | if (Flag == WM_KEYUP) { 152 | return 0xC000001 + (MapVirtualKey(Key, 0) % 0x100) * 0x10000; 153 | } else { 154 | return 0x0000001 + (MapVirtualKey(Key, 0) % 0x100) * 0x10000; 155 | } 156 | } 157 | void PressKey(HWND handle,DWORD Key){ 158 | PostMessage(handle,WM_KEYDOWN,Key,MakeKeyLParam(Key,WM_KEYDOWN)); 159 | PostMessage(handle,WM_KEYUP,Key,MakeKeyLParam(Key,WM_KEYUP)); 160 | } 161 | 162 | 163 | bool WritePointer(DWORD BaseAddress, DWORD Offset, DWORD Value) 164 | { 165 | try{ 166 | *(DWORD*)(*(DWORD*)(BaseAddress) + Offset) = Value; 167 | return true; 168 | } catch(...) { 169 | return false; 170 | } 171 | } 172 | 173 | DWORD ReadPointer(DWORD BaseAddress, DWORD Offset) 174 | { 175 | try{ 176 | return *(DWORD*)(*(DWORD*)(BaseAddress) + Offset); 177 | } catch(...) { 178 | return 0; 179 | } 180 | } 181 | 182 | DWORD GetThreadIDByProcssID(DWORD dwProcessID) 183 | { 184 | DWORD dwThreadID = 0; 185 | THREADENTRY32 te32 = {sizeof(te32)}; 186 | HANDLE hThreadSnap = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD,dwProcessID); 187 | if( Thread32First( hThreadSnap, &te32) ) 188 | { 189 | do{ 190 | if( dwProcessID == te32.th32OwnerProcessID && te32.th32ThreadID != GetCurrentThreadId())//?里新加了te32.th32ThreadID != GetCurrentThreadId()遍??程?不用?前?程,要不一?呼不出界面 191 | { 192 | dwThreadID = te32.th32ThreadID; 193 | break; 194 | } 195 | }while( Thread32Next( hThreadSnap, &te32) ); 196 | } 197 | 198 | return dwThreadID; 199 | } 200 | 201 | 202 | void WriteValue(long adr,int value){ 203 | DWORD OldProtection; 204 | VirtualProtect((LPVOID)adr,0x4,PAGE_EXECUTE_READWRITE, &OldProtection); 205 | *(int*)(adr)=value; 206 | VirtualProtect((LPVOID)adr,0x4,OldProtection, &OldProtection); 207 | } 208 | 209 | 210 | void Jump(unsigned long ulAddress, void* Function, unsigned long ulNops){ 211 | try { 212 | *(unsigned char*)ulAddress = 0xE9; 213 | *(unsigned long*)(ulAddress + 1) = JMP(ulAddress, Function); 214 | memset((void*)(ulAddress + 5), 0x90, ulNops); 215 | } catch (...) {} 216 | } 217 | 218 | // 利用物品編號取得物品名稱 150.2 219 | DWORD GetItemNameCall = 0x0594c1f; //e8 ? ? ? ? c6 45 ? ? be 00 10 00 00 220 | char* __declspec(naked) __stdcall GetItemNameByItemId(DWORD ItemId) 221 | { 222 | VMProtectBegin("GetItemNameByItemId"); 223 | __asm 224 | { 225 | push ebp 226 | mov ebp,esp 227 | push ecx // tmpMem 228 | push ebx 229 | push ecx 230 | push edi 231 | mov ebx,[ebp+0x08] 232 | mov ecx,[0x0e181e4] //8b 35 ?? ?? ?? ?? 89 75 ec 3b f3 0f 84 233 | push ebx 234 | lea eax,[ebp-0x04] 235 | push eax 236 | xor edi,edi 237 | call dword ptr [GetItemNameCall] 238 | mov eax,[ebp-0x04] 239 | pop edi 240 | pop ecx 241 | pop ebx 242 | mov esp,ebp 243 | pop ebp 244 | ret 0x0004 245 | } 246 | VMProtectEnd(); 247 | } 248 | 249 | //=================================================================== 250 | void PrintStr(String ShowStr,int PrintColor){ 251 | VMProtectBegin("PrintStr");//150.2 252 | //00:白色 01:綠色 02:粉紅色 03:橘色 04:淺粉紅 05:淺綠 06:灰色 253 | //07:黃色 08:淺黃色 09:藍色 0A:灰白底黑字 0B:淺粉紅 0C:灰藍底藍字 254 | char * ShowPrint = AnsiString(ShowStr).c_str(); 255 | try{ 256 | if(*(long*)0x0E1CD58 == 0)return; 257 | long ShowTextCall= 0x0867fc2; //8b 0d ? ? ? ? 50 e8 ? ? ? ? c9 c3 258 | __asm{ 259 | Push 0 260 | Push 0 261 | Push 0 262 | Push -1 263 | Push PrintColor 264 | Push &ShowPrint 265 | mov ecx,[0x0E1CD58] 266 | Call dword ptr [ShowTextCall] 267 | } 268 | } 269 | catch(...){} 270 | VMProtectEnd(); 271 | } 272 | //==========================按鍵handle get ================================= 273 | 274 | class Data{ 275 | public: 276 | HWND hwnd; 277 | DWORD PID; 278 | String ClassName; 279 | }; 280 | 281 | bool CALLBACK MyEnumProc(HWND hwnd, LPARAM lParam ){ 282 | DWORD tempPID,i; 283 | char tempClassName[1000]; 284 | Data *Correct = (Data*)lParam; 285 | GetWindowThreadProcessId(hwnd, &tempPID); 286 | GetClassNameA(hwnd,tempClassName, 1000); 287 | if(Correct -> PID != tempPID) 288 | return 1; 289 | if(strcmp(AnsiString(Correct->ClassName).c_str(),tempClassName)) 290 | return 1; 291 | Correct -> hwnd = hwnd; 292 | return 0; 293 | } 294 | 295 | HWND PIDGetHWND(DWORD MyPID){ 296 | Data Correct; 297 | Correct.PID = MyPID; 298 | Correct.ClassName = "MapleStoryClass"; 299 | Correct.hwnd = 0; 300 | EnumWindows((WNDENUMPROC)MyEnumProc, (LPARAM)&Correct); 301 | return Correct.hwnd; 302 | } 303 | //========================================================================= 304 | 305 | -------------------------------------------------------------------------------- /Source/MyFuction.h: -------------------------------------------------------------------------------- 1 | #pragma hdrstop 2 | #include 3 | #include 4 | #include 5 | #define JMP(from, to) (int)(((int)to - (int)from) - 5); 6 | //--------------------------------------------------------------------------- 7 | 8 | bool PebIsDebuggedApproach(){ 9 | char result = 0; 10 | __asm{ 11 | mov eax, fs:[30h] 12 | mov al, BYTE PTR [eax + 2] 13 | mov result, al 14 | } 15 | return result != 0; 16 | } 17 | bool PebNtGlobalFlagsApproach(){ 18 | int result = 0; 19 | __asm{ 20 | mov eax, fs:[30h] 21 | mov eax, [eax + 68h] 22 | and eax, 0x70 23 | mov result, eax 24 | } 25 | return (result != 0); 26 | } 27 | 28 | 29 | String HexEncode(AnsiString Str) { 30 | unsigned char *s = Str.c_str(); 31 | int l = strlen(s); 32 | char *result = new char[l << 1 + 1]; 33 | for (int i = 0; i < l; i++) { 34 | sprintf(result+i*2, "%.2X", s[i]); 35 | } 36 | String R = result; 37 | delete result; 38 | return R; 39 | } 40 | 41 | long GetVkCodeByString(String StringName){ 42 | long GetKeyCode = NULL; 43 | if (StringName=="A") 44 | GetKeyCode = ('A'); 45 | else if (StringName=="B") 46 | GetKeyCode = ('B'); 47 | else if (StringName=="C") 48 | GetKeyCode = ('C'); 49 | else if (StringName=="D") 50 | GetKeyCode = ('D'); 51 | else if (StringName=="E") 52 | GetKeyCode = ('E'); 53 | else if (StringName=="F") 54 | GetKeyCode = ('F'); 55 | else if (StringName=="G") 56 | GetKeyCode = ('G'); 57 | else if (StringName=="H") 58 | GetKeyCode = ('H'); 59 | else if (StringName=="I") 60 | GetKeyCode = ('I'); 61 | else if (StringName=="J") 62 | GetKeyCode = ('J'); 63 | else if (StringName=="K") 64 | GetKeyCode = ('K'); 65 | else if (StringName=="L") 66 | GetKeyCode = ('L'); 67 | else if (StringName=="M") 68 | GetKeyCode = ('M'); 69 | else if (StringName=="N") 70 | GetKeyCode = ('N'); 71 | else if (StringName=="O") 72 | GetKeyCode = ('O'); 73 | else if (StringName=="P") 74 | GetKeyCode = ('P'); 75 | else if (StringName=="Q") 76 | GetKeyCode = ('Q'); 77 | else if (StringName=="R") 78 | GetKeyCode = ('R'); 79 | else if (StringName=="S") 80 | GetKeyCode = ('S'); 81 | else if (StringName=="T") 82 | GetKeyCode = ('T'); 83 | else if (StringName=="U") 84 | GetKeyCode = ('U'); 85 | else if (StringName=="V") 86 | GetKeyCode = ('V'); 87 | else if (StringName=="W") 88 | GetKeyCode = ('W'); 89 | else if (StringName=="X") 90 | GetKeyCode = ('X'); 91 | else if (StringName=="Y") 92 | GetKeyCode = ('Y'); 93 | else if (StringName=="Z") 94 | GetKeyCode = ('Z'); 95 | else if (StringName=="Ctrl") 96 | GetKeyCode = (VK_CONTROL); 97 | else if (StringName=="Alt") 98 | GetKeyCode = (VK_MENU); 99 | else if (StringName=="Shift") 100 | GetKeyCode = (VK_SHIFT); 101 | else if (StringName=="End") 102 | GetKeyCode = (VK_END); 103 | else if (StringName=="Delete") 104 | GetKeyCode = (VK_DELETE); 105 | else if (StringName=="Insert") 106 | GetKeyCode = (VK_INSERT); 107 | else if (StringName=="Page Up") 108 | GetKeyCode = (VK_PRIOR); 109 | else if (StringName=="Page Down") 110 | GetKeyCode = (VK_NEXT); 111 | else if (StringName=="Home") 112 | GetKeyCode = (VK_HOME); 113 | else if (StringName=="Space") 114 | GetKeyCode = (VK_SPACE); 115 | else if (StringName=="F1") 116 | GetKeyCode = (VK_F1); 117 | else if (StringName=="F2") 118 | GetKeyCode = (VK_F2); 119 | else if (StringName=="F3") 120 | GetKeyCode = (VK_F3); 121 | else if (StringName=="F4") 122 | GetKeyCode = (VK_F4); 123 | else if (StringName=="F5") 124 | GetKeyCode = (VK_F5); 125 | else if (StringName=="F6") 126 | GetKeyCode = (VK_F6); 127 | else if (StringName=="F7") 128 | GetKeyCode = (VK_F7); 129 | else if (StringName=="F8") 130 | GetKeyCode = (VK_F8); 131 | else if (StringName=="F9") 132 | GetKeyCode = (VK_F9); 133 | else if (StringName=="F10") 134 | GetKeyCode = (VK_F10); 135 | else if (StringName=="F11") 136 | GetKeyCode = (VK_F11); 137 | else if (StringName=="F12") 138 | GetKeyCode = (VK_F12); 139 | else if (StringName=="Up") 140 | GetKeyCode = (VK_UP); 141 | else if (StringName=="Left") 142 | GetKeyCode = (VK_LEFT); 143 | else if (StringName=="Down") 144 | GetKeyCode = (VK_DOWN); 145 | return GetKeyCode; 146 | } 147 | 148 | 149 | void MEMwrite(PVOID address, void* val, int bytes) 150 | { 151 | DWORD d, ds; 152 | VirtualProtect(address, bytes, PAGE_EXECUTE_READWRITE, &d); 153 | memcpy(address, val, bytes); 154 | VirtualProtect(address,bytes,d,&ds); 155 | } 156 | 157 | 158 | int GetValue(int Adr) 159 | { 160 | try { 161 | return *(DWORD*)(Adr) ; 162 | } catch (...) { 163 | return 0 ; 164 | } 165 | } 166 | 167 | void Delay(unsigned int mSec ) 168 | { 169 | unsigned int StartTime,CheckTime; 170 | StartTime=timeGetTime(); 171 | do 172 | { 173 | CheckTime=timeGetTime(); 174 | Sleep(100); 175 | Application->ProcessMessages(); 176 | } 177 | while ( ( CheckTime - StartTime ) <= mSec ) ; 178 | } 179 | 180 | 181 | long MakeKeyLParam(unsigned int Key, unsigned int Flag) 182 | { 183 | if (Flag == WM_KEYUP) { 184 | return 0xC000001 + (MapVirtualKey(Key, 0) % 0x100) * 0x10000; 185 | } else { 186 | return 0x0000001 + (MapVirtualKey(Key, 0) % 0x100) * 0x10000; 187 | } 188 | } 189 | void PressKey(HWND handle,DWORD Key,bool UpAndDown){ 190 | PostMessage(handle,WM_KEYDOWN,Key,MakeKeyLParam(Key,WM_KEYDOWN)); 191 | if (UpAndDown) {PostMessage(handle,WM_KEYUP,Key,MakeKeyLParam(Key,WM_KEYUP));} 192 | } 193 | 194 | 195 | bool WritePointer(DWORD BaseAddress, DWORD Offset, DWORD Value) 196 | { 197 | try{ 198 | *(DWORD*)(*(DWORD*)(BaseAddress) + Offset) = Value; 199 | return true; 200 | } catch(...) { 201 | return false; 202 | } 203 | } 204 | 205 | DWORD ReadPointer(DWORD BaseAddress, DWORD Offset) 206 | { 207 | try{ 208 | return *(DWORD*)(*(DWORD*)(BaseAddress) + Offset); 209 | } catch(...) { 210 | return 0; 211 | } 212 | } 213 | 214 | DWORD GetThreadIDByProcssID(DWORD dwProcessID) 215 | { 216 | DWORD dwThreadID = 0; 217 | THREADENTRY32 te32 = {sizeof(te32)}; 218 | HANDLE hThreadSnap = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD,dwProcessID); 219 | if( Thread32First( hThreadSnap, &te32) ) 220 | { 221 | do{ 222 | if( dwProcessID == te32.th32OwnerProcessID && te32.th32ThreadID != GetCurrentThreadId())//?里新加了te32.th32ThreadID != GetCurrentThreadId()遍??程?不用?前?程,要不一?呼不出界面 223 | { 224 | dwThreadID = te32.th32ThreadID; 225 | break; 226 | } 227 | }while( Thread32Next( hThreadSnap, &te32) ); 228 | } 229 | 230 | return dwThreadID; 231 | } 232 | 233 | 234 | void WriteValue(long adr,int value){ 235 | DWORD OldProtection; 236 | VirtualProtect((LPVOID)adr,0x4,PAGE_EXECUTE_READWRITE, &OldProtection); 237 | *(int*)(adr)=value; 238 | VirtualProtect((LPVOID)adr,0x4,OldProtection, &OldProtection); 239 | } 240 | 241 | void AsmJump(const DWORD lpAddress, LPCVOID Function, unsigned Nops) 242 | { 243 | DWORD OldProtection; 244 | VirtualProtect((LPVOID)lpAddress,10,PAGE_EXECUTE_READWRITE, &OldProtection); 245 | *(LPBYTE)lpAddress = 0xE9; 246 | *(LPDWORD)(lpAddress + 1) = JMP(lpAddress, Function); 247 | if ((bool)Nops) 248 | memset(((LPBYTE)lpAddress + 5), 0x90, Nops); 249 | VirtualProtect((LPVOID)lpAddress,10,OldProtection, &OldProtection); 250 | } 251 | 252 | void Jump(unsigned long ulAddress, void* Function, unsigned long ulNops){ 253 | try { 254 | *(unsigned char*)ulAddress = 0xE9; 255 | *(unsigned long*)(ulAddress + 1) = JMP(ulAddress, Function); 256 | memset((void*)(ulAddress + 5), 0x90, ulNops); 257 | } catch (...) {} 258 | } 259 | 260 | // 利用物品編號取得物品名稱 150.2 261 | DWORD GetItemNameCall = 0x0594c1f; //e8 ? ? ? ? c6 45 ? ? be 00 10 00 00 262 | char* __declspec(naked) __stdcall GetItemNameByItemId(DWORD ItemId) 263 | { 264 | VMProtectBegin("GetItemNameByItemId"); 265 | __asm 266 | { 267 | push ebp 268 | mov ebp,esp 269 | push ecx // tmpMem 270 | push ebx 271 | push ecx 272 | push edi 273 | mov ebx,[ebp+0x08] 274 | mov ecx,[0x0e181e4] //8b 35 ?? ?? ?? ?? 89 75 ec 3b f3 0f 84 275 | push ebx 276 | lea eax,[ebp-0x04] 277 | push eax 278 | xor edi,edi 279 | call dword ptr [GetItemNameCall] 280 | mov eax,[ebp-0x04] 281 | pop edi 282 | pop ecx 283 | pop ebx 284 | mov esp,ebp 285 | pop ebp 286 | ret 0x0004 287 | } 288 | VMProtectEnd(); 289 | } 290 | 291 | //=================================================================== 292 | void PrintStr(String ShowStr,int PrintColor){ 293 | VMProtectBegin("PrintStr");//151.2 294 | //00:白色 01:綠色 02:粉紅色 03:橘色 04:淺粉紅 05:淺綠 06:灰色 295 | //07:黃色 08:淺黃色 09:藍色 0A:灰白底黑字 0B:淺粉紅 0C:灰藍底藍字 296 | char * ShowPrint = AnsiString(ShowStr).c_str(); 297 | try{ 298 | if(*(long*)0x0E92358 == 0)return; 299 | long ShowTextCall= 0x089812D; //8b 0d ? ? ? ? 50 e8 ? ? ? ? c9 c3 300 | __asm{ 301 | Push 0 302 | Push 0 303 | Push 0 304 | Push -1 305 | Push PrintColor 306 | Push &ShowPrint 307 | mov ecx,[0x0E92358] 308 | Call dword ptr [ShowTextCall] 309 | } 310 | } 311 | catch(...){} 312 | VMProtectEnd(); 313 | } 314 | //==========================按鍵handle get ================================= 315 | 316 | class Data{ 317 | public: 318 | HWND hwnd; 319 | DWORD PID; 320 | String ClassName; 321 | }; 322 | 323 | bool CALLBACK MyEnumProc(HWND hwnd, LPARAM lParam ){ 324 | DWORD tempPID,i; 325 | char tempClassName[1000]; 326 | Data *Correct = (Data*)lParam; 327 | GetWindowThreadProcessId(hwnd, &tempPID); 328 | GetClassNameA(hwnd,tempClassName, 1000); 329 | if(Correct -> PID != tempPID) 330 | return 1; 331 | if(strcmp(AnsiString(Correct->ClassName).c_str(),tempClassName)) 332 | return 1; 333 | Correct -> hwnd = hwnd; 334 | return 0; 335 | } 336 | 337 | HWND PIDGetHWND(DWORD MyPID){ 338 | Data Correct; 339 | Correct.PID = MyPID; 340 | Correct.ClassName = "MapleStoryClass"; 341 | Correct.hwnd = 0; 342 | EnumWindows((WNDENUMPROC)MyEnumProc, (LPARAM)&Correct); 343 | return Correct.hwnd; 344 | } 345 | //========================================================================= 346 | 347 | -------------------------------------------------------------------------------- /CrackShield.cbproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | {F2802F99-8D57-4F56-8F92-AAD20007DE47} 4 | 13.4 5 | VCL 6 | True 7 | Debug 8 | Win32 9 | 1 10 | Library 11 | 12 | 13 | true 14 | 15 | 16 | true 17 | Base 18 | true 19 | 20 | 21 | true 22 | Base 23 | true 24 | 25 | 26 | true 27 | Cfg_1 28 | true 29 | true 30 | 31 | 32 | true 33 | Base 34 | true 35 | 36 | 37 | <_TCHARMapping>wchar_t 38 | CppDynamicLibrary 39 | Script\;..\新破盾\Source\;..\新破盾\;Source\;..\..\..\Desktop\新破盾\;$(ILINK_LibraryPath) 40 | DataSnapIndy10ServerTransport;bindcompfmx;fmx;rtl;dbrtl;IndySystem;DbxClientDriver;bindcomp;inetdb;DBXInterBaseDriver;DataSnapCommon;DataSnapClient;DataSnapServer;DataSnapProviderClient;xmlrtl;DbxCommonDriver;IndyProtocols;DBXMySQLDriver;dbxcds;soaprtl;bindengine;DBXOracleDriver;CustomIPTransport;dsnap;DBXInformixDriver;fmxase;IndyCore;DBXFirebirdDriver;inet;fmxobj;inetdbxpress;DBXSybaseASADriver;fmxdae;IPIndyImpl;dbexpress;$(PackageImports) 41 | true 42 | System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace) 43 | rtl.lib;vcl.lib;soaprtl.lib;xmlrtl.lib;inet.lib;dsnap.lib;dbrtl.lib;IndyCore.lib;IndySystem.lib;IndyProtocols.lib 44 | Script\;..\新破盾\Source\;..\新破盾\;Source\;..\..\..\Desktop\新破盾\;$(IncludePath) 45 | true 46 | true 47 | JPHNE 48 | true 49 | true 50 | .\$(Platform)\$(Config) 51 | .\$(Platform)\$(Config) 52 | false 53 | true 54 | true 55 | $(BDSLIB)\$(PLATFORM)\release\$(LANGDIR);$(ILINK_TranslatedLibraryPath) 56 | 57 | 58 | vcldbx;frx16;TeeDB;Rave100VCL;vclib;Tee;inetdbbde;DBXOdbcDriver;DBXSybaseASEDriver;ibxpress;vclimg;intrawebdb_120_160;frxDB16;fs16;vclactnband;FMXTee;TeeUI;vcldsnap;bindcompvcl;vcldb;vclie;vcltouch;Intraweb_120_160;DBXDb2Driver;bcbsmp;websnap;vclribbon;frxe16;fsDB16;vcl;DataSnapConnectors;CloudService;DBXMSSQLDriver;CodeSiteExpressPkg;FmxTeeUI;dsnapcon;vclx;webdsnap;bdertl;adortl;bcbie;$(PackageImports) 59 | $(BDSINCLUDE)\windows\vcl;$(IncludePath) 60 | Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace) 61 | 1033 62 | CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments= 63 | true 64 | 65 | 66 | false 67 | true 68 | false 69 | true 70 | _DEBUG;$(Defines) 71 | false 72 | None 73 | DEBUG 74 | true 75 | true 76 | true 77 | true 78 | Full 79 | true 80 | $(BDSLIB)\$(PLATFORM)\debug;$(ILINK_LibraryPath) 81 | $(BDSLIB)\$(PLATFORM)\debug\$(LANGDIR);$(ILINK_TranslatedLibraryPath) 82 | 83 | 84 | rtl.lib;vcl.lib;soaprtl.lib;xmlrtl.lib;inet.lib;dsnap.lib;dbrtl.lib;IndyCore.lib;IndySystem.lib;IndyProtocols.lib 85 | true 86 | false 87 | 1033 88 | false 89 | None 90 | 91 | 92 | NDEBUG;$(Defines) 93 | None 94 | 95 | 96 | 97 |
CrackShieldMainForm
98 | CsForm.h 99 | 2 100 |
101 | 102 | 6 103 | 104 | 105 | 7 106 | 107 | 108 | 8 109 | 110 | 111 | 9 112 | 113 | 114 | 10 115 | 116 | 117 | 11 118 | 119 | 120 | 12 121 | 122 | 123 | 13 124 | 125 | 126 | 14 127 | 128 | 129 | 17 130 | 131 | 132 | 15 133 | 134 | 135 | 16 136 | 137 | 138 | 18 139 | 140 | 141 | 19 142 | 143 | 144 | 2 145 | 146 | 147 | 3 148 | 149 | 150 | 4 151 | 152 | 153 | 5 154 | 155 | 156 | 157 | Cfg_2 158 | Base 159 | 160 | 161 | Base 162 | 163 | 164 | Cfg_1 165 | Base 166 | 167 |
168 | 169 | CPlusPlusBuilder.Personality.12 170 | CppDynamicLibrary 171 | 172 | 173 | 174 | False 175 | False 176 | 1 177 | 0 178 | 0 179 | 0 180 | False 181 | False 182 | False 183 | False 184 | False 185 | 1028 186 | 950 187 | 188 | 189 | 190 | 191 | 1.0.0.0 192 | 193 | 194 | 195 | 196 | 197 | 1.0.0.0 198 | 199 | 200 | 201 | False 202 | True 203 | True 204 | 205 | 206 | Embarcadero C++Builder Office 2000 Servers Package 207 | Embarcadero C++Builder Office XP Servers Package 208 | 209 | 210 | 211 | 212 | True 213 | 214 | 215 | 12 216 | 217 | 218 | 219 |
220 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /CsForm.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #pragma hdrstop 3 | #include 4 | #pragma hdrstop 5 | #include "VMProtectSDK.h" 6 | #include 7 | #include 8 | #include 9 | #pragma comment(lib,"VMProtectSDK32.lib") 10 | #include 11 | #include "CsForm.h" 12 | #pragma package(smart_init) 13 | #pragma resource "*.dfm" 14 | TCrackShieldMainForm *Form;String Path;HINSTANCE dllinst;HHOOK KEYHOOK; 15 | long LoginX,LoginY,LoginMap;String GameChactorId; 16 | long NowHp,NowMp; 17 | long HpSettingLim = 500; 18 | long MpSettingLim = 500; 19 | bool RegPass ; 20 | /*自動補血補魔*/ 21 | long HpSettingKey = VK_HOME; 22 | long MpSettingKey = VK_END; 23 | /*自動練功設置*/ 24 | bool AutoLevUpSw,AutoLevUpLr; 25 | long LastSetWalkTick; 26 | long LrLandFar = 70; 27 | long LrBlockAdditonTime = 15*1000; 28 | long LevUpMode; 29 | /*網路驗證*/ 30 | String PcNum; 31 | String HexKey; 32 | String GetTemp; 33 | 34 | /*自動按鍵*/ 35 | long Key[8] = {'A', 'B', 'C', 'D', 'E', 'F', 'G' , 'H' }; 36 | long KeySetBlockTime[8] = { 60000 , 60000 , 60000 , 60000 , 60000 , 60000 , 60000 , 60000 }; 37 | long KeyTime[8] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }; 38 | bool KeyOnOff[8] = { false , false , false , false , false , false , false , false }; 39 | String CrackShieldVer = "破解之盾v1"; 40 | #include "\..\Source\Pointer.h" 41 | #include "\..\Source\MyFuction.h" 42 | #include "..\\Script\\XY_Fix.h" 43 | #include "..\\Script\\Full_.h" 44 | #include "..\\Script\\OverAttack_.h" 45 | #include "..\\Script\\ControlHunUnP_.h" 46 | #include "..\\Script\\Hurt_.h" 47 | #include "..\\Script\\Dingua_.h" 48 | #include "..\\Script\\GiFon_.h" 49 | #include "..\\Script\\KiKiTelePort.h" 50 | #include "..\\Script\\HumTempControl_.h" 51 | #include "..\\Script\\DoubleShoot_.h" 52 | #include "..\\Script\\HumanLr_.h" 53 | #include "MultiMs.h" 54 | #include "CRC.h" 55 | #include "..\\Script\\WalkFast_.h" 56 | #include "..\\Script\\ControlHumanSide_.h" 57 | #include "..\\Script\\MobLrControl_.h" 58 | //===============================================================================================// 59 | __fastcall TCrackShieldMainForm::TCrackShieldMainForm(TComponent* Owner) : TForm(Owner){} 60 | void __fastcall TCrackShieldMainForm::SuperSkillClick(TObject *Sender){SkillNoDelaySw = ((TCheckBox*)Sender)->Checked *12444 ;} 61 | void __fastcall TCrackShieldMainForm::RollNodelayClick(TObject *Sender){RollItemHookOnOff= ((TCheckBox*)Sender)->Checked *5135135;} 62 | void __fastcall TCrackShieldMainForm::MobNoAttackCBClick(TObject *Sender){MobNoAttack = ((TCheckBox*)Sender)->Checked ;} 63 | void __fastcall TCrackShieldMainForm::FinalAttackNodelayClick(TObject *Sender){NDFASW= ((TCheckBox*)Sender)->Checked ;} 64 | void __fastcall TCrackShieldMainForm::AutoPickClick(TObject *Sender){AutoPickOnOff=((TCheckBox*)Sender)->Checked ;} 65 | void __fastcall TCrackShieldMainForm::MobLrClick(TObject *Sender){NextX=UserXY[0];MobLROnOff=((TCheckBox*)Sender)->Checked ;MobGoSuddenlyOnOff=MobLROnOff;} 66 | void __fastcall TCrackShieldMainForm::StupidMobClick(TObject *Sender){MobStupidOnOff =((TCheckBox*)Sender)->Checked ;} 67 | void __fastcall TCrackShieldMainForm::FullswClick(TObject *Sender){FullSw =((TCheckBox*)Sender)->Checked ;} 68 | void __fastcall TCrackShieldMainForm::FormCloseQuery(TObject *Sender, bool &CanClose){CanClose = false; this->Visible = !this->Visible;} 69 | void __fastcall TCrackShieldMainForm::WalkSpeedUpClick(TObject *Sender){WalkSpeedUpOnOff =((TCheckBox*)Sender)->Checked ;} 70 | void __fastcall TCrackShieldMainForm::StopMobClick(TObject *Sender){Freeze_Switch=((TCheckBox*)Sender)->Checked ;} 71 | void __fastcall TCrackShieldMainForm::HpSetCountChange(TObject *Sender){try {HpSettingLim=((TEdit*)Sender)->Text.ToInt() ;} catch (...) {}} 72 | void __fastcall TCrackShieldMainForm::MpSetCountChange(TObject *Sender){try {MpSettingLim=((TEdit*)Sender)->Text.ToInt() ;} catch (...) {}} 73 | void __fastcall TCrackShieldMainForm::HpKeyComboChange(TObject *Sender){HpSettingKey = GetVkCodeByString(((TComboBox*)Sender)->Text);} 74 | void __fastcall TCrackShieldMainForm::MpKeyComboChange(TObject *Sender){MpSettingKey = GetVkCodeByString(((TComboBox*)Sender)->Text);} 75 | void __fastcall TCrackShieldMainForm::HurtHalfClick(TObject *Sender){HurtLessIcsSW =((TCheckBox*)Sender)->Checked ;} 76 | //===========================================================================================// 77 | DWORD WINAPI CallFormProc(LPVOID lpParameter){ 78 | Form=new TCrackShieldMainForm(Application);Form->ShowModal(); 79 | return true; 80 | } 81 | String GetMyPath() { String PathStr; try {wchar_t chModuleDir[260*2] ;GetModuleFileNameW(dllinst, chModuleDir, 260*2); 82 | PathStr = ExtractFilePath(chModuleDir);return PathStr;} 83 | catch(...) {}return ExtractFilePath(Application->ExeName); 84 | } 85 | 86 | int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved){ 87 | if(reason == DLL_PROCESS_ATTACH){ 88 | dllinst = hinst; 89 | Path = String(GetMyPath()); 90 | CreateThread(NULL,0xFF,CallFormProc,NULL,0,NULL);} 91 | else if(reason == DLL_PROCESS_DETACH) 92 | {ExitProcess(NULL);FreeLibrary(dllinst);} 93 | return true; 94 | } 95 | //=============================================================================================// 96 | void MovHumToXY(int X,int Y){KiKiXY[0]=X;KiKiXY[1]=Y;KiKiTelePortSw = true;} 97 | //===============================================================================================// 98 | DWORD WINAPI AutoRobot(LPVOID lpParameter){ 99 | if (!AutoLevUpSw) { 100 | if ((*(long*)(*(long*)MapIdPointer[0]+MapIdPointer[1]) == LoginMap)) { 101 | MovHumToXY(LoginX,LoginY);AutoLevUpSw = true;LrOnOff=true; 102 | MobLROnOff=true;NextX=LoginX;AutoPickOnOff = true; 103 | switch (LevUpMode) { 104 | case 0:FullMapAttackSw=125; 105 | break; 106 | case 1:MobVacSW=1254; 107 | break; 108 | default: 109 | break; 110 | } 111 | }else{ 112 | PrintStr("[提示]請先於要練功的座標按下[F6]哦!",0x9); 113 | } 114 | }else{ 115 | LrOnOff=false;AutoLevUpSw = false;ControlPeopleSideOnOff=false;MobVacSW=false; 116 | Form->AutoPickClick( Form->AutoPick );FullMapAttackSw=false; 117 | Form->MobLrClick(Form->MobLr); 118 | } 119 | } 120 | 121 | 122 | LRESULT CALLBACK KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam){ 123 | bool bKeyUp = lParam & (1 << 31); 124 | if(bKeyUp && nCode == HC_ACTION) 125 | { 126 | switch(wParam) 127 | { 128 | case VK_F1: 129 | Form->Fullsw->Checked = !Form->Fullsw->Checked;break; 130 | case VK_F2: 131 | Form->StopMob->Checked = !Form->StopMob->Checked;break; 132 | case VK_F3: 133 | Form->WalkSpeedUp->Checked = !Form->WalkSpeedUp->Checked ;break; 134 | case VK_F4: 135 | Form->AutoPick->Checked =!Form->AutoPick->Checked ;break; 136 | case VK_F5: 137 | Form->Visible = !Form->Visible ;break; 138 | case VK_F6: 139 | Form->RecSaveClick(NULL) ;break; 140 | case VK_F7: 141 | CreateThread(NULL,0xFF,AutoRobot,NULL,0,NULL); break; 142 | } 143 | } 144 | return CallNextHookEx(KEYHOOK, nCode, wParam ,lParam); 145 | } 146 | //===============================================================================================// 147 | void __fastcall TCrackShieldMainForm::RegKeyBoardHook(){KEYHOOK = SetWindowsHookEx(WH_KEYBOARD, (HOOKPROC)KeyboardProc, dllinst, GetThreadIDByProcssID(GetCurrentProcessId()));} 148 | 149 | DWORD WINAPI AutoControl(LPVOID lpParameter){ 150 | while (true){ 151 | try { 152 | for (int i = 0; i < 8; i++) { 153 | if ((KeyOnOff[i])&&(KeyTime[i]01) {PressKey(PIDGetHWND(GetCurrentProcessId()),VK_CONTROL,true);} 169 | } 170 | } catch (...) {} 171 | Sleep(100);Application->ProcessMessages() ; 172 | } 173 | } 174 | //=============================================================================================// 175 | DWORD WINAPI HandleAllThingBeforeIntoGame(LPVOID lpParameter){ 176 | if (!DirectoryExists(Path + "\\Data")){CreateDir(Path + "\\Data");} 177 | VMProtectBegin("HandleAllThingBeforeIntoGame"); 178 | Form->Caption = CrackShieldVer +"|"+GetTemp; 179 | //FuckChecking(); 180 | LoadLibrary((Path+"\\CsDt.dll").c_str()); 181 | try { 182 | MEMwrite((void*)0x0976A2D, (void*)"\x90\x90\x90\x90\x90\x90",6);//151.2輔助技無延遲 183 | MEMwrite((void*)0x096A57A, (void*)"\x74\x2A", 2); //151.2精靈直接踢 - 75 2a 8d 45 d4 184 | *(long*)(0x0CF18BC)=(long)GodMode; //151.2無敵 185 | *(long*)0x0CF1888 = (long)FullSetHook; //151.2集氣秒放 186 | *(long*)(0x0CF5924) = (long)ControlHumanSideHook; //151.2人物面向 187 | *(long*)(0x0CF58EC)=0x09B9E3A ; //151.2損寫不退 188 | *(long*)(0x0CF51D8)=(long)MobLR; //151.2控怪 189 | PickNodcICSret = *(long*)0x0E9C594; //151.2函數撿物不斷 190 | *(long*)0x0E9C594 = (long)PickNoDc; //151.2函數撿物不斷 */ 191 | AsmJump( 0x060BBF2,Dingua_Main,1);//151.2 定怪 -39 81 ? ? ? ? 75 ? 39 81 ? ? ? ? 75 ? 39 81 ? ? ? ? 75 ? 83 b9 192 | //*(long*)(0x0E71014)=(long)GiFonIcsHook ; //151.2疾風 193 | 194 | AsmJump( 0x0969D84, KiKiTelePortHook,0);//151.2 KIKITELEPORT 195 | *(long*)0x0C8A1A4= (long)HumTempControl; //150.2人物類暫存散發資料控制 196 | /* AsmJump( 0x09259E7,SkillNoAttackDelaySet,0); //150.2 近戰攻擊無延遲 197 | AsmJump( 0x06149F2,SetNewMobXY,1);//150.2 全圖 198 | AsmJump( 0x0614AEB, ByPassSetMobXY__DcHookSet,1); //150.2 全圖 199 | */ 200 | /*Jump( 0x10A446E ,FakeWalkTime, 0);//150.2人物走路加速 201 | *(long*)0x0C8E200 = (long)CsxAttackNoStop; //150.2 CSX攻擊不停 202 | *(long*)0x00C8E0B4 = (long)WalkSpeedUp; //150.2 走路加速 */ 203 | } catch (...) {} 204 | PostMessage(FindWindow(L"StartUpDlgClass",L"MapleStory"),WM_CLOSE,00,00); 205 | Sleep(5000); 206 | while (!GetValue(SkillActionBase[0])){Sleep(1000);Application->ProcessMessages();} 207 | try { 208 | SkillNodelayIcsRet = *(long*)0x0C71908 ; //151.2[荒野]雙倍+滾筒+取得其他玩家ID 209 | *(long*)0x0C71908 = (long)SkillNoAttackDelayHook; //151.2[荒野]雙倍+滾筒+取得其他玩家ID 210 | /*AutoLoseHpIcsRet =*(long*)(0x00E25E64); //150.2自動扣寫 211 | *(long*)(0x00E25E64)=(long)AutoLoseHp; //150.2自動扣寫 212 | IcsAttackLrRet=*(long*)(0x0E25EC0); //150.2人物左右走 213 | *(long*)(0x0E25EC0)=(long)HumLrIcsHook; //150.2人物左右走 214 | NodelayFinalSkillIcsRet = *(long*)0x0b33098; //150.2終極攻擊無延遲 215 | *(long*)0x0b33098 = (long)NodelayFinalSkillHook; //150.2終極攻擊無延遲 216 | */ 217 | GameChactorId = ((char***)0x0e8d7a0)[0][0x20F8 >> 2] + 4; //151 .2 218 | PrintStr(GameChactorId+" 歡迎您使用破解之盾[VIP].",0x9); 219 | PrintStr("官方網站: www.CrackShield.co",0x9); 220 | Form->RegKeyBoardHook() ; 221 | } catch (...) {} 222 | VMProtectEnd();while (ReadPointer(HumActBase[0],HumActBase[1])&0xFFFFFFFE==06){Sleep(500);} 223 | try { 224 | if (FileExists(Path+"\\Data\\"+GameChactorId+"__Data.txt")){ 225 | TIniFile* ini = new TIniFile(Path + "\\Data\\"+GameChactorId+"__Data.txt"); 226 | for(int i = 0; i < Form->ComponentCount; i++){ 227 | if(Form->Components[i]->ClassNameIs("TEdit")) 228 | {((TEdit*)Form->Components[i])->Text = ini->ReadString("AutoPerForm", Form->Components[i]->Name, ""); 229 | } else if(Form->Components[i]->ClassNameIs("TCheckBox")){ 230 | ((TCheckBox*)Form->Components[i])->Checked = ini->ReadBool("AutoPerForm", Form->Components[i]->Name, false); 231 | } else if(Form->Components[i]->ClassNameIs("TComboBox")){ 232 | ((TComboBox*)Form->Components[i])->ItemIndex = ini->ReadInteger("AutoPerForm", Form->Components[i]->Name, 0);} 233 | } 234 | LoginMap=ini->ReadInteger("MoveXY","MapID", 0); 235 | LoginX=ini->ReadInteger("MoveXY","X", 0); 236 | LoginY=ini->ReadInteger("MoveXY","Y", 0); 237 | NextX =ini->ReadInteger("MoveXY","MobNextX", 0); 238 | NodelayUseID=ini->ReadInteger("NodelaySkillId","ID", 0); 239 | if (*(long*)(*(long*)MapIdPointer[0]+MapIdPointer[1]) == LoginMap) {MovHumToXY(LoginX,LoginY);} 240 | delete ini;} 241 | } catch (...) {} 242 | CreateThread(NULL,0xFF,AutoControl,NULL,0,NULL); 243 | Form->HpKeyComboChange(Form->HpKeyCombo);Form->MpKeyComboChange(Form->MpKeyCombo); 244 | Form->ComboBoxKey1Change(Form->ComboBoxKey1);Form->ComboBoxKey2Change(Form->ComboBoxKey2); 245 | Form->ComboBoxKey3Change(Form->ComboBoxKey3);Form->ComboBoxKey4Change(Form->ComboBoxKey4); 246 | Form->ComboBoxKey5Change(Form->ComboBoxKey5);Form->ComboBoxKey6Change(Form->ComboBoxKey6); 247 | Form->ComboBoxKey7Change(Form->ComboBoxKey7);Form->ComboBoxKey8Change(Form->ComboBoxKey8); 248 | VMProtectBegin("GameSpyTimer"); 249 | while (true){ 250 | try { 251 | WritePointer(HpMpNoticeBase[0],HpMpNoticeBase[1],20); 252 | WritePointer(HpMpNoticeBase[0],HpMpNoticeBase[2],20); 253 | NowHp =ReadPointer(HpMpValueBase[0],HpMpValueBase[1]); 254 | NowMp =ReadPointer(HpMpValueBase[0],HpMpValueBase[2]); 255 | Form->Status->Caption = GameChactorId+"您好! \n HP:"+(String)(NowHp)+" MP:"+(String)(NowMp)+ 256 | "\n 人物座標("+(String)UserXY[0]+","+(String)UserXY[1]+")"; 257 | if ((HpSettingLim>NowHp)&&(Form->HpProtect->Checked)) 258 | {PressKey(PIDGetHWND(GetCurrentProcessId()),HpSettingKey,false);} 259 | if ((MpSettingLim>NowMp)&&(Form->MpProtect->Checked)) 260 | {PressKey(PIDGetHWND(GetCurrentProcessId()),MpSettingKey,false);} 261 | if (PebIsDebuggedApproach()|PebNtGlobalFlagsApproach()) {delete Form;ExitProcess(0);} 262 | } catch (...) {} 263 | Sleep(500);Application->ProcessMessages(); 264 | } 265 | VMProtectEnd(); 266 | } 267 | void __fastcall TCrackShieldMainForm::FormCreate(TObject *Sender){ 268 | VMProtectBegin("DllMain"); 269 | char myKey[1024] = {0};VMProtectGetCurrentHWID(myKey, sizeof(myKey));PcNum = myKey; 270 | AnsiString Msg; 271 | TStringList * MsgSave = new TStringList(); 272 | try { 273 | TStringList * key = new TStringList();key->LoadFromFile(Path+ "CsVIP.dat"); 274 | AnsiString LincenseKey = key->Text;VMProtectSetSerialNumber(LincenseKey.c_str()); 275 | VMProtectSerialNumberData Serial;VMProtectGetSerialNumberData(&Serial, sizeof(Serial)); 276 | if (Serial.nState == 0) { 277 | Msg = Serial.wUserName ; 278 | Msg = Serial.wUserName[0] != 0 ? ("授權給:\t" +Msg + "\n").c_str() : ""; 279 | Msg +="到期時間:\t" +IntToStr((int)Serial.dtExpire.wYear) + "/" + IntToStr((int)Serial.dtExpire.bMonth) + "/" + IntToStr((int)Serial.dtExpire.bDay) + "\n" 280 | "限制使用時間:\t" + IntToStr((int)Serial.bRunningTime) + "分鐘"; 281 | MsgSave->Add(Msg);MsgSave->SaveToFile(Path+"\\Result.txt"); 282 | } else {Msg = PcNum;MsgSave->Add(Msg);MsgSave->SaveToFile(Path+"\\Result.txt");ExitProcess(NULL);asm{push 00;ret};Application->Terminate();} 283 | } catch (...) { 284 | Msg = PcNum;MsgSave->Add(Msg);MsgSave->SaveToFile(Path+"\\Result.txt");ExitProcess(NULL);asm{push 00;ret};Application->Terminate(); 285 | } 286 | this->Status->Caption = "等待進入遊戲中..";CreateThread(NULL,0xFF,HandleAllThingBeforeIntoGame,NULL,0,NULL); 287 | VMProtectEnd(); 288 | } 289 | //===============================================================================================// 290 | void __fastcall TCrackShieldMainForm::ArrestClick(TObject *Sender){ 291 | try { 292 | if (741000300!=ReadPointer(MapIdPointer[0],MapIdPointer[1])) { 293 | MessageBox(0,(L"此功能適用於一百八十天黑洞內。"), L"提示訊息", MB_ICONERROR);((TCheckBox*)Sender)->Checked=false; 294 | }else if (((TCheckBox*)Sender)->Checked) { 295 | CostHpCount = 100000;NoHurt->Checked=true;AutoLoseHpSw=true;GodTime=00; 296 | }else{ 297 | CostHpCount = 01;NoHurtClick(NoHurt);HurtHalfClick(HurtHalf); 298 | } 299 | } catch (...) {} 300 | } 301 | //===============================================================================================////===============================================================================================// 302 | void __fastcall TCrackShieldMainForm::RecSaveClick(TObject *Sender){ 303 | try { 304 | LoginX=UserXY[0];LoginY=UserXY[1];LoginMap=ReadPointer(MapIdPointer[0],MapIdPointer[1]); 305 | TIniFile* ini = new TIniFile(Path + "\\Data\\"+GameChactorId+"__Data.txt"); 306 | for(int i = 0; i < ComponentCount; i++){ 307 | if(Components[i]->ClassNameIs("TEdit")){ 308 | ini->WriteString("AutoPerForm", Components[i]->Name, ((TEdit*)Components[i])->Text); 309 | } else if(Components[i]->ClassNameIs("TCheckBox")){ 310 | ini->WriteBool("AutoPerForm", Components[i]->Name, ((TCheckBox*)Components[i])->Checked); 311 | } else if(Components[i]->ClassNameIs("TComboBox")){ 312 | ini->WriteInteger("AutoPerForm", Components[i]->Name, ((TComboBox*)Components[i])->ItemIndex); 313 | }} 314 | ini->WriteInteger("NodelaySkillId", "ID",NodelayUseID ); 315 | ini->WriteInteger("MoveXY", "X",LoginX ); 316 | ini->WriteInteger("MoveXY", "Y",LoginY ); 317 | ini->WriteInteger("MoveXY", "MapID",LoginMap ); 318 | ini->WriteInteger("MoveXY", "MobNextX",NextX ); 319 | delete ini; 320 | PrintStr("記錄完成! 工作座標("+(String)(LoginX)+","+(String)(LoginY)+")",9); 321 | } catch (...) {} 322 | } 323 | //===============================================================================================// 324 | void __fastcall TCrackShieldMainForm::NoHurtClick(TObject *Sender){HurtMode = ((TCheckBox*)Sender)->Checked ;} 325 | void __fastcall TCrackShieldMainForm::ZeroHurtClick(TObject *Sender){AutoLoseHpSw= ((TCheckBox*)Sender)->Checked ;} 326 | void __fastcall TCrackShieldMainForm::KeyCb1Click(TObject *Sender){KeyOnOff[0]=((TCheckBox*)Sender)->Checked ;} 327 | void __fastcall TCrackShieldMainForm::KeyCb2Click(TObject *Sender){KeyOnOff[1]=((TCheckBox*)Sender)->Checked ;} 328 | void __fastcall TCrackShieldMainForm::KeyCb3Click(TObject *Sender){KeyOnOff[2]=((TCheckBox*)Sender)->Checked ;} 329 | void __fastcall TCrackShieldMainForm::KeyCb4Click(TObject *Sender){KeyOnOff[3]=((TCheckBox*)Sender)->Checked ;} 330 | void __fastcall TCrackShieldMainForm::KeyCb5Click(TObject *Sender){KeyOnOff[4]=((TCheckBox*)Sender)->Checked ;} 331 | void __fastcall TCrackShieldMainForm::KeyCb6Click(TObject *Sender){KeyOnOff[5]=((TCheckBox*)Sender)->Checked ;} 332 | void __fastcall TCrackShieldMainForm::KeyCb7Click(TObject *Sender){KeyOnOff[6]=((TCheckBox*)Sender)->Checked ;} 333 | void __fastcall TCrackShieldMainForm::KeyCb8Click(TObject *Sender){KeyOnOff[7]=((TCheckBox*)Sender)->Checked ;} 334 | void __fastcall TCrackShieldMainForm::KeyBlcokTime1Change(TObject *Sender){try {KeySetBlockTime[0] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 335 | void __fastcall TCrackShieldMainForm::KeyBlcokTime2Change(TObject *Sender){try {KeySetBlockTime[1] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 336 | void __fastcall TCrackShieldMainForm::KeyBlcokTime3Change(TObject *Sender){try {KeySetBlockTime[2] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 337 | void __fastcall TCrackShieldMainForm::KeyBlcokTime4Change(TObject *Sender){try {KeySetBlockTime[3] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 338 | void __fastcall TCrackShieldMainForm::KeyBlcokTime5Change(TObject *Sender){try {KeySetBlockTime[4] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 339 | void __fastcall TCrackShieldMainForm::KeyBlcokTime6Change(TObject *Sender){try {KeySetBlockTime[5] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 340 | void __fastcall TCrackShieldMainForm::KeyBlcokTime7Change(TObject *Sender){try {KeySetBlockTime[6] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 341 | void __fastcall TCrackShieldMainForm::KeyBlcokTime8Change(TObject *Sender){try {KeySetBlockTime[7] =1000*((TEdit*)Sender)->Text.ToInt();} catch (...) {}} 342 | void __fastcall TCrackShieldMainForm::ComboBoxKey1Change(TObject *Sender){Key[0] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 343 | void __fastcall TCrackShieldMainForm::ComboBoxKey2Change(TObject *Sender){Key[1] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 344 | void __fastcall TCrackShieldMainForm::ComboBoxKey3Change(TObject *Sender){Key[2] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 345 | void __fastcall TCrackShieldMainForm::ComboBoxKey4Change(TObject *Sender){Key[3] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 346 | void __fastcall TCrackShieldMainForm::ComboBoxKey5Change(TObject *Sender){Key[4] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 347 | void __fastcall TCrackShieldMainForm::ComboBoxKey6Change(TObject *Sender){Key[5] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 348 | void __fastcall TCrackShieldMainForm::ComboBoxKey7Change(TObject *Sender){Key[6] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 349 | void __fastcall TCrackShieldMainForm::ComboBoxKey8Change(TObject *Sender){Key[7] = GetVkCodeByString(((TComboBox*)Sender)->Text);} 350 | void __fastcall TCrackShieldMainForm::FarGoClick(TObject *Sender){if (((TCheckBox*)Sender)->Checked) {LrLandFar=150;}else{LrLandFar=70;}} 351 | void __fastcall TCrackShieldMainForm::FullMapLevUpClick(TObject *Sender){LevUpMode = 0;} 352 | void __fastcall TCrackShieldMainForm::VacLevUpClick(TObject *Sender){LevUpMode = 1;} 353 | void __fastcall TCrackShieldMainForm::KikiLevUpClick(TObject *Sender){LevUpMode = 2;} 354 | //=============================================================================================// 355 | void __fastcall TCrackShieldMainForm::Reach180Click(TObject *Sender) 356 | { 357 | *(long*)(*(long*)(0x0E8D7A0)+0x579c) = 00;//151.2 奇幻村脫逃 358 | } 359 | 360 | 361 | --------------------------------------------------------------------------------