Assuming I'm injecting a shellcode into a Windows GUI application, I know I could:
- Gets kernel32.dll base address through the PEB (Process Environment Block);
- Finds address of LoadLibrary;
- Call LoadLibrary("user32.dll");
- Finally call GetProcAddress.
This is the classic way and that's what I would do, however I'd like to know if there's a better/improved/faster/clever/different/smaller or simpler way to do this.