SamAndPel / grab-stick

A set of python utilities to automatically exfiltrate system data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grab-stick

Stored at: https://github.com/SamAndPel/grab-stick

A set of python utilities to rapidly gather system data.

Designed for Windows 10, but may extend to Linux in the future.

Installation/usage

  1. Run pip install to install all required modules from requirements.txt
  2. Run main.py

Design

./grabstick contains a series of python libraries, each which extracts one element of system data, returning a DICT. Main.py runs each of these, and renders the output to JSON in a folder named for the time and date of the scan.

The system can be extended by creating more scripts in ./grabstick, and importing them into main.py

Originally designed to autorun on USB insert (hence the name 'grabstick'), this feature had to be cut due to lack of time and unexpected complexity. I may implement it in the future.

Features

  • Grab basic hardware information
  • Grab local OS version
  • Grab local user account names
  • Grab local groups, and the users in every group
  • Grab local network connection history, names and passwords
  • Grab all running processes, and relevant info about each
  • Grab any accessible SSH keys
  • Uses threading to optimise speed
  • Export to JSON for easy visualisation at a later date

Stretch features

  • Script autoruns on USB plugin
  • Store all collected data on the USB stick, then automatically eject itself
  • Grab encrypted password hashes from SAM/shadow file
  • Emulate a USB keyboard/network device (may have to move to another platform - Raspberry Pi Zero?)
  • Disguise running scripts as system processes
  • Similar functionality on Linux devices
  • Escalate privileges to get extra data
  • Purge relevant logs before disconnect (may require root)

About

A set of python utilities to automatically exfiltrate system data.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%