diff options
author | Jordan Bracco <href@random.sh> | 2022-03-25 15:44:44 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-03-25 15:44:44 +0000 |
commit | babd144393c0cbfdc28fb475190d9a552070b240 (patch) | |
tree | 927edd0818be95134ece7b819311b0269b3c5fdc /commands/freebsd/ifconfig/list-interfaces-names | |
parent | Initial PoC (diff) |
Diffstat (limited to 'commands/freebsd/ifconfig/list-interfaces-names')
-rwxr-xr-x | commands/freebsd/ifconfig/list-interfaces-names | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/freebsd/ifconfig/list-interfaces-names b/commands/freebsd/ifconfig/list-interfaces-names new file mode 100755 index 0000000..f058404 --- /dev/null +++ b/commands/freebsd/ifconfig/list-interfaces-names @@ -0,0 +1,3 @@ +#!./cloyster + +return_result $(ifconfig | grep -E "^[a-z0-9_]+:" | cut -d ':' -f 1 | jq -nRr '[inputs | select(length>0)] | @json') |