The Thunderstorm collector script library is a library of script examples that you can use for sample collection purposes.
A shell script for Linux.
- bash
- wget
You can run it like:
bash ./thunderstorm-collector.sh
The most common use case would be a collector script that looks e.g. for files that have been created or modified within the last X days and runs every X days.
Successfully tested on:
- Debian 10
A Batch script for Windows.
Warning: The FOR loop used in the Batch script tends to leak memory. We couldn't figure out a clever hack to avoid this behaviour and therefore recommend using the Go based Thunderstorm Collector on Windows systems.
- curl (Download here)
Windows 10 already includes a curl since build 17063, so all versions newer than version 1709 (Redstone 3) from October 2017 already meet the requirements
The last version of curl that works with Windows 7 / Windows 2008 R2 and earlier is v7.46.0 and can be still be downloaded from here
You can run it like:
thunderstorm-collector.bat
Successfully tested on:
- Windows 10
- Windows 2003
- Windows XP
A PowerShell script for Windows.
- PowerShell version 3
You can run it like:
powershell.exe -ep bypass .\thunderstorm-collector.ps1
Collect files from a certain directory
powershell.exe -ep bypass .\thunderstorm-collector.ps1 -ThunderstormServer my-thunderstorm.local -Folder C:\ProgramData\Suspicious
Collect all files created within the last 24 hours from partition C:\
powershell.exe -ep bypass .\thunderstorm-collector.ps1 -ThunderstormServer my-thunderstorm.local -MaxAge 1
Please review the configuration section in the PowerShell script for more settings.
Successfully tested on:
- Windows 10
- Windows 7
A Perl script collector.
- Perl version 5
- LWP::UserAgent
You can run it like:
perl thunderstorm-collector.pl -- -s thunderstorm.internal.net
Collect files from a certain directory
perl thunderstorm-collector.pl -- --dir /home --server thunderstorm.internal.net
Please review the configuration section in the Perl script for more settings like the maximum age, maximum file size or directory exclusions.
Successfully tested on:
- Debian 10