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.

Embedded exe into memory without extracting [Delphi]

Featured Replies

Posted

How to execute embedded exe into memory without extracting ?

 

I can extract file from resources but I want to execute without extracting.

 

I hope this is not duplicate posts. :unsure:

no idea, but asked my friend google, on first result, point me :

https://stackoverflow.com/a/6401261/1320686

 

send a friend request to Google, you can ask everything you want & knows everything!

  • Author
30 minutes ago, whoknows said:

no idea, but asked my friend google, on first result, point me :


https://stackoverflow.com/a/6401261/1320686

 

send a friend request to Google, you can ask everything you want & knows everything!

Already tested that code but gives 0000000 for imagebase so it failed to launch embedded exe. But I'll figure it out soon. 

The code linked above is a RunPE code, it inject an exe into a "new" process and not the same

imgbase:=DWORD(VirtualAllocEx(PInfo.hProcess,Ptr(INH^.OptionalHeader.ImageBase),INH^.OptionalHeader.SizeOfImage,MEM_COMMIT or MEM_RESERVE,PAGE_EXECUTE_READWRITE));

the code above gave you 0 because you're trying to alloc on an already allocated memory or because some memory page stuff (which I don't know) (VirtuallAlloc/VirtualAllocEx are not very obedient when you specify the memory), to solve this problem you should call ZwUnmapViewOfSection before calling it

I googled "RunPe delphi" and this is one of the results
http://www.delphibasics.info/home/delphibasicssnippets/memoryexecutionunit-winxpwinvistawin7

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.