Last active
June 9, 2021 19:28
-
-
Save noraj/fe31ead6943803a660de1f1972c0ed4d to your computer and use it in GitHub Desktop.
List installed BA pentest tools + description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'csv' | |
installed_tools = %x(pacman -Sl blackarch).split("\n").grep(/\[installed\]/) | |
tools_list = [] | |
installed_tools.each do |line| | |
_repo, tool, _version, _status = line.split(' ', 4) | |
description = %x(pacman -Qs #{tool}).split("\n")[1].strip | |
tools_list << [tool, description] | |
end | |
puts tools_list.map(&:to_csv).join |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
installed_tools=$(pacman -Sl blackarch | grep "\[installed\]" | cut -f 2 -d ' ') | |
for p in $installed_tools | |
do | |
echo $p | |
pacman -Qs $p | tail -1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment