Adversarial C2 Protocol Implemented in Zig

Keep retrying if there is no interface #1

merged opened by zambyte.robbyzambito.me targeting dev from fix/no-interface-retry
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:r32o5ntbdykfjc5x2djfemzq/sh.tangled.repo.pull/3me2f7ahiep22
+7 -1
Diff #0
+7 -1
src/main.zig
··· 146 146 147 147 if (flags.connect != null) { 148 148 reconnect: while (true) { 149 - client = try .init(); 149 + client = SaprusClient.init() catch |err| switch (err) { 150 + error.NoInterfaceFound => { 151 + try init.io.sleep(.fromMilliseconds(100), .boot); 152 + continue :reconnect; 153 + }, 154 + else => |e| return e, 155 + }; 150 156 defer client.deinit(); 151 157 log.debug("Starting connection", .{}); 152 158

History

1 round 0 comments
sign up or login to add to the discussion
1 commit
expand
Keep retrying if there is no interface
1/1 success
expand
expand 0 comments
pull request successfully merged