Skip to content

Instantly share code, notes, and snippets.

@noraj
Last active June 9, 2021 19:28
Show Gist options
  • Save noraj/fe31ead6943803a660de1f1972c0ed4d to your computer and use it in GitHub Desktop.
Save noraj/fe31ead6943803a660de1f1972c0ed4d to your computer and use it in GitHub Desktop.
List installed BA pentest tools + description
#!/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
#!/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