Skip to content

Instantly share code, notes, and snippets.

@noraj
Last active Jun 9, 2021
Embed
What would you like to do?
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