mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
Dynamic (#77)
This commit is contained in:
parent
55247b7fcd
commit
991c84a1eb
1464 changed files with 225448 additions and 1985 deletions
|
|
@ -0,0 +1,9 @@
|
|||
// Phase 10 (Track D.3) — C++ HTTP recorder body-only fragment.
|
||||
//
|
||||
// Wrapped at test time by `wrap_cpp_fragment(body, shim)`. Records
|
||||
// an SSRF attempt at the IMDS metadata endpoint through the shim
|
||||
// recorder; the host-side HttpStub captures the attempted outbound
|
||||
// call without the harness opening a real socket.
|
||||
std::string method = "GET";
|
||||
std::string url = "http://169.254.169.254/latest/meta-data/";
|
||||
__nyx_stub_http_record(method, url, std::string(), { {"driver", "manual"} });
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
// Phase 10 (Track D.3) — C++ SQL recorder body-only fragment.
|
||||
//
|
||||
// Wrapped at test time by `wrap_cpp_fragment(body, shim)` in
|
||||
// `tests/stubs_e2e_per_lang.rs`: the wrapper prepends the C++
|
||||
// probe shim (which carries `__nyx_stub_sql_record`) and a
|
||||
// `int main()` shell so `c++ <source>.cpp -o <bin> && ./<bin>`
|
||||
// builds the program in place.
|
||||
//
|
||||
// Records the attempted tautology query through the shim recorder
|
||||
// so the host-side SqlStub captures it as `driver = "manual"` —
|
||||
// no libsqlite3 / sqlite3pp dependency on the dynamic CI matrix.
|
||||
std::string query = "SELECT 1 WHERE 'a' = 'a' OR 1=1 --";
|
||||
__nyx_stub_sql_record(query, { {"driver", "manual"} });
|
||||
Loading…
Add table
Add a link
Reference in a new issue