Speaking Shell Code (Win32)

Few days back I saw an interesting Facebook status like:

To know whether your computer is male or female follow the instructions below:

1)Open your notepad
2)Type or copy paste: CreateObject(“SAPI.SpVoice”).Speak”I love you”
3)Save as computer_gender.vbs
4)Run the file.


I cannot remember who was that person but I am very much thankful to that person.Finally after successful exploitation my target softwares are now not going to open a boring calculator(calc.exe).Now they are going to speak.:) :)

My brand new speaking shellcode for Win32 environment .It has the ability to automatically find the base address of Kernel32.dll and call required Win32 APIs.

Also available @ http://packetstormsecurity.org/files/109702/Win32-Speaking-Shellcode.html

Basically it uses 5 Win32 APIs.They are

CreateFileA,WriteFile,CloseHandle,WinExec and ExitProcess.

From MSDN:
  __in      LPCTSTR lpFileName,
  __in      DWORD dwDesiredAccess,
  __in      DWORD dwShareMode,
  __in_opt  LPSECURITY_ATTRIBUTES lpSecurityAttributes,
  __in      DWORD dwCreationDisposition,
  __in      DWORD dwFlagsAndAttributes,
  __in_opt  HANDLE hTemplateFile

  __in         HANDLE hFile,
  __in         LPCVOID lpBuffer,
  __in         DWORD nNumberOfBytesToWrite,
  __out_opt    LPDWORD lpNumberOfBytesWritten,
  __inout_opt  LPOVERLAPPED lpOverlapped

BOOL WINAPI CloseHandle(
  __in  HANDLE hObject

  __in  LPCSTR lpCmdLine,
  __in  UINT uCmdShow

VOID WINAPI ExitProcess(
  __in  UINT uExitCode

The assembly looks like :



  1. Himachal Pradesh Board 12th Question Paper 2021 has announced Himachal Pradesh Board of School Education, Students who are going to sit in Public Examination 2021 are allowed to Download HP Board 12th Sample Paper 2021 Download our web Portal, HP Board 12th Question Paper 2022 Matric Exam are Going to Start in the Month of march . This is the Golden Period for Students to Prepare their Exam. All those students who want to boost their exam Past Paper Preparation can Download HP Board 12th Previous Question Paper 2021.


Post a Comment