Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JLospinoso/gargoyle
/ functions
Functions
215 in github.com/JLospinoso/gargoyle
⨍
Functions
215
◇
Types & classes
23
↓ 9 callers
Function
artifacts_for
Compute expected build outputs for a configuration. Args: repo_root: Repository root. configuration: Visual Studio configuration.
src/gargoyle_acceptance/environment.py:214
↓ 9 callers
Function
parse_architecture_report
Parse a text architecture report. Args: lines: Captured report lines. expected_platform: Optional platform to use when the report
src/gargoyle_acceptance/architecture.py:52
↓ 8 callers
Method
get
Get the next line, or `None` if the stream ended. Args: timeout_seconds: Maximum time to wait. Returns: A li
src/gargoyle_acceptance/harness.py:163
↓ 7 callers
Function
parse_platform
Normalize a Visual Studio solution platform option. Args: value: User-provided platform name. Returns: A supported platform
src/gargoyle_acceptance/environment.py:101
↓ 7 callers
Function
resolve_msbuild
Resolve MSBuild from an explicit path, PATH, or common Visual Studio installs. Args: explicit: Optional user-provided MSBuild path.
src/gargoyle_acceptance/environment.py:479
↓ 7 callers
Function
win32_error
GargoyleArm64/arm_runtime.hpp:96
↓ 6 callers
Function
parse_acceptance_mode
Normalize an acceptance harness mode option. Args: value: User-provided acceptance mode. Returns: A supported acceptance mod
src/gargoyle_acceptance/environment.py:124
↓ 6 callers
Function
resolve_export
GargoyleArm64/arm_runtime.hpp:275
↓ 5 callers
Function
compiled_machine
main.cpp:77
↓ 5 callers
Function
compiled_machine
GargoyleX64/main_x64.cpp:58
↓ 5 callers
Function
page_protection_name
main.cpp:191
↓ 5 callers
Function
resolve_export
GargoyleX64/main_x64.cpp:163
↓ 4 callers
Function
_generic_artifacts
Create a generic timer/re-entry artifact layout. Args: repo_root: Repository root. configuration: Visual Studio configuration.
src/gargoyle_acceptance/environment.py:427
↓ 4 callers
Function
_write_minimal_pe
Write a minimal PE-shaped file. Args: path: Output path. machine: IMAGE_FILE_MACHINE value. Returns: Output path.
tests/test_pe.py:64
↓ 4 callers
Function
coerce_optional_path
Convert Typer's optional path value into a resolved path when present. Args: value: Optional CLI path. Returns: A resolved p
src/gargoyle_acceptance/environment.py:634
↓ 4 callers
Function
machine_name
main.cpp:91
↓ 4 callers
Function
machine_name
GargoyleX64/main_x64.cpp:72
↓ 4 callers
Function
machine_name
Return a friendly PE machine name. Args: machine: Numeric IMAGE_FILE_MACHINE value. Returns: Known PE machine name or a hexa
src/gargoyle_acceptance/pe.py:119
↓ 4 callers
Function
msbuild_platform
Return the Visual Studio solution platform spelling for MSBuild. Args: platform_name: Canonical harness platform. Returns: M
src/gargoyle_acceptance/environment.py:147
↓ 4 callers
Function
parse_configuration
Normalize a Visual Studio configuration option. Args: value: User-provided configuration name. Returns: A supported configur
src/gargoyle_acceptance/environment.py:78
↓ 4 callers
Function
platform_pointer_bits
Return the expected native pointer width for a platform. Args: platform_name: Canonical harness platform. Returns: Expected
src/gargoyle_acceptance/environment.py:159
↓ 4 callers
Function
resolve_nasm
Resolve NASM from PATH or the standard winget install directory. Returns: Path to `nasm.exe`. Raises: AcceptanceError: If NA
src/gargoyle_acceptance/environment.py:522
↓ 4 callers
Function
resolve_repo_root
Find the repository root by walking upward from a path. Args: start: Directory or file path to start from. Defaults to the current direct
src/gargoyle_acceptance/environment.py:189
↓ 4 callers
Function
validate_pe_machine
Require an executable's PE machine to match the requested platform. Args: executable: PE image path. platform: Expected Gargoyle
src/gargoyle_acceptance/pe.py:93
↓ 4 callers
Function
win32_error
main.cpp:165
↓ 3 callers
Function
_first_field
Return the first matching field value. Args: fields: Normalized report fields. keys: Accepted normalized keys. Returns:
src/gargoyle_acceptance/architecture.py:183
↓ 3 callers
Function
_x64_artifacts
Create an x64 artifact layout. Args: repo_root: Repository root. configuration: Visual Studio configuration. output_dir:
src/gargoyle_acceptance/environment.py:336
↓ 3 callers
Function
_x86_artifacts
Create a Win32 artifact layout. Args: repo_root: Repository root. configuration: Visual Studio configuration. output_dir:
src/gargoyle_acceptance/environment.py:312
↓ 3 callers
Function
option_value
GargoyleArm64/arm_runtime.hpp:166
↓ 3 callers
Function
parse_setup_output
Parse and validate Gargoyle's setup banner. Args: lines: Captured process output. platform: Platform-specific banner format.
src/gargoyle_acceptance/harness.py:290
↓ 3 callers
Method
poll
Return the fake process status.
tests/test_harness.py:78
↓ 3 callers
Function
read_pe_machine
Read the COFF machine value from a PE executable. Args: executable: PE image path. Returns: Parsed PE machine evidence.
src/gargoyle_acceptance/pe.py:52
↓ 3 callers
Function
require_next_value
GargoyleArm64/arm_runtime.hpp:174
↓ 3 callers
Function
require_windows
Require the current platform to be Windows. Args: system_name: Optional platform override for tests. Raises: AcceptanceError
src/gargoyle_acceptance/environment.py:171
↓ 3 callers
Function
validate_architecture_report
Require an architecture report to match the requested platform. Args: report: Parsed architecture report. expected_platform: Expe
src/gargoyle_acceptance/architecture.py:107
↓ 3 callers
Function
verify_artifacts
Require the executable and PIC blobs to exist. Args: artifacts: Expected build outputs. Raises: AcceptanceError: If any expe
src/gargoyle_acceptance/environment.py:236
↓ 2 callers
Function
_arm_artifact_candidates
Return expected ARM-family artifact layouts. Args: repo_root: Repository root. configuration: Visual Studio configuration.
src/gargoyle_acceptance/environment.py:360
↓ 2 callers
Function
_artifact_report
Build a report for non-live acceptance modes. Args: artifacts: Resolved executable and PIC paths. build: Optional build result.
src/gargoyle_acceptance/harness.py:349
↓ 2 callers
Function
_pe_format_detail
Create a consistent PE format detail. Args: executable: PE image path. problem: Short format problem. Returns: Error
src/gargoyle_acceptance/pe.py:174
↓ 2 callers
Function
_required_artifact_paths
Return non-optional artifact paths for a build. Args: artifacts: Candidate artifact layout. Returns: Required paths.
src/gargoyle_acceptance/environment.py:462
↓ 2 callers
Function
_run_gargoyle_once
Run Gargoyle once and capture stdout. Args: artifacts: Resolved executable and PIC paths. extra_args: Command-line arguments for
src/gargoyle_acceptance/harness.py:467
↓ 2 callers
Function
allocate_pic
Loads a raw PIC blob and marks it executable.
main.cpp:216
↓ 2 callers
Function
allocate_pic
GargoyleX64/main_x64.cpp:179
↓ 2 callers
Function
allocate_pic
GargoyleArm64/arm_runtime.hpp:338
↓ 2 callers
Function
architecture_report_complete
Return whether captured lines contain a usable architecture report. Args: lines: Captured report lines. expected_platform: Option
src/gargoyle_acceptance/architecture.py:143
↓ 2 callers
Function
expected_machine_names
Return a friendly list of expected PE machine names. Args: platform: Expected Gargoyle platform. Returns: Human-readable PE
src/gargoyle_acceptance/pe.py:159
↓ 2 callers
Function
machine_matches_platform
Return whether a PE machine value is compatible with a platform. Args: machine: Numeric IMAGE_FILE_MACHINE value. platform: Expec
src/gargoyle_acceptance/pe.py:146
↓ 2 callers
Function
machine_name
GargoyleArm64/arm_runtime.hpp:394
↓ 2 callers
Function
mode_name
GargoyleArm64/arm_runtime.hpp:122
↓ 2 callers
Function
parse_u32
GargoyleArm64/arm_runtime.hpp:148
↓ 2 callers
Function
resolve_toolchain
Resolve all external build tools. Args: msbuild: Optional explicit MSBuild path. Returns: Resolved toolchain paths.
src/gargoyle_acceptance/environment.py:547
↓ 2 callers
Function
run_arm_runtime
GargoyleArm64/arm_runtime.hpp:547
↓ 2 callers
Method
wait
Return the fake process exit code. Args: timeout: Ignored timeout. Returns: Fake process exit code.
tests/test_harness.py:86
↓ 1 callers
Function
_artifact_candidates
Return likely Visual Studio output locations. Args: repo_root: Repository root. configuration: Visual Studio configuration.
src/gargoyle_acceptance/environment.py:258
↓ 1 callers
Function
_build_environment
Build an environment where MSBuild can find NASM. Args: toolchain: Resolved toolchain paths. Returns: Environment variables
src/gargoyle_acceptance/build.py:87
↓ 1 callers
Function
_close_message_boxes
Close the benign MessageBox payload for a number of rounds. Args: process: Running Gargoyle process. controller: Window controlle
src/gargoyle_acceptance/harness.py:570
↓ 1 callers
Function
_extra_msbuild_properties
Return optional MSBuild properties supplied through the environment. Returns: Additional `/p:` arguments for MSBuild.
src/gargoyle_acceptance/build.py:103
↓ 1 callers
Function
_msbuild_candidates
Return common MSBuild install paths for current Visual Studio releases. Returns: Candidate `MSBuild.exe` paths.
src/gargoyle_acceptance/environment.py:559
↓ 1 callers
Function
_msbuild_from_vswhere
Ask `vswhere.exe` for the latest MSBuild-capable Visual Studio install. Args: vswhere: Path to `vswhere.exe`. Returns: Path
src/gargoyle_acceptance/environment.py:602
↓ 1 callers
Function
_normalize_key
Normalize a report key for loose matching. Args: value: Raw report key. Returns: Lowercase key with common separators collap
src/gargoyle_acceptance/architecture.py:199
↓ 1 callers
Function
_parse_addresses
Parse address lines from Gargoyle's setup banner. Args: lines: Captured process output. address_labels: Address labels expected f
src/gargoyle_acceptance/harness.py:631
↓ 1 callers
Function
_parse_fields
Parse key-value fields from report lines. Args: lines: Captured report lines. Returns: Normalized report fields.
src/gargoyle_acceptance/architecture.py:165
↓ 1 callers
Function
_parse_machine
Parse a PE machine token. Args: value: Raw machine token. Returns: Numeric machine value, or `None` when unsupported.
src/gargoyle_acceptance/architecture.py:226
↓ 1 callers
Function
_parse_platform_field
Parse a platform field. Args: value: Raw field value. Returns: Parsed platform, or `None` when unsupported.
src/gargoyle_acceptance/architecture.py:211
↓ 1 callers
Function
_parse_pointer_bits
Parse a pointer-size field. Args: value: Raw pointer-size token. Returns: Pointer width in bits. Raises: Accept
src/gargoyle_acceptance/architecture.py:258
↓ 1 callers
Function
_render_error
Render a user-actionable failure panel. Args: error: Acceptance failure to display.
src/gargoyle_acceptance/cli.py:115
↓ 1 callers
Function
_render_success
Render a successful acceptance report. Args: report: Completed acceptance report.
src/gargoyle_acceptance/cli.py:127
↓ 1 callers
Function
_report
(tmp_path: Path)
tests/test_cli.py:15
↓ 1 callers
Function
_run_architecture_report
Run the executable's architecture-report command. Args: artifacts: Resolved executable and PIC paths. platform: Expected platform
src/gargoyle_acceptance/harness.py:415
↓ 1 callers
Function
_run_headless_setup
Run the executable's headless setup-smoke command. Args: artifacts: Resolved executable and PIC paths. platform: Expected platfor
src/gargoyle_acceptance/harness.py:442
↓ 1 callers
Function
_start_gargoyle
Start Gargoyle from the output directory. Args: artifacts: Resolved executable and PIC paths. extra_args: Optional command-line a
src/gargoyle_acceptance/harness.py:380
↓ 1 callers
Function
_tail
Return a compact tail of command output. Args: text: Complete command output. lines: Number of trailing lines to keep. Retur
src/gargoyle_acceptance/harness.py:657
↓ 1 callers
Function
_tail
Return a compact tail of command output. Args: text: Complete command output. lines: Number of trailing lines to keep. Retur
src/gargoyle_acceptance/build.py:115
↓ 1 callers
Function
_terminate_process
Terminate a still-running Gargoyle process. Args: process: Running Gargoyle process.
src/gargoyle_acceptance/harness.py:615
↓ 1 callers
Function
_vswhere_path
Find `vswhere.exe` if Visual Studio installed it. Returns: Path to `vswhere.exe`, or `None`.
src/gargoyle_acceptance/environment.py:586
↓ 1 callers
Function
_wait_for_setup
Wait for Gargoyle to print a complete setup banner. Args: process: Running Gargoyle process. platform: Platform-specific banner f
src/gargoyle_acceptance/harness.py:517
↓ 1 callers
Method
_window_text
Read the UTF-16 title text for a window. Args: hwnd: Native window handle. Returns: Window title text.
src/gargoyle_acceptance/windows.py:133
↓ 1 callers
Function
allocate_pic_region
GargoyleArm64/arm_runtime.hpp:291
↓ 1 callers
Function
build_solution
Build `Gargoyle.sln` for the requested configuration. Args: repo_root: Repository root containing `Gargoyle.sln`. configuration:
src/gargoyle_acceptance/build.py:27
↓ 1 callers
Function
close_timer_handle
GargoyleArm64/arm_runtime.hpp:482
↓ 1 callers
Method
close_window
Close a window by posting `WM_CLOSE`. Args: hwnd: Native window handle. Raises: AcceptanceError: If `PostMes
src/gargoyle_acceptance/windows.py:88
↓ 1 callers
Method
find_message_boxes
Enumerate visible windows that look like Gargoyle MessageBoxes. Args: pid: Process ID that should own the window. tit
src/gargoyle_acceptance/windows.py:59
↓ 1 callers
Function
get_gadget
Selects either a system-DLL gadget or the tiny fallback gadget PIC.
main.cpp:285
↓ 1 callers
Function
get_system_dll_gadget
Finds a compatible stack-pivot gadget in an executable section of a system DLL.
main.cpp:237
↓ 1 callers
Function
has_argument
main.cpp:156
↓ 1 callers
Function
has_argument
GargoyleX64/main_x64.cpp:137
↓ 1 callers
Method
kill
Mark the process as force-killed.
tests/test_harness.py:482
↓ 1 callers
Function
launch
Wires together the PIC, gadget, trampoline, scratch stack, and demo payload.
main.cpp:306
↓ 1 callers
Function
launch
GargoyleX64/main_x64.cpp:199
↓ 1 callers
Function
launch
GargoyleArm64/arm_runtime.hpp:489
↓ 1 callers
Function
main
Run the Typer app.
src/gargoyle_acceptance/cli.py:155
↓ 1 callers
Function
native_machine_from_system_info
main.cpp:108
↓ 1 callers
Function
native_machine_from_system_info
GargoyleX64/main_x64.cpp:89
↓ 1 callers
Function
parse_mode
GargoyleArm64/arm_runtime.hpp:135
↓ 1 callers
Function
parse_options
GargoyleArm64/arm_runtime.hpp:192
↓ 1 callers
Function
platform_for_machine
Return the canonical platform for a PE machine value. Args: machine: Numeric IMAGE_FILE_MACHINE value. Returns: Matching pla
src/gargoyle_acceptance/pe.py:131
↓ 1 callers
Function
print_architecture_report
main.cpp:123
↓ 1 callers
Function
print_architecture_report
GargoyleX64/main_x64.cpp:104
↓ 1 callers
Function
print_architecture_report
GargoyleArm64/arm_runtime.hpp:426
↓ 1 callers
Function
print_configuration_banner
GargoyleArm64/arm_runtime.hpp:459
next →
1–100 of 215, ranked by callers