Cyber security

SCLauncher – Basic Shellcode Tester, Debugger And PE-File Wrapper

This program is designed to load 32-bit or 64-bit shellcode and allow for execution or debugging. In addition, it can produce executable PE files based on the desired shellcode.

This can ease testing as the output binary can be used by standard reverse engineering tools (i.e. IDA Pro (even free) and debuggers).

Release binaries are available. You can view a demo of this tool on YouTube

This program provides several options for working with your shellcode:

  • You can use the -pause argument to pause this program before executing the shellcode. This allows for a debugger to be attached and breakpoints to be set.
    • Keep in mind that there are options available to have this utility set breakpoints for you, see the -bp argument.
    • You can produce PE files from your shellcode, then disassemble or debug them as you would a normal PE file.
    • You can run the the program directly under a debugger, providing the appropriate arguments through your debuggers interface.

Executing Shellcode From A File

The only required argument is to provide the path to the file that contains your shellcode. You do that by using the -f argument. This will be copied into memory and executed.

Additionally, you can use the -ep argument to adjust the entry point by X bytes. This allows for shellcode that does not begin execution at the beginning of the binary blob.

Finally, -bp determines if a breakpoint should be inserted before the shellcode. This will be done through a 0xCC byte, which is an INT3.

This allows you to run the program under a debugger, defining the command line arguments as appropriate.

Inserting a breakpoint will allow the debugger to interrupt execution before the shellcode is executed.

If you are not running under a debugger, do not insert a breakpoint as that will cause the program to crash.

Producing A PE File

You can use the -pe argument to produce a PE file that essentially wraps the shellcode. The shellcode is placed in the .text section.

The entry point is defined as the beginning of the section, unless the -ep argument is used.

This argument will define an offset from the beginning of the section and be used to update the PE files entry point (i.e. AddressOfEntry field).

Additionally, the -64 argument can be used to generate a 64-bit PE file, likely for 64-bit shellcode.

The resulting PE file can be analyzed via common reverse engineering tools such as IDA Pro, Ghidra or a debugger such as x32dbg/WinDbg/etc.

For more information click here

Varshini

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

8 hours ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

8 hours ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

2 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

5 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago