Adversarial C2 Protocol Implemented in Zig
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use 0.15.1 for application

+11 -4
+3 -3
src/main.zig
··· 37 37 .allocator = gpa, 38 38 }) catch |err| { 39 39 // Report useful error and exit. 40 - diag.report(std.io.getStdErr().writer(), err) catch {}; 40 + try diag.reportToFile(.stderr(), err); 41 41 return err; 42 42 }; 43 43 defer res.deinit(); 44 44 45 45 if (res.args.help != 0) { 46 - return clap.help(std.io.getStdErr().writer(), clap.Help, &params, .{}); 46 + return clap.helpToFile(.stderr(), clap.Help, &params, .{}); 47 47 } 48 48 49 49 var client = try SaprusClient.init("enp7s0"); ··· 65 65 return; 66 66 } 67 67 68 - return clap.help(std.io.getStdErr().writer(), clap.Help, &params, .{}); 68 + return clap.helpToFile(.stderr(), clap.Help, &params, .{}); 69 69 } 70 70 71 71 fn parseDest(in: ?[]const u8) [4]u8 {
+8 -1
src/root.zig
··· 1 1 pub const Client = @import("Client.zig"); 2 2 pub const Connection = @import("Connection.zig"); 3 3 4 - pub usingnamespace @import("message.zig"); 4 + const msg = @import("message.zig"); 5 + 6 + pub const PacketType = msg.PacketType; 7 + pub const foo = msg.foo; 8 + pub const ConnectionOptions = msg.ConnectionOptions; 9 + pub const MessageTypeError = msg.MessageTypeError; 10 + pub const MessageParseError = msg.MessageParseError; 11 + pub const Message = msg.Message;