Advertisement
Guest User

Untitled

a guest
May 27th, 2017
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 22.42 KB | None | 0 0
  1. unit Unit1;
  2.  
  3. interface
  4.  
  5. uses
  6.   Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  7.   Vcl.Controls, Vcl.Forms, Vcl.Dialogs, sSkinManager, Vcl.ComCtrls, sListView,
  8.   Vcl.StdCtrls, sGroupBox, sListBox, acProgressBar, sButton, Vcl.ExtCtrls,
  9.   acImage, sRadioButton, sEdit, sLabel, sStatusBar, IdBaseComponent,
  10.   IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, Winapi.TlHelp32, Winapi.ShellAPI,
  11.   uInjectDLL, acTitleBar, Vcl.Menus, Vcl.Clipbrd, ProcessList_XE_S, memoriscan, CheatsHolder_FULL, Winapi.MMSystem;
  12.  
  13. type
  14.   TForm1 = class(TForm)
  15.     sSkinManager1: TsSkinManager;
  16.     sGroupBox1: TsGroupBox;
  17.     sButton1: TsButton;
  18.     sProgressBar1: TsProgressBar;
  19.     sGroupBox2: TsGroupBox;
  20.     sListBox1: TsListBox;
  21.     sGroupBox3: TsGroupBox;
  22.     sGroupBox4: TsGroupBox;
  23.     sRadioButton1: TsRadioButton;
  24.     sRadioButton2: TsRadioButton;
  25.     sButton2: TsButton;
  26.     sStatusBar1: TsStatusBar;
  27.     sGroupBox5: TsGroupBox;
  28.     sLabel1: TsLabel;
  29.     sLabel2: TsLabel;
  30.     sLabel3: TsLabel;
  31.     sEdit1: TsEdit;
  32.     sImage4: TsImage;
  33.     sImage5: TsImage;
  34.     sImage6: TsImage;
  35.     sImage1: TsImage;
  36.     sImage2: TsImage;
  37.     sImage3: TsImage;
  38.     sImage7: TsImage;
  39.     Timer1: TTimer;
  40.     IdHTTP1: TIdHTTP;
  41.     sTitleBar1: TsTitleBar;
  42.     IdTCPClient1: TIdTCPClient;
  43.     PopupMenu1: TPopupMenu;
  44.     N1: TMenuItem;
  45.     sWebLabel1: TsWebLabel;
  46.     Timer2: TTimer;
  47.     sButton3: TsButton;
  48.     Timer3: TTimer;
  49.     Timer4: TTimer;
  50.     PopupMenu2: TPopupMenu;
  51.     G1: TMenuItem;
  52.     sButton4: TsButton;
  53.     sButton5: TsButton;
  54.     Timer5: TTimer;
  55.     procedure sImage1MouseDown(Sender: TObject; Button: TMouseButton;
  56.       Shift: TShiftState; X, Y: Integer);
  57.     procedure sImage1MouseUp(Sender: TObject; Button: TMouseButton;
  58.       Shift: TShiftState; X, Y: Integer);
  59.     procedure sImage3MouseDown(Sender: TObject; Button: TMouseButton;
  60.       Shift: TShiftState; X, Y: Integer);
  61.     procedure sImage3MouseUp(Sender: TObject; Button: TMouseButton;
  62.       Shift: TShiftState; X, Y: Integer);
  63.     procedure sImage7MouseDown(Sender: TObject; Button: TMouseButton;
  64.       Shift: TShiftState; X, Y: Integer);
  65.     procedure sImage7MouseUp(Sender: TObject; Button: TMouseButton;
  66.       Shift: TShiftState; X, Y: Integer);
  67.     procedure sImage1MouseMove(Sender: TObject; Shift: TShiftState; X,
  68.       Y: Integer);
  69.     procedure sImage3MouseMove(Sender: TObject; Shift: TShiftState; X,
  70.       Y: Integer);
  71.     procedure sImage7MouseMove(Sender: TObject; Shift: TShiftState; X,
  72.       Y: Integer);
  73.     procedure FormCreate(Sender: TObject);
  74.     procedure Timer1Timer(Sender: TObject);
  75.     procedure sRadioButton1Click(Sender: TObject);
  76.     procedure sRadioButton2Click(Sender: TObject);
  77.     procedure sButton2Click(Sender: TObject);
  78.     procedure sButton1Click(Sender: TObject);
  79.     procedure FormShow(Sender: TObject);
  80.     procedure N1Click(Sender: TObject);
  81.     procedure sStatusBar1Click(Sender: TObject);
  82.     procedure sTitleBar1Items0Click(Sender: TObject);
  83.     procedure sWebLabel1Click(Sender: TObject);
  84.     procedure Timer2Timer(Sender: TObject);
  85.     procedure sButton3Click(Sender: TObject);
  86.     procedure Timer3Timer(Sender: TObject);
  87.     procedure FormClose(Sender: TObject; var Action: TCloseAction);
  88.     procedure Timer4Timer(Sender: TObject);
  89.     procedure G1Click(Sender: TObject);
  90.     procedure sButton4Click(Sender: TObject);
  91.     procedure sButton5Click(Sender: TObject);
  92.     procedure Timer5Timer(Sender: TObject);
  93.   private
  94.     { Private declarations }
  95.   public
  96.     { Public declarations }
  97.   end;
  98.  
  99. var
  100.   Form1: TForm1;
  101.   pid : Cardinal;
  102.   a : TStringList;
  103.   s : Boolean;
  104.   b : string;
  105.   i : integer;
  106.   v : string;
  107.   Procces : Integer;
  108.   Kl_Procces : Integer;
  109.   f1,f2,f3,f4,f44,f6,f9,f11,f12,f4s1,f5,fullhp,fullhpv: TVarAddress;
  110.   Cheat: array[-100..100] of TVarAddress;
  111.   f6s1,f6s2,f6s3,f6s4: string;
  112.   Silka1,Silka2,Silka3,Silka4,Silka5,inf,inf2,inf3,naz,pereb,pg,ziser,meh: String;
  113.   Data : TSTringList;
  114.   inv : Integer = 0;
  115.   PName1, module:string;
  116.   procName: string;
  117.  
  118. implementation
  119.  
  120. {$R *.dfm}
  121. {$R Res.RES}
  122. {$R Lib.RES}
  123.  
  124. uses Unit2, Unit3, Unit4;
  125.  
  126. procedure KillProcess(PID: Cardinal);
  127. var
  128.   exitcode:UINT;
  129.   x:THandle;
  130. begin
  131.   x:=Openprocess(PROCESS_ALL_ACCESS,false,PID);
  132.   GetExitCodeProcess(x,ExitCode);
  133.   TerminateProcess(x,Exitcode);
  134. end;
  135.  
  136. function InternetExist: Boolean;
  137. var TCP:TIdTCPClient;
  138. begin
  139. Result := False;TCP:=TIdTCPClient.Create(nil);
  140. TCP.Host:='google.com';
  141. TCP.Port:=80;
  142. TCP.ReadTimeout:=2000;
  143. try TCP.Connect;
  144. Result:=TCP.Connected;
  145. TCP.Free;
  146. except
  147. Result:=False;TCP.Free;
  148. end;
  149. end;
  150.  
  151. procedure SaveResourceAsFile(const FN, Name: string; const TYPE_: PChar);
  152. var
  153.   Res: TResourceStream;
  154.   File_: TFileStream;
  155. begin
  156.   Res := TResourceStream.Create(HInstance, Name, TYPE_);
  157.   if FileExists(FN) then
  158.     DeleteFile(FN);
  159.   File_ := TFileStream.Create(FN, fmOpenReadWrite or fmCreate);
  160.   try
  161.     File_.CopyFrom(Res, Res.Size);
  162.   finally
  163.     File_.Free;
  164.     Res.Free;
  165.   end;
  166. end;
  167.  
  168. function GetTmpDir: string;
  169. begin
  170.   SetLength(Result, MAX_PATH);
  171.   SetLength(Result, GetTempPath(MAX_PATH, PChar(Result)));
  172. end;
  173.  
  174. //Сетевое имя компьютера
  175. function GetComputerNetName: string;
  176. var
  177.   buffer: array[0..255] of char;
  178.   size: dword;
  179. begin
  180.   size := 256;
  181.   if GetComputerName(buffer, size) then
  182.     Result := buffer
  183.   else
  184.     Result := ''
  185. end;
  186.  
  187. //Имя пользователя
  188. function GetUserFromWindows: string;
  189. var
  190.   UserName: string;
  191.   UserNameLen: Dword;
  192. begin
  193.   UserNameLen := 255;
  194.   SetLength(userName, UserNameLen);
  195.   if GetUserName(PChar(UserName), UserNameLen) then
  196.     Result := Copy(UserName, 1, UserNameLen - 1)
  197.   else
  198.     Result := 'Unknown';
  199. end;
  200.  
  201. //Получаем хеши
  202. function GetSerialNum:string;
  203.  var SerialNum,a,b:Dword;sSN:string;
  204.   Buffer:array[0..255] of char;
  205.   begin GetVolumeInformation('c:/',Buffer,sizeof(Buffer),@SerialNum,a,b,nil,0);
  206.   sSN := IntToStr(SerialNum);while Length(sSN) <= 10 do sSN := sSN + sSN[Random(Length(sSN)) + 1];
  207.   Result := Result + IntToHex(StrToInt(Copy(sSN, 1, 2))*StrToInt(Copy(sSN, 1, 2))*666,4);
  208.   Result := Result + IntToHex(StrToInt(Copy(sSN, 3, 2))*StrToInt(Copy(sSN, 3, 2))*666,4);Result :=
  209.   Result + IntToHex(StrToInt(Copy(sSN, 5, 2))*StrToInt(Copy(sSN, 5, 2))*666,4);
  210.   Result := Result + IntToHex(StrToInt(Copy(sSN, 7, 2))*StrToInt(Copy(sSN, 7, 2))*666,4);Result :=
  211.   Result + IntToHex(StrToInt(Copy(sSN, 9, 2))*StrToInt(Copy(sSN, 9, 2))*666,4);
  212.   Result := Copy(Result, 1, 20);
  213.   Insert('-',Result, 5);
  214.   Insert('-',Result, 10);
  215.   Insert('-',Result, 15);
  216.   Insert('-',Result, 20);
  217. end;
  218.  
  219. function FindGame(dllModule: string): THandle;
  220. var
  221.   pe32: TProcessEntry32;
  222.   me32: ModuleEntry32;
  223.   hSnap: THandle;
  224.   hSnap_m: THandle;
  225. begin
  226.   Result := 0;
  227.   Application.ProcessMessages;
  228.   pe32.dwSize := SizeOf(pe32);
  229.   Application.ProcessMessages;
  230.   hSnap := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
  231.   Application.ProcessMessages;
  232.   if Process32First(hSnap,pe32) then repeat
  233.     Application.ProcessMessages;
  234.     me32.dwSize := SizeOf(me32);
  235.     Application.ProcessMessages;
  236.     hSnap_m := CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pe32.th32ProcessID);
  237.     Application.ProcessMessages;
  238.     if Module32First(hSnap_m, me32) then repeat
  239.     Application.ProcessMessages;
  240.       if me32.szModule = dllmodule then begin
  241.       Application.ProcessMessages;
  242.         procname := pe32.szExeFile;
  243.         Application.ProcessMessages;
  244.         Result := pe32.th32ProcessID;
  245.         Application.ProcessMessages;
  246.         Exit
  247.       end;
  248.       Application.ProcessMessages;
  249.     until not (Module32Next(hSnap_m, me32));
  250.     Application.ProcessMessages;
  251.     CloseHandle(hSnap_m);
  252.   until not(Process32Next(hSnap,pe32));
  253.   CloseHandle(hSnap);
  254. end;
  255.  
  256. {function FindGameByModule(var pID: Cardinal; var pName: string; uModules: array of string): Boolean;
  257. var
  258. hSnap: THandle;
  259. hSnap_md: THandle;
  260. PE: TProcessEntry32;
  261. ME: TModuleEntry32;
  262. i: Integer;
  263. LenM: Integer;
  264. begin
  265. Result := False;
  266. hSnap := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
  267. PE.dwSize := SizeOf(PE);
  268. ME.dwSize := SizeOf(ME);
  269. LenM := Length(uModules);
  270. if Process32First(hSnap, PE) then
  271. repeat
  272. hSnap_md := CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, PE.th32ProcessID);
  273. if Module32First(hSnap_md, ME) then
  274. repeat
  275. for i := 0 to LenM -1 do
  276. begin
  277. if Pos(uModules[i], ME.szModule) > 0 then
  278. begin
  279. if Application.MessageBox(PWideChar('При поиске игры был найден следующий процесс:'#13#10+
  280. 'PID:' + IntToStr(PE.th32ProcessID) + '-' + PE.szExeFile + #13#10 +
  281. 'Вы хотите к нему подключиться?'), 'Вопрос', MB_YESNO + MB_ICONQUESTION) = 6 then
  282. begin
  283. pID := PE.th32ProcessID;
  284. pName := PE.szExeFile;
  285. Result := True;
  286. Exit;
  287. end;
  288. end;
  289. end;
  290. until not Module32Next(hSnap_md, ME);;
  291. CloseHandle(hSnap_md);
  292. until not Process32Next(hSnap, PE);
  293. CloseHandle(hSnap);
  294. end;}
  295.  
  296. procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
  297. begin
  298.  if pid <> 0  then
  299.   case MessageBox(Handle, 'Вы уверены что хотите закрыть чит? ' + #13#10 +
  300.   'После закрытия чита, будет закрыта и игра.', 'Вопрос', MB_YESNO +
  301.   MB_ICONQUESTION) of
  302.   IDYES:
  303.     begin
  304.       KillProcess(pid);
  305.       DeleteFile(GetTmpDir + 'res.dll');
  306.       Exitprocess(0);
  307.     end;
  308.   IDNO:
  309.     begin
  310.      Action := CaNone;
  311.     end;
  312.   end;
  313. end;
  314.  
  315. procedure TForm1.FormCreate(Sender: TObject);
  316. var
  317.   sCoderPro: string;
  318. begin
  319.   sImage1.Picture := sImage4.Picture;
  320.   sImage1.Canvas.Pen.Color := clRed;
  321.   sImage1.Canvas.Rectangle(19,sImage1.Height, 19+1, 0);
  322.   sImage1.Canvas.Rectangle(sImage1.Width,19, 0, 19+1);
  323.   s := True;
  324.   sImage7.Picture := sImage6.Picture;
  325.   sImage7.Canvas.Pen.Color := clRed;
  326.   sImage7.Canvas.Rectangle(19,sImage2.Height, 19+1, 0);
  327.   sImage7.Canvas.Rectangle(sImage2.Width,19, 0, 19+1);
  328.   s := True;
  329.   sImage3.Picture := sImage5.Picture;
  330.   sImage3.Canvas.Pen.Color := clRed;
  331.   sImage3.Canvas.Rectangle(17,sImage3.Height, 17+1, 0);
  332.   sImage3.Canvas.Rectangle(sImage3.Width,19, 0, 19+1);
  333.   s := True;
  334.   sRadioButton1.Checked := True;
  335.   if not InternetExist then
  336.   begin
  337.     MessageBox(Handle, 'Отсутствует подключение к интернету!', 'Error', MB_OK +
  338.       MB_ICONSTOP);
  339.     ExitProcess(0);
  340.   end;
  341.   try
  342.     sCoderpro := IdHTTP1.Get('http://r97804yj.beget.tech/MonoHackLoader/OFF.php');
  343.   except
  344.     Application.MessageBox('HTTP/1.1 404 Not Found.', 'Error', MB_OK
  345.       + MB_ICONSTOP + MB_TOPMOST);
  346.     ExitProcess(0);
  347.   end;
  348. end;
  349.  
  350. procedure TForm1.FormShow(Sender: TObject);
  351. var
  352. a : string;
  353. ms:TMemoryStream;
  354. v : string;
  355. begin
  356.   a := IdHTTP1.Get('http://r97804yj.beget.tech/BazaKeyLoader.bd');
  357.   if Pos(GetSerialNum,a) <> 0 then
  358.   begin
  359.   sGroupBox5.Height := 35;
  360.   slabel1.Top := 9999;
  361.   sEdit1.Top := 9999;
  362.   sLabel3.Caption := 'Активировано.';
  363.   slabel3.Font.Color := clLime;
  364.   slabel2.Top := 14;
  365.   sLabel3.Top := 14;
  366.   sLabel3.Left := 116;
  367.   Form1.Height := 296;
  368.   sWebLabel1.Top := 9999;
  369.   end
  370.   else
  371.   begin
  372.   end;
  373.   sEdit1.Text := GetSerialNum;
  374.   begin
  375.   try
  376.   ms := TMemoryStream.Create;
  377.   Data := TSTringList.Create;
  378.   v := '1.0';
  379.   IdHTTP1.Get('http://r97804yj.beget.tech/MonoHackLoader/Version.php', ms);
  380.   ms.Position := 0;
  381.   Data.LoadFromStream(ms);
  382.   Data.Text:=UTF8Decode(Data.Text);
  383.   AnsiToUTF8(Data.Text);
  384.   except
  385.   Halt;
  386.   end;
  387.   if Data.Strings[0] <> v then
  388.   begin
  389.   Silka1 := Data.Strings[0];
  390.   Form3.ShowModal;
  391.   Halt;
  392.   end;
  393.  end;
  394. end;
  395.  
  396. procedure TForm1.G1Click(Sender: TObject);
  397. begin
  398.   if G1.Checked then begin
  399.   Form1.FormStyle:=fsStayOnTop
  400.   end
  401.   else begin
  402.   Form1.FormStyle:=fsNormal;
  403.   end;
  404. end;
  405.  
  406. procedure TForm1.N1Click(Sender: TObject);
  407. begin
  408. Clipboard.AsText := sedit1.Text;
  409. MessageBox(Handle, 'Серийный номер успешно скопирован!', 'Информация', MB_OK
  410.   + MB_ICONINFORMATION);
  411. end;
  412.  
  413. procedure TForm1.sButton1Click(Sender: TObject);
  414. begin
  415.   pid := FindGame(module);
  416.   PName1 := procName;
  417.   Timer2.Enabled := True;
  418.   if pid <> 0 then begin
  419.  
  420.   case MessageBox(handle,PWideChar('При поиске игры был найден следующий процесс:'#13#10+
  421.         'PID:' + IntToStr(pid) + '-' + procName + #13#10 +
  422.         'Вы хотите к нему подключиться?'), 'Вопрос', MB_YESNO + MB_ICONQUESTION) of
  423.         IDYES:
  424.           begin
  425.             Timer3.Enabled := True;
  426.             sButton1.Caption := 'PID:' + IntToStr(pid) + '-' + PName1;
  427.             Application.ProcessMessages;
  428.             IsOpenedProcces;
  429.             ConnectByHandle(pid);
  430.             sButton4.Enabled := true;
  431.             sButton5.Enabled := true;
  432.           end;
  433.         IDNO:
  434.           begin
  435.              case MessageBox(Handle, 'Не удалось автоматически найти процесс с игрой!' +
  436.         #13#10 + 'Хотите воспользоватся ручным выбором процесса?', 'Вопрос',
  437.         MB_YESNO + MB_ICONQUESTION) of
  438.             IDYES:
  439.                 begin
  440.                   sButton3.Click;
  441.                 end;
  442.              end;
  443.           end;
  444.   end;
  445.   end else begin
  446.   //
  447.   end;
  448. end;
  449.  
  450. procedure TForm1.sButton2Click(Sender: TObject);
  451. var
  452. a : string;
  453. begin
  454.   a := IdHTTP1.Get('http://r97804yj.beget.tech/BazaKeyLoader.bd');
  455.   if Pos(GetSerialNum,a) = 0 then
  456.   begin
  457.      MessageBox(Handle, 'Ошибка, у вас нет лицензии на данный чит!', 'Error', MB_OK
  458.     + MB_ICONSTOP);
  459.   end
  460.   else
  461.   begin
  462.     if unit1.pid = 0 then
  463.     begin
  464.       sButton2.Enabled := False;
  465.       sButton2.Caption := 'Подождите, идёт загрузка...';
  466.       MessageBox(Handle, 'Пожалуйста выберете процесс!', 'Ошибка', MB_OK +
  467.       MB_ICONSTOP);
  468.       sButton2.Caption := 'Load Cheat';
  469.       sButton2.Enabled := True;
  470.     end
  471.     else
  472.     begin
  473.       timer1.Enabled := True;
  474.     end;
  475.   end;
  476. end;
  477.  
  478. procedure TForm1.sButton3Click(Sender: TObject);
  479. var
  480. PName1: string;
  481. begin
  482.   pid := SelectDialog(PName1);
  483.   if pid = 0 then
  484.   begin
  485.   sButton1.Caption := 'Выбрать процесс';
  486.   Exit;
  487.   end else begin
  488.   sButton1.Caption := 'PID:' + IntToStr(pid) + '-' + PName1;
  489.   Application.ProcessMessages;
  490.   IsOpenedProcces;
  491.   ConnectByHandle(pid);
  492.   Timer3.Enabled := True;
  493.   sButton4.Enabled := true;
  494.   sButton5.Enabled := true;
  495.  end;
  496. end;
  497.  
  498. procedure TForm1.sButton4Click(Sender: TObject);
  499. var
  500. a:string;
  501. begin
  502. AntiScanCE_Start;
  503.  try
  504.  a := IdHTTP1.Get('http://r97804yj.beget.tech/BazaKeyLoader.bd');
  505.   if Pos(GetSerialNum,a) = 0 then
  506.   begin
  507.    MessageBox(Handle, 'Ошибка, у вас нет лицензии на данный чит!', 'Error',
  508.      MB_OK + MB_ICONSTOP);
  509.   end
  510.   else
  511.   if sButton4.Enabled = True then
  512.   begin
  513.     Timer5.Enabled := true;
  514.     sProgressBar1.Position := 5;
  515.    if AOBScan(Cheat[4], 0, $5FFFFFFF, '02 28 4C 15 00 06 02 03 7D 7A 12 00 04 03 0B 07 16 3B 22 00 00 00 07 17 3B 05 00 00 00 38 2C 00 00 00 02 7B 72 12 00 04 6F 14 00 00 0A 17 6F 3F 02 00 0A 38 1B 00 00 00 02 7B 72 12 00 04 6F 14 00 00 0A 16', True, True,  0) then
  516.     begin
  517.       WriteB(Cheat[4],'02 28 4C 15 00 06 02 03 7D 7A 12 00 04 03 0B 07 16 3B 22 00 00 00 07 17 3B 05 00 00 00 38 2C 00 00 00 02 7B 72 12 00 04 6F 14 00 00 0A 17 6F 3F 02 00 0A 38 1B 00 00 00 02 7B 72 12 00 04 6F 14 00 00 0A 17', 0);
  518.          PlaySound('TICK2',0,SND_ResOURCE or SND_ASYNC);
  519.          sProgressBar1.Position := 0;
  520.          Timer5.enabled := False;
  521.          sButton4.Enabled := False;
  522.     end
  523.    else
  524.    begin
  525.     MessageBox(Handle, 'Не удалось активировать!', 'Error', MB_OK +
  526.       MB_ICONSTOP);
  527.       sprogressbar1.Position := 0;
  528.       Timer5.enabled := False;
  529.    end;
  530.   end
  531.   else
  532.   begin
  533.   //MessageBeep(MB_OK);
  534.   end;
  535.  except
  536.  AntiScanCE_Start
  537.  end;
  538. end;
  539.  
  540. procedure TForm1.sButton5Click(Sender: TObject);
  541. var
  542. a:string;
  543. begin
  544. AntiScanCE_Start;
  545.  try
  546.  a := IdHTTP1.Get('http://r97804yj.beget.tech/BazaKeyLoader.bd');
  547.   if Pos(GetSerialNum,a) = 0 then
  548.   begin
  549.    MessageBox(Handle, 'Ошибка, у вас нет лицензии на данный чит!', 'Error',
  550.      MB_OK + MB_ICONSTOP);
  551.   end
  552.   else
  553.   if sButton5.Enabled = True then
  554.   begin
  555.   Timer5.Enabled := true;
  556.    if AOBScan(Cheat[5], 0, $5FFFFFFF, '02 16 7D 78 12 00 04 02 22 00 00 00 00 7D 77 12 00 04 02 7B 71 12 00 04 6F 14 00 00 0A 16 6F 3F 02 00 0A 02 7B 73 12 00 04 6F 14 00 00 0A 16 6F 3F 02 00 0A 03 39 11 00 00 00 02 7B 72 12 00 04 6F 14 00 00 0A 16 6F 3F 02 00 0A 2A', True, True,  0) then
  557.     begin
  558.       WriteB(Cheat[5],'02 16 7D 78 12 00 04 02 22 00 00 00 00 7D 77 12 00 04 02 7B 71 12 00 04 6F 14 00 00 0A 16 6F 3F 02 00 0A 02 7B 73 12 00 04 6F 14 00 00 0A 17 6F 3F 02 00 0A 03 39 11 00 00 00 02 7B 72 12 00 04 6F 14 00 00 0A 16 6F 3F 02 00 0A 2A', 0);
  559.       PlaySound('TICK2',0,SND_ResOURCE or SND_ASYNC);
  560.       sProgressBar1.Position := 0;
  561.       Timer5.enabled := False;
  562.       sButton5.Enabled := False;
  563.     end
  564.    else
  565.    begin
  566.     MessageBox(Handle, 'Не удалось активировать!', 'Error', MB_OK +
  567.       MB_ICONSTOP);
  568.       sprogressbar1.Position := 0;
  569.       Timer5.enabled := False;
  570.    end;
  571.   end
  572.   else
  573.   begin
  574.   MessageBeep(MB_OK);
  575.   end;
  576.  except
  577.  AntiScanCE_Start
  578. end;
  579. end;
  580.  
  581. procedure TForm1.sImage1MouseDown(Sender: TObject; Button: TMouseButton;
  582.   Shift: TShiftState; X, Y: Integer);
  583. begin
  584. s := False;
  585. end;
  586.  
  587. procedure TForm1.sImage1MouseMove(Sender: TObject; Shift: TShiftState; X,
  588.   Y: Integer);
  589. var
  590. x1,y1 : Integer;
  591. begin
  592.  if s = False then
  593.   begin
  594.   if (x < 39) and (y > -1) and (y < 50) and (x > -1) then
  595.   begin
  596.   sImage1.Picture := sImage4.Picture;
  597.   sImage1.Canvas.Pen.Color := clRed;
  598.   sImage1.Canvas.Rectangle(x,sImage1.Height, x+1, 0);
  599.   sImage1.Canvas.Rectangle(sImage1.Width,y, 0, y+1);
  600.   end;
  601.  end;
  602. end;
  603.  
  604. procedure TForm1.sImage1MouseUp(Sender: TObject; Button: TMouseButton;
  605.   Shift: TShiftState; X, Y: Integer);
  606. begin
  607. s := True;
  608. end;
  609. procedure TForm1.sImage3MouseDown(Sender: TObject; Button: TMouseButton;
  610.   Shift: TShiftState; X, Y: Integer);
  611. begin
  612. s := False;
  613. end;
  614.  
  615. procedure TForm1.sImage3MouseMove(Sender: TObject; Shift: TShiftState; X,
  616.   Y: Integer);
  617. var
  618. x1,y1 : Integer;
  619. begin
  620.  if s = False then
  621.   begin
  622.   if (x < 39) and (y > -1) and (y < 50) and (x > -1) then
  623.   begin
  624.   sImage3.Picture := sImage5.Picture;
  625.   sImage3.Canvas.Pen.Color := clRed;
  626.   sImage3.Canvas.Rectangle(x,sImage1.Height, x+1, 0);
  627.   sImage3.Canvas.Rectangle(sImage1.Width,y, 0, y+1);
  628.   //Form1.Caption := IntToStr(y)+' '+IntToStr(x);
  629.   end;
  630.  end;
  631. end;
  632.  
  633. procedure TForm1.sImage3MouseUp(Sender: TObject; Button: TMouseButton;
  634.   Shift: TShiftState; X, Y: Integer);
  635. begin
  636. s := True;
  637. end;
  638.  
  639. procedure TForm1.sImage7MouseDown(Sender: TObject; Button: TMouseButton;
  640.   Shift: TShiftState; X, Y: Integer);
  641. begin
  642. s := False;
  643. end;
  644.  
  645. procedure TForm1.sImage7MouseMove(Sender: TObject; Shift: TShiftState; X,
  646.   Y: Integer);
  647. var
  648. x1,y1 : Integer;
  649. begin
  650.  if s = False then
  651.   begin
  652.   if (x < 39) and (y > -1) and (y < 50) and (x > -1) then
  653.   begin
  654.   sImage7.Picture := sImage6.Picture;
  655.   sImage7.Canvas.Pen.Color := clRed;
  656.   sImage7.Canvas.Rectangle(x,sImage3.Height, x+1, 0);
  657.   sImage7.Canvas.Rectangle(sImage3.Width,y, 0, y+1);
  658.   end;
  659.  end;
  660. end;
  661.  
  662. procedure TForm1.sImage7MouseUp(Sender: TObject; Button: TMouseButton;
  663.   Shift: TShiftState; X, Y: Integer);
  664. begin
  665. s := True;
  666. end;
  667.  
  668. procedure TForm1.sRadioButton1Click(Sender: TObject);
  669. begin
  670. module := 'mono-1-vc.dll';
  671. end;
  672.  
  673. procedure TForm1.sRadioButton2Click(Sender: TObject);
  674. begin
  675. module := 'mono.dll';
  676. end;
  677.  
  678. procedure TForm1.sStatusBar1Click(Sender: TObject);
  679. begin
  680. ShellExecute(0, nil, pChar('https://vk.com/id307717813'), nil, nil, SW_SHOWNORMAL);
  681. end;
  682.  
  683. procedure TForm1.sTitleBar1Items0Click(Sender: TObject);
  684. begin
  685. Form4.ShowModal;
  686. end;
  687.  
  688. procedure TForm1.sWebLabel1Click(Sender: TObject);
  689. begin
  690. ShellExecute(0, nil, pChar('https://vk.com/id307717813'), nil, nil, SW_SHOWNORMAL);
  691. end;
  692.  
  693. procedure TForm1.Timer1Timer(Sender: TObject);
  694. var Results:Boolean;
  695. begin
  696.   Results := False;
  697.   try
  698.     SaveResourceAsFile(GetTmpDir + 'res.dll', 'MonsterByte', RT_RCDATA);
  699.     Results := True;
  700.   except
  701.     Timer1.Enabled := False;
  702.     sButton2.Enabled := False;
  703.     sButton2.Caption := 'Подождите, идёт загрузка...';
  704.     MessageBox(Handle, 'Не удалось активировать!', 'Error', MB_OK + MB_ICONSTOP);
  705.     sButton2.Caption := 'Load Cheat';
  706.     sButton2.Enabled := True;
  707.   end;
  708.   if Results = True then
  709.   begin
  710.     sButton2.Caption := 'Подождите, идёт загрузка...';
  711.     sButton2.Enabled := False;
  712.     Form1.sProgressBar1.Position := Form1.sProgressBar1.Position+1;
  713.     if (Form1.sProgressBar1.Position = 100) then
  714.     begin
  715.       InjectDLL(pid, GetTmpDir + 'res.dll');
  716.       Timer1.Enabled := False;
  717.       MessageBox(Handle, 'MonoCheat loaded!', 'Информация', MB_OK + MB_ICONINFORMATION);
  718.       sbutton2.caption := 'Load Cheat';
  719.       sButton2.Enabled := True;
  720.       sProgressBar1.Position := 0;
  721.     end;
  722.   end;
  723. end;
  724.  
  725. procedure TForm1.Timer2Timer(Sender: TObject);
  726. begin
  727.      sProgressBar1.Position := 0;
  728.     if pid <> 0 then begin
  729.       Timer2.Enabled := False;
  730.       Application.ProcessMessages;
  731.     end else begin
  732.       timer2.Enabled := False;
  733.       if pid = 0 then begin
  734.       case MessageBox(Handle, 'Не удалось автоматически найти процесс с игрой!' +
  735.         #13#10 + 'Хотите воспользоватся ручным выбором процесса?', 'Вопрос',
  736.         MB_YESNO + MB_ICONQUESTION) of
  737.         IDYES:
  738.           sButton3.Click;
  739.         IDNO:
  740.           begin
  741.           // Нечего не делать
  742.           end;
  743.       end;
  744.       end;
  745.       sprogressbar1.Position := 0;
  746.       timer2.Enabled := False;
  747.     end;
  748. end;
  749.  
  750. procedure TForm1.Timer3Timer(Sender: TObject);
  751. begin
  752.   sProgressBar1.Position := sProgressBar1.Position+3;
  753.   if sProgressBar1.Position = 100 then
  754.     Timer3.Enabled := False;
  755.     Timer4.Enabled := True;
  756. end;
  757.  
  758. procedure TForm1.Timer4Timer(Sender: TObject);
  759. begin
  760.     if sprogressbar1.Position = 100 then
  761.     begin
  762.       MessageBeep(MB_ICONINFORMATION);
  763.       sProgressBar1.Position := 0;
  764.     end
  765.     else begin
  766.       Timer4.Enabled := False;
  767.   end;
  768. end;
  769.  
  770. procedure TForm1.Timer5Timer(Sender: TObject);
  771. begin
  772. sProgressBar1.Position := sProgressBar1.Position+5;
  773. end;
  774. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement