Skip to content

This is a shellcode that pop a MessageBox and show the text "Pwn3d by h4pp1n3ss".

Notifications You must be signed in to change notification settings

h4pp1n3ss/x86Windows-MessageBoxAPwn3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Windows/x86 - Dynamic MessageBoxA PEB & Export Directory Table

Description:

This is a shellcode that pop a MessageBox and show the text "Pwn3d by h4pp1n3ss". In order to accomplish this task the shellcode uses the PEB method to locate the baseAddress of the required module and the Export Directory Table to locate symbols. Also the shellcode uses a hash function to gather dynamically the required symbols without worry about the length.

  • Author: h4pp1n3ss
  • Date: Wed 09/23/2021
  • Tested on: Microsoft Windows [Version 10.0.19042.1237]

Windows API

This shellcode uses two Windows API

MessageBoxA

MessageBoxA Function Prototype

int MessageBoxA(
  HWND   hWnd,
  LPCSTR lpText,
  LPCSTR lpCaption,
  UINT   uType
);

and

TerminateProcess

TerminateProcess Function Prototype

 BOOL TerminateProcess(
  HANDLE hProcess,	 -> 0xffffffff
  UINT   uExitCode	 -> EAX
 );

Resources

About

This is a shellcode that pop a MessageBox and show the text "Pwn3d by h4pp1n3ss".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published