Recon toolkit via Exegol my-resources (scripts + aliases + preloaded history)#3
Merged
Conversation
…kups) from crawled urls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A recon script/alias library that lives in Exegol via the standard my-resources mechanism, deployed idempotently by dotsec, driven by the engagement's env vars. dotsec only deploys the bundle — execution happens entirely inside Exegol.
exegol/my-resources/restructured to the standard Exegol layout (bin/,fragments/), replacing the old non-standard/opt/resources/dotenv-sec/setup.sh.deploy.shmerges the bundle into~/.exegol/my-resources/with idempotent delimited blocks (# >>> dotsec >>>…# <<< dotsec <<<) — never clobbers the user's own aliases/history/setup.bin/scripts (env-driven,$DOMAIN/$WORKSPACE, fail-fast guard):recon-subs→recon-alive→recon-crawl(urls/js/params) →recon-loot(pull juicy files: json/js/zip/tar/bak/rar/sql/config… from the crawled link list) →recon-sourcemaps(detect.js.map, reconstruct source) ;recon-fullchains them.dl <target>loads an engagement env into a fresh Exegol shell.load_user_setup.shfragment installs only what Exegol lacks (uv/pnpm, unwebpack-sourcemap) — ProjectDiscovery tools untouched.exegol-setupnow callsdeploy.sh;lib/exegol.shsetup + docs point at the standard/opt/my-resources/paths.Test Plan
make lint— shellcheck clean (incl. deploy.sh + all bin scripts)make test— 50/50 bats (deploy idempotence + user-content preservation, dl, recon guards)deploy.shdry-run into a temp dir: 7 scripts deployed + executable, 3 delimited blocks merged, re-run leaves a single blockrecon-fullruns the pipeline and fills$WORKSPACE/recon/(subdomains, alive, allurls, js, loot/, src/) — requires Exegol + ProjectDiscovery toolsReal pipelines aren't CI-testable (tools + network + Exegol); only the merge logic and guards are.