forked from netspooky/BGGP
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
BGGP EntryBGGP6This issue was created during BGGP6This issue was created during BGGP6VerifiedThis entry has been verifiedThis entry has been verified
Description
Entry Info
- Date: 2025-11-12
- BGGP Challenge: 6
- Name: dtmsecurity
- Contact Info: https://x.com/dtmsecurity
- Online Presence: https://dtm.uk/
- Writeup Link: https://rap.sh/Python_Pip_Golf
File Info
- Target File Type: .tgz (gzipped tar archive - pip package)
- Target File Size: 67 bytes
- SHA256 Hash: ddc6197c37e92ad21f144475507af9bb530c56c394d8b4bb05eb5035f466326b
File Contents
H4sIAAAAAAAC//PQL04tKS3QK6hkoBkwgABctIGBIRIbLG5mAqQUDBhGAa1BQVFmXomGmeZoSIxMAAC5YTaHAAQAAA==
Environment Info
Target Software and Version
- Python: 3.8 or later
- pip: Any version (tested with pip 21.0+)
Environment Setup
Description of Target Software's Environment (Platform/OS, Setup Instructions, etc.)
Platform: Linux, macOS, or Windows
Setup Instructions:
- Install Python 3.8 or later
- Ensure pip is installed (usually comes with Python)
- Run:
pip install bggp6_minimal_67b.tgz -v
Expected Behavior:
- Prints "6" during installation (visible with
-vflag) - Installation will error out (expected behavior for minimal entry)
- Uses old-style pre-POSIX tar format without EOF marker
Additional Info
Technical Details:
- Uses pre-POSIX old-style tar format (no ustar magic bytes)
- Directory name optimized to single character 'H' for best gzip compression
- File permissions set to 000 (compresses better than standard 644)
- No tar EOF marker (saves 7 bytes)
- Payload:
print(6)(8 bytes)
Optimizations:
- Old-style tar format avoids ustar header overhead
- Single-char directory 'H' chosen for optimal gzip compression with this specific payload
- Mode 000 compresses better than any other permission set
- No EOF marker - tar archives can function without the traditional 1024-byte null trailer
Test Command:
pip install bggp6_minimal_67b.tgz -vExpected Output:
The package will print "6" during installation before erroring out due to missing metadata.
Metadata
Metadata
Assignees
Labels
BGGP EntryBGGP6This issue was created during BGGP6This issue was created during BGGP6VerifiedThis entry has been verifiedThis entry has been verified