OldSchoolHack

Registrieren / Anmelden Deutsch

BF1 Lagswitch

not available
  • Kategorie: Battlefield 1
  • Entwickler:
  • Hochgeladen von: System
  • Hinzugefügt am:
  • System: Windows
Download (15.00 KB)

VirusTotal Ergebnis: 2/57

virustotal

Beschreibung

So here's some code for a lagswitch that works in most battlefield games. It uses windows filtering platform(WFP) to block incoming datagram traffic (system wide, unfortunately) so players freeze in their spot. It's pretty shitty but you get an extra second or two to shoot people before they run behind cover. Pair it with an aimbot and you could probably rack up some kills. Run it as admin.

CPP Code:
  1. void blockUDP()
  2. {
  3.     HANDLE engineHandle;
  4.     if (DWORD result = FwpmEngineOpen0(NULL, RPC_C_AUTHN_WINNT, NULL, NULL, &engineHandle))
  5.     {
  6.         std::wcout << "Err. 3 - 0x" << std::hex << result << std::dec << std::endl;
  7.         exitWait();
  8.     }
  9.     FWPM_FILTER0 filter;
  10.     SecureZeroMemory(&filter, sizeof(filter));
  11.     FWPM_FILTER_CONDITION0 conditions[2];
  12.     conditions[0].fieldKey = FWPM_CONDITION_IP_PROTOCOL;
  13.     conditions[0].conditionValue.type = FWP_UINT8;
  14.     conditions[0].conditionValue.uint8 = 17; //rfc 1700
  15.     conditions[0].matchType = FWP_MATCH_EQUAL;
  16.     conditions[1].fieldKey = FWPM_CONDITION_DIRECTION;
  17.     conditions[1].conditionValue.type = FWP_UINT32;
  18.     conditions[1].conditionValue.uint32 = FWP_DIRECTION_INBOUND;
  19.     conditions[1].matchType = FWP_MATCH_EQUAL;
  20.     filter.action.type = FWP_ACTION_BLOCK;
  21.     filter.displayData.name = L"DICE plz...";
  22.     filter.layerKey = FWPM_LAYER_DATAGRAM_DATA_V4;
  23.     filter.numFilterConditions = 2;
  24.     filter.weight.type = FWP_EMPTY;
  25.     filter.filterCondition = conditions;
  26.     while (true)
  27.     {
  28.         if (GetAsyncKeyState(18) & 0x8000) //alt key
  29.         {
  30.             if (DWORD result = FwpmFilterAdd0(engineHandle, &filter, NULL, &filter.filterId))
  31.             {
  32.                 std::wcout << "Err. 4 - 0x" << std::hex << result << std::dec << std::endl;
  33.                 exitWait();
  34.             }
  35.             while (GetAsyncKeyState(18) & 0x8000)
  36.             {
  37.                 Sleep(1);
  38.             }
  39.             if (DWORD result = FwpmFilterDeleteById0(engineHandle, filter.filterId))
  40.             {
  41.                 std::wcout << "Err. 5 - 0x" << std::hex << result << std::dec << std::endl;
  42.                 exitWait();
  43.             }
  44.         }
  45.         Sleep(1);
  46.     }
  47. }

Download BF1 Lagswitch
In diesem Thema gibt es keine Beiträge.