Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. library rPE_ex;
  2.  
  3. uses
  4. windows,
  5. Winsock2,
  6. winsock,
  7. rpefuncs;
  8.  
  9. function Send_WS1(s: TSocket; var Buf : PChar; len, flags: Integer; pSendWs1, pRecvWs1, pSendWs2, pRecvWs2: Pointer; var IsWorking : Boolean):Integer; stdcall;
  10. var
  11. CurHex: string;
  12. i : integer;
  13. begin
  14. CurHex := GetBufferAsHex(buf, len);
  15. if (pos('7200',CurHex) <> 0) and (pos('00E501',CurHex) <> 0) then
  16. begin
  17. @Send_Callback := pSendWs1;
  18. for i := 5 to 50 do // the number how often this packet should be send
  19. begin
  20. sleep(0); // delay you can chhose however you like (time in ms)
  21. SendPacket(s,CurHex);
  22. end;
  23. end;
  24. result := 0;
  25. end;
  26.  
  27. procedure DLL_Load;
  28. begin
  29. IntLog('D:\rpe_log.log');
  30. end;
  31.  
  32. procedure DLL_UnLoad;
  33. begin
  34. Running := false;
  35. EndLog;
  36. end;
  37.  
  38. procedure DLLMain(dwR: integer);
  39. begin
  40. case dwR of
  41. DLL_PROCESS_ATTACH:
  42. DLL_Load;
  43. DLL_PROCESS_DETACH:
  44. DLL_UnLoad;
  45. end;
  46. end;
  47.  
  48. exports
  49. Send_WS1;
  50. begin
  51. Running := true;
  52. DLLProc := @DLLMain;
  53. DLLMain(DLL_PROCESS_ATTACH);
  54. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement