Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[DELPHI]Return offset by AOB

Featured Replies

Posted

This is a little silly code that will return the offset by searching it via a static array of size 7 byte(s).

Made it for the patcher of QUAD RegistryCleaner 1.5.144, more to come, this code is first RLS, and could be optimized and tweaked using threads and better searching patterns, future updates to come.

Usage: ShowMessageFmt( '%x', [RetOffset(lol)]);

lol: array [0..6] of byte = ($FF, $FF, $FF, $FF, $FF, $FF, $FF);

<-- change FF's to your needs.

you can modify it and make it search bigger buffers, but be ware of getting "Eof", calculate file size and div by the amount of searches you're going to perfom.

type
TStaticArray = ARray [0..6] Of Byte;
function RetOffset(const bSrc: TStaticArray): Integer;
const
Bof = 0; // Beginning of file
var
buffer: TStaticArray;
begin
if (not FilePos(hFile) = Bof) then
seek(hFile, Bof); repeat
BlockRead(hFile, buffer, sizeof(buffer));
Application.ProcessMessages;
until ((buffer[0] = bSrc[0]) and (buffer[1] = bSrc[1]) and
(buffer[2] = bSrc[2]) and (buffer[3] = bSrc[3]) and
(buffer[4] = bSrc[4]) and (buffer[5] = bSrc[5]) and
(buffer[6] = bSrc[6]) ); Result := FilePos(hFile)-7; // will return the beginning of the offset
end;

Edited by rotem156

if the reading is offset 0A 0B 0C I try and read ??0A0B it does not work

But I'm just nearby

Edited by arcosteami

  • Author

if the reading is offset 0A 0B 0C I try and read ??0A0B it does not work

But I'm just nearby

It's just a basic one, it doesn't have that. and i'm not going to improve it anyhow, i'll be using a pre-existing one.

i don't have the power to make this ****.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.