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.

Code Execution Before A Program Is Run From A Dll

Featured Replies

Posted

Soemtimes when you have a exe say a application that uses the web or soemthing you want to analyse you make a little dll and hook a function and cal lthat function somewhere along the way.

However sometimes you need the dll to only run the code before the exe is run itself perhaps to add some protection to your exe or other reasons use your imagination ;)

Basically some programs allow you to pack a dll with a exe and depending on the exe type the code in the main of the dll will execute before the program on others it wont.

The reason for this is that soemtimes it ignores the dll totally so you need to create a false export and the dll and create a import on the exe before packing so no matter what your dll code is run before the exe.

eg:

library fakecall;

uses

...

{$R *.res}

var

...

const

...

function FakeCall(...): BOOL; stdcall;

begin

Result: = true;

end;

exports

FakeCall name 'Fix0';

begin

// Example for a use to pass a password via a command line parememter..

If not(ParamStr(1) = 'mypass') Then

ExitProcess(0);

end.

I found it usefull and not really explained anywhere, I have used it to launch a windows form before, or run a file check with RemObjects before (Internet RPC) so i hope someone else finds it usefull.

Edited by SiliconShadow

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.