diff options
| author | Gabriel Schneider <[email protected]> | 2026-02-19 23:21:06 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-02-19 23:21:06 -0300 |
| commit | 169ba71c6ca54be373a3bbccf17ba199bba17ca8 (patch) | |
| tree | ff7edd742f5e95f9e14e395434e124341696b7ab /spell.zig | |
| parent | cea7000b4c911166faa90a6d0516ca0f12920fbb (diff) | |
| download | codenomicon-169ba71c6ca54be373a3bbccf17ba199bba17ca8.tar.gz codenomicon-169ba71c6ca54be373a3bbccf17ba199bba17ca8.zip | |
added option to run with gdb
Diffstat (limited to 'spell.zig')
| -rw-r--r-- | spell.zig | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spell.zig b/spell.zig deleted file mode 100644 index 5439a6c..0000000 --- a/spell.zig +++ /dev/null @@ -1,28 +0,0 @@ -const std = @import("std"); -const config = @import("config"); -const cs = @import("capstone"); -const elfo = @import("./src/elfo.zig"); - -var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init; -const alloc = gpa.allocator(); - -// FIXME: call capstone on the sections -// FIXME: missing reading the elf sections - -pub fn main() !void { - std.debug.print("abracadabra! -> {s}\n", .{config.vessel}); - // std.debug.print("abracadabra! -> {x} {s}\n", .{ config.vessel_contents, config.vessel }); - - var child = std.process.Child.init(&.{config.vessel}, alloc); - try child.spawn(); - child.stdin_behavior = .Pipe; - child.stdout_behavior = .Pipe; - child.stderr_behavior = .Pipe; - - // var buf: [8]u8 = undefined; - - // const bytes = try child.stdout.?.read(&buf); - // std.debug.print("stdout {x}\n", .{bytes}); - - _ = try child.wait(); -} |
