Skip to content

Instantly share code, notes, and snippets.

View Gerg's full-sized avatar

Greg Cobb Gerg

View GitHub Profile
@Gerg
Gerg / java_app_sniffer.py
Last active December 14, 2021 21:07
Python 3 script for detecting Cloud Foundry droplets using the java buildpack (for log4j reasons).
#!/usr/bin/env python3
# Usage:
# ./java_app_sniffer.py
#
# Environment Variables (optional):
# PAGE_SIZE - Specifies how many droplets to retrieve per API request (Default: 5000)
# BUILDPACK_NAME - Specifies the name of the java buildpack for targeted environment (Default: java_buildpack)
#
# Note: