#
Protections Test 2 Binary
This protections test binary tests blocking exfiltration via SFTP of data that has been packaged into zip archives.
#
Usage
This binary takes no arguments. Simply compile it and execute it directly via the command-line:
test2.exe
#
Features
- Searches
C:\Users\
forDesktop
,Downloads
, andDocuments
subdirectories. - Packages found directories into zip archives with 15-30 seconds of jitter between creation of archives.
- Archives are created in the binary's current working directory.
- Uploads created zip archives to an SFTP server with 15-30 seconds of jitter between uploads.
#
Logging
For operator usability, the protections test binary will log in plaintext to the console.
#
Build
Pull dependencies, then build:
go get .
go build -o test2.exe main.go
#
Dependencies
golang
version1.22.2
github.com/pkg/sftp
versionv1.13.6
golang.org/x/crypto
versionv0.1.0
#
Quickstart
const DEBUG
can be modified to enable (false
) or disable (true
) the wait between zip creation and SFTP upload.target_folder
can be modified to search a different directory thanC:\Users\
.user
,pass
, andhost
can be updated to use a different SFTP server and account credentials.