Skip to content

Instantly share code, notes, and snippets.

@sierra-tango-echo
Last active June 17, 2025 16:08
Show Gist options
  • Select an option

  • Save sierra-tango-echo/168628285834a15978cc69f79f880dc8 to your computer and use it in GitHub Desktop.

Select an option

Save sierra-tango-echo/168628285834a15978cc69f79f880dc8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Prerequisites
yum install -y wget dmidecode git ipmitool
# Setup repo
yum -y install https://repo.openflighthpc.org/pub/centos/7/openflighthpc-release-latest.noarch.rpm
# Install hunter
yum makecache
yum install -y https://repo.openflighthpc.org/openflight-vault/centos/7/x86_64/flight-hunter-0.0.9-1.el7.x86_64.rpm https://repo.openflighthpc.org/openflight/centos/8/x86_64/flight-runway-1.1.5-1.el8.x86_64.rpm
# Install gather
git clone https://github.com/openflighthpc/flight-inventory-data-gatherer.git /root/gatherer
chmod +x /root/gatherer/build
#GATHER & HUNT
echo "cd /root/gatherer/build && ./gather-data-bundled.sh payload" | bash -l
chmod 755 /tmp/payload.zip
od -An -vtx1 /tmp/payload.zip > /tmp/payload.txt
export HOME=/root
#hack to make things work fsr
cd /opt/flight/opt/hunter/
/opt/flight/bin/bundle update --bundler
#/opt/flight/bin/flight hunter send --server 10.10.0.1 --file /tmp/payload.txt --spoof `dmidecode -s system-serial-number`
/opt/flight/bin/flight hunter send --server 10.10.0.1 --spoof `dmidecode -s system-serial-number`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment