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.

How to set command line arguments when writing OllyPlugin ?

Featured Replies

Posted

I want to write a plugin that can set command line.


The executable have some dynamic arguments ,so i decided to write a plugin.


I browsed some apis from ollydbg plugin help, couldnot find .Or i missed something .


Any hint , so appreciated .


Thanks.


There's no official API for that.

You could implement _ODBG_Pluginreset callback function and put the required command line into the appropriate buffer in Olly memory. Then OllyDbg will create process with the command line you wanted.

Quick Delphi Code I used to test the idea (requires ImmPlugin.PAS and OllyDbg 1.10 Final):

function PluginReset() : integer; cdecl;var   target : pointer;   source : pchar;begin   target := pointer($4D5D88);  // this is where the command line is stored in Olly memory   source := pchar('Hello world!');     // this is the command line I want to have.   CopyMemory(target, source, strlen(source)+1);  // +1 to put trailing zero after the commandline   result := 0;end;
Of course, real plugin code should check the debugged process name, handle more than one Olly version, check for errors, etc, etc..
  • Author

thanks for your answer . i will try it . regards~


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.