diff options
author | Jordan Bracco <href@random.sh> | 2022-03-22 21:36:58 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-03-22 21:36:58 +0000 |
commit | 435531e42f3d1b1d0de291071aedb111d727e57d (patch) | |
tree | f51ae7f59750b41f6ac416e01f102801a1c420b6 /commands/ifconfig/interfaces-names |
Initial PoC
Diffstat (limited to 'commands/ifconfig/interfaces-names')
-rwxr-xr-x | commands/ifconfig/interfaces-names | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/ifconfig/interfaces-names b/commands/ifconfig/interfaces-names new file mode 100755 index 0000000..f058404 --- /dev/null +++ b/commands/ifconfig/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') |