Skip to content

Commit

Permalink
migrate yaml BOF collection to cli4bofs tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mzet- committed Dec 13, 2024
1 parent c465919 commit dcb3c86
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 79 deletions.
61 changes: 0 additions & 61 deletions BOFs-3rdparty-doc.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions bofs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Z-Labs BOFs collection

## BOFs written and maintained by [Z-Labs](https://z-labs.eu/)

| BOF name | Description | Supported platforms | Example
| ------------- | ---------------------------------------------------- | --------------------------- | ------------------ |
| [tcpScanner](src/tcpScanner.zig) | TCP connect() port scanner | `Linux x86/x86_64/ARMv6+/AArch64`; `Windows x86/x86_64` | `tcpScanner 4.3.2.1-255:22,80` |
Expand Down Expand Up @@ -29,10 +27,3 @@
| ------------- | ---------------------------------------------------- | --------------------------- | ------------------ |
| [ifconfig](src/net-tools/ifconfig.zig) | Display the status of the currently active network interfaces. Manipulate current state of the device | `Linux x86/x86_64/ARMv6+/AArch64` | `ifconfig eth0 promisc` |

## Documentation for selected 3rd party BOFs

| BOF name | Description | Supported platforms | Example | BOF usage | Author |
| ------------- | ---------------------------------------------------- | --------------------------- | ------------------- | ------------ | ----------- |
| [cat](https://raw.githubusercontent.com/trustedsec/ELFLoader/main/SA/src/cat.c) | Concatenate file to stdout | `Linux x86/x86_64/ARMv6+/AArch64` | `cat /etc/passwd` | [metadata](https://github.com/The-Z-Labs/bof-launcher/blob/main/BOFs-3rdparty-doc.yaml#L2) | [Trustedsec](https://github.com/trustedsec/ELFLoader)
| [tasklist](https://raw.githubusercontent.com/trustedsec/ELFLoader/main/SA/src/tasklist.c) | Report a snapshot of the current processes | `Linux x86/x86_64/ARMv6+/AArch64` | `tasklist` | [metadata](https://github.com/The-Z-Labs/bof-launcher/blob/main/BOFs-3rdparty-doc.yaml#L18) | [Trustedsec](https://github.com/trustedsec/ELFLoader)
| [pwd](https://raw.githubusercontent.com/trustedsec/ELFLoader/main/SA/src/pwd.c) | Print name of current/working directory | `Linux x86/x86_64/ARMv6+/AArch64` | `pwd` | [metadata](https://github.com/The-Z-Labs/bof-launcher/blob/main/BOFs-3rdparty-doc.yaml#L34) | [Trustedsec](https://github.com/trustedsec/ELFLoader)
9 changes: 0 additions & 9 deletions bofs/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,6 @@ fn generateBofCollectionYaml(
}
}
}

const bof_yaml_3p = std.fs.cwd().openFile("BOFs-3rdparty-doc.yaml", .{}) catch return;
defer bof_yaml_3p.close();

const bof_yaml_3p_content = try bof_yaml_3p.reader().readAllAlloc(allocator, std.math.maxInt(u32));
defer allocator.free(bof_yaml_3p_content);

try doc_file.writeAll("\n");
try doc_file.writeAll(bof_yaml_3p_content);
}

fn getBofSourcePathAndLang(
Expand Down

0 comments on commit dcb3c86

Please sign in to comment.