Skip to content

Commit 5a12af5

Browse files
committed
Use passive website probing in S3 test workflows
1 parent f2fac18 commit 5a12af5

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ uv run subrecon -d example.com -o perimeter_report.json
105105
```bash
106106
S3_CANARY="$(uv run python scripts/select_s3_canary.py || true)"
107107
S3_TARGET="${S3_CANARY:-subrecon-negative-s3-$(date +%s)}"
108-
uv run subrecon -d "${S3_TARGET}.test" --keywords "$S3_TARGET" --no-ct --no-search --no-subfinder --no-amass --no-gcp --no-azure -o s3_report.json
108+
uv run subrecon -d "${S3_TARGET}.test" --keywords "$S3_TARGET" --s3-website-probe --no-ct --no-search --no-subfinder --no-amass --no-gcp --no-azure -o s3_report.json
109109
```
110110

111111
### Takeover-focused check

docs/TESTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ uv run subrecon -d example.com --search-providers commoncrawl --no-ct --no-subfi
8585
# S3 only (auto-select live canary; fallback to deterministic negative control)
8686
S3_CANARY="$(uv run python scripts/select_s3_canary.py || true)"
8787
S3_TARGET="${S3_CANARY:-subrecon-negative-s3-$(date +%s)}"
88-
uv run subrecon -d "${S3_TARGET}.test" --keywords "$S3_TARGET" --no-ct --no-subfinder --no-amass --no-search --no-gcp --no-azure --no-takeover -o /tmp/subrecon_s3_smoke.json
88+
uv run subrecon -d "${S3_TARGET}.test" --keywords "$S3_TARGET" --s3-website-probe --no-ct --no-subfinder --no-amass --no-search --no-gcp --no-azure --no-takeover -o /tmp/subrecon_s3_smoke.json
8989

9090
# GCS bucket only (existence/listability signal)
9191
uv run subrecon -d gcp-public-data.test --keywords gcp-public-data-landsat --no-ct --no-subfinder --no-amass --no-search --no-s3 --no-azure --no-takeover -o /tmp/subrecon_gcp_smoke.json
@@ -134,7 +134,7 @@ uv run subrecon -d iana.org --search-providers commoncrawl --no-ct --no-subfinde
134134
# S3 only (auto-select live canary; fallback to deterministic negative control)
135135
S3_CANARY="$(uv run python scripts/select_s3_canary.py || true)"
136136
S3_TARGET="${S3_CANARY:-subrecon-negative-s3-$(date +%s)}"
137-
uv run subrecon -d "${S3_TARGET}.test" --keywords "$S3_TARGET" --no-ct --no-subfinder --no-amass --no-search --no-gcp --no-azure --no-takeover -o /tmp/subrecon_live3_s3_only.json
137+
uv run subrecon -d "${S3_TARGET}.test" --keywords "$S3_TARGET" --s3-website-probe --no-ct --no-subfinder --no-amass --no-search --no-gcp --no-azure --no-takeover -o /tmp/subrecon_live3_s3_only.json
138138

139139
# GCS only
140140
uv run subrecon -d gcp-public-data.test --keywords gcp-public-data-landsat --no-ct --no-subfinder --no-amass --no-search --no-s3 --no-azure --no-takeover -o /tmp/subrecon_live3_gcp_only.json

scripts/run_pilot_test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,15 @@ PY
152152
echo "$S3_CANARY_BUCKET" > "$OUT_DIR/s3_canary_bucket.txt"
153153
run_case s3_only_canary \
154154
uv run subrecon -d "${S3_CANARY_BUCKET}.test" --keywords "$S3_CANARY_BUCKET" \
155+
--s3-website-probe \
155156
--no-ct --no-subfinder --no-amass --no-search --no-gcp --no-azure --no-takeover
156157
else
157158
echo "[!] selector returned empty S3 canary bucket; using negative-control bucket case"
158159
S3_NEGATIVE_BUCKET="subrecon-negative-s3-$(date +%s)"
159160
echo "$S3_NEGATIVE_BUCKET" > "$OUT_DIR/s3_negative_bucket.txt"
160161
run_case s3_only_negative_control \
161162
uv run subrecon -d "${S3_NEGATIVE_BUCKET}.test" --keywords "$S3_NEGATIVE_BUCKET" \
163+
--s3-website-probe \
162164
--no-ct --no-subfinder --no-amass --no-search --no-gcp --no-azure --no-takeover
163165
fi
164166
else
@@ -167,6 +169,7 @@ else
167169
echo "$S3_NEGATIVE_BUCKET" > "$OUT_DIR/s3_negative_bucket.txt"
168170
run_case s3_only_negative_control \
169171
uv run subrecon -d "${S3_NEGATIVE_BUCKET}.test" --keywords "$S3_NEGATIVE_BUCKET" \
172+
--s3-website-probe \
170173
--no-ct --no-subfinder --no-amass --no-search --no-gcp --no-azure --no-takeover
171174
fi
172175

0 commit comments

Comments
 (0)