# hasherezade/pe_to_shellcode

Converts PE into a shellcode

Repository: https://github.com/hasherezade/pe_to_shellcode
Canonical: https://ross.abutalabs.com/products/pe_to_shellcode
Homepage: https://www.youtube.com/watch?v=WQCiM0X11TA
Language: C++
License: BSD-2-Clause
License Family: permissive
Topics: pe-to-shellcode, pe2shellcode, shellcode, pe-file, pe2shc, shellcode-development
Last push: 2025-08-30T15:50:53+00:00

## Health v2 (maintenance only)
Score: 40/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 39, release rhythm 8, longevity 100
- inputs: {"age_days": 2936, "days_push": 368, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2793, forks 470 (observed 2026-08-28T04:07:22.247355+00:00)

## What it is
A C++ command-line tool that converts Windows PE executables into shellcode-compatible form, adding a reflective loading stub post-compilation so the output can be injected like raw shellcode while remaining a valid PE. It supports both 32-bit and 64-bit PEs and handles relocations, imports, and TLS callbacks.

## Use cases
- convert a PE executable into shellcode for injection
- add a reflective loading stub to an already-compiled DLL or EXE
- test how a PE behaves when executed as shellcode
- prepare payloads for red-team injection techniques
- analyze PE loading behavior in malware research

## When to choose
- you need to inject a compiled PE as if it were raw shellcode
- you want a reflective loader added post-compilation without modifying source
- you work in malware analysis or offensive security research on Windows binaries

## When to avoid
- your PE relies on exception handling, delay-load imports, or MUI resources
- you need a general-purpose packer or obfuscation tool
- you target non-Windows executable formats like ELF or Mach-O

## Facets
- artifact type: cli-tool
- maturity: active
- function: security, reverse-engineering, developer-tools
- domain: security, penetration-testing, reverse-engineering, developer-tools
- platform: windows, cross-platform, cpp
- tags: shellcode, pe-files, malware-analysis, red-team, binary-conversion, reflective-loading

## Member repositories
- hasherezade/pe_to_shellcode (main) score 40

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:22.247355+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:49:15.111306+00:00, confidence not recorded.
  - readme: https://github.com/hasherezade/pe_to_shellcode (fetched 2026-08-28T04:07:22.247355+00:00, sha 6a994da669e7)
  - homepage: https://www.youtube.com/watch?v=WQCiM0X11TA (fetched 2026-08-29T09:54:56.699843+00:00, sha 44136fa355b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
