Expand description
Ruso VM: execute compiled bytecode against HTTP, DNS, TCP, and UDP targets.
Compilers (e.g. ruso-script) must target opcode::VERSION and the
instruction set documented in opcode.
§Developer documentation
Re-exports§
pub use contract::BodyValue;pub use contract::CmpOp;pub use contract::CmpValue;pub use contract::EvidenceKind;pub use contract::ExtractSource;pub use contract::FieldKind;pub use contract::HttpMethod;pub use contract::InlinePart;pub use contract::InlinePartBody;pub use contract::MatchPredicate;pub use contract::ObjectBody;pub use contract::QualifiedField;pub use contract::QualifiedMatch;pub use contract::Severity;pub use opcode::BytecodeProgram;pub use opcode::MAGIC;pub use opcode::Opcode;pub use opcode::Pc;pub use opcode::VERSION;pub use util::truncate_str;
Modules§
- contract
- Shared types embedded in Ruso bytecode (constant pools and probe specs).
- disasm
- Human-readable bytecode disassembly.
- opcode
- Opcode and bytecode wire-format contract (version 1).
- util
- Shared utility helpers with no domain dependencies.
Structs§
- Check
Metadata - Execution
Result - Executor
- Executor
Config - Finding
- Http
Request Spec - Port
Cache - Port
Check - Result of probing one
host:port(from cache or live TCP connect). - Program
Spec - Report
- Socket
Probe Spec - Generic socket options (shared by dns/tcp/udp probes).
Enums§
Functions§
- build_
client - bytes_
to_ hex - bytes_
to_ hex_ dump - decode_
bytecode - encode_
bytecode - format_
human - hex_
to_ bytes - load_
bytecode_ input - Decode a hex string into raw bytecode bytes.
- parse_
duration - Parse a duration string with one of the supported suffixes: