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
Connection by default
Robby Zambito
2 months ago
19c2b78d
3c5f34d5
+3
-6
1 changed file
expand all
collapse all
unified
split
src
main.zig
+3
-6
src/main.zig
···
26
26
27
27
const args = try init.minimal.args.toSlice(init.arena.allocator());
28
28
29
29
-
if (args.len == 1) {
30
30
-
std.debug.print("{s}", .{help});
31
31
-
return;
32
32
-
}
33
33
-
34
29
var flags: struct {
35
30
relay: ?[]const u8 = null,
36
31
dest: ?[]const u8 = null,
37
32
connect: ?[]const u8 = null,
38
33
} = .{};
39
34
40
40
-
{
35
35
+
if (args.len == 1) {
36
36
+
flags.connect = "";
37
37
+
} else {
41
38
var i: usize = 1;
42
39
while (i < args.len) : (i += 1) {
43
40
if (to_option.get(args[i])) |opt| {