rcekit 3.12.1__tar.gz → 3.15.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rcekit-3.12.1 → rcekit-3.15.0}/CHANGELOG.md +241 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/PKG-INFO +15 -4
- {rcekit-3.12.1 → rcekit-3.15.0}/README.md +14 -3
- {rcekit-3.12.1 → rcekit-3.15.0}/docs/reference.md +80 -8
- {rcekit-3.12.1 → rcekit-3.15.0}/rcekit.egg-info/PKG-INFO +15 -4
- {rcekit-3.12.1 → rcekit-3.15.0}/rcekit.py +645 -98
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/test_docs.py +2 -1
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/test_generator.py +770 -3
- {rcekit-3.12.1 → rcekit-3.15.0}/CONTRIBUTING.md +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/LICENSE +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/MANIFEST.in +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/SECURITY.md +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/docs/generation.md +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/docs/guide.md +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/docs/verify-it-yourself.md +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/pyproject.toml +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/rcekit.egg-info/SOURCES.txt +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/rcekit.egg-info/dependency_links.txt +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/rcekit.egg-info/entry_points.txt +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/rcekit.egg-info/top_level.txt +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/setup.cfg +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/templates/payloads.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/README.md +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/fastjson-1.2.83.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/gitlist-cve-2018-1000533-argv.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/hugegraph-gremlin-eval.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/hugegraph-gremlin-reflected-class.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/hugegraph-gremlin-shell.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/log4shell-cve-2021-44228.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/mongo-express-where-boolean.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/opentsdb-cve-2023-25826.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/php-inclusion-file-read.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/php-inclusion-include-execute.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/struts2-s2-001.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/thinkphp-lang-include-execute.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/tomcat-cve-2017-12615.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107-enumerated.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107-file.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107-time.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107.json +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/requests/mongo-express-literal.txt +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/requests/mongo-express-where.txt +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/requests/webmin.txt +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/bench/runner.py +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/test_bench_runner.py +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tests/test_corpus_embedding.py +0 -0
- {rcekit-3.12.1 → rcekit-3.15.0}/tools/embed_corpus.py +0 -0
|
@@ -10,6 +10,29 @@ formats, or the template schema.
|
|
|
10
10
|
|
|
11
11
|
### Documentation
|
|
12
12
|
|
|
13
|
+
- **The README said a run that reached nothing exits non-zero, and it exits 0.**
|
|
14
|
+
The sentence bundled `error` together with `nothing-tested` and claimed the
|
|
15
|
+
status for both, and it left `blocked` out although the paragraph above it
|
|
16
|
+
names three cases and the heading counts three rows. Measured rather than
|
|
17
|
+
read: `nothing-tested` exits 1, `error` and `blocked` exit 0.
|
|
18
|
+
|
|
19
|
+
The code is right and the sentence was wrong, which is worth stating because
|
|
20
|
+
the opposite conclusion was the tempting one. `CLIExitCodeTestCase` holds the
|
|
21
|
+
contract -- every refusal to *run* exits non-zero, and a completed run exits 0
|
|
22
|
+
even when it confirmed nothing, because that is a result and not a failure --
|
|
23
|
+
and an all-`error` run completed: the probes were built and sent, and nothing
|
|
24
|
+
arrived. `nothing-tested` exits 1 for the other reason, that no probes were
|
|
25
|
+
built at all, which is a configuration refusal and belongs with an unusable
|
|
26
|
+
corpus or a missing `FUZZ`. Changing the exit codes to match the sentence
|
|
27
|
+
would have broken the CLI contract a test already pins.
|
|
28
|
+
|
|
29
|
+
What replaces the claim is what a CI author actually needs, which the sentence
|
|
30
|
+
had been standing in the way of: branch on the verdict rather than on `$?`,
|
|
31
|
+
because the status cannot tell an unreachable target from a clean negative.
|
|
32
|
+
`--detect-json` carries the collapsed `verdict` for exactly that.
|
|
33
|
+
|
|
34
|
+
No version bump -- this is documentation only.
|
|
35
|
+
|
|
13
36
|
- **Two bench notes still named a blocker that had already been removed.** The
|
|
14
37
|
second-order row said "the reason is the harness" and the Chartbrew paragraph
|
|
15
38
|
said "there is no setup hook in the runner" — both true when written, both
|
|
@@ -390,6 +413,220 @@ formats, or the template schema.
|
|
|
390
413
|
|
|
391
414
|
No version bump -- this is documentation and tests only.
|
|
392
415
|
|
|
416
|
+
## [3.15.0] — 2026-11-08
|
|
417
|
+
|
|
418
|
+
Four fixes from running 3.14.0 against a real target on a real terminal, which
|
|
419
|
+
is where all four of these were invisible from a test suite.
|
|
420
|
+
|
|
421
|
+
### Added
|
|
422
|
+
|
|
423
|
+
- **A run states its own verdict, on the last line it prints.**
|
|
424
|
+
|
|
425
|
+
```
|
|
426
|
+
[detect] VERDICT: negative -- the probes reached the target and found nothing
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
`overall_detection_verdict` had been computed for `--detect-json`, for the
|
|
430
|
+
per-point marker and for one advice condition, and never said out loud. A run
|
|
431
|
+
ended on a paragraph of suggestions, so an operator reading a terminal could
|
|
432
|
+
not find what it had decided. The advice still comes first because it is long;
|
|
433
|
+
the answer comes last because it is the answer. Each verdict carries the
|
|
434
|
+
one-clause gloss the README's table makes, and a test holds every verdict the
|
|
435
|
+
engine emits to having one.
|
|
436
|
+
|
|
437
|
+
### Fixed
|
|
438
|
+
|
|
439
|
+
- **Colour could not render on a Windows console.** A console with
|
|
440
|
+
`ENABLE_VIRTUAL_TERMINAL_PROCESSING` unset prints escape sequences instead of
|
|
441
|
+
acting on them, so 3.14.0 would have put `<-[1;33m` in front of every verdict
|
|
442
|
+
on an older console host -- worse than the plain output it replaced. RCEKit
|
|
443
|
+
turns the bit on for its own stdout before writing any sequence, through
|
|
444
|
+
`ctypes` rather than a dependency, and where that fails colour stays off
|
|
445
|
+
instead of producing garbage. Nothing changes off Windows, and nothing
|
|
446
|
+
changes on a Windows Terminal or current `conhost`, which set the bit
|
|
447
|
+
themselves. `--color always` still tries to enable it -- forcing colour onto
|
|
448
|
+
a console that was never asked is how an override turns into a screenful of
|
|
449
|
+
escapes -- it just declines to be refused by the answer.
|
|
450
|
+
|
|
451
|
+
- **`[!]` notices were documented as bold and were not.** 3.14.0 shipped
|
|
452
|
+
`bold()`, said so in its changelog, and never called it from anywhere. The
|
|
453
|
+
function had a test and its *use* did not, so the claim and the code
|
|
454
|
+
disagreed for a release. All 57 notices print through a `warn()` helper now,
|
|
455
|
+
and the test is on a real run's output rather than on the function.
|
|
456
|
+
|
|
457
|
+
- **A clean run rendered entirely grey.** `negative` was deliberately left
|
|
458
|
+
uncoloured so that nothing would read as "safe" -- but it is the commonest
|
|
459
|
+
outcome, and with nothing painted the summary line was indistinguishable from
|
|
460
|
+
the configuration echo above it. The rule that mattered was narrower than
|
|
461
|
+
"no colour": nothing is green. `negative` takes a neutral cyan now, and the
|
|
462
|
+
no-green test is unchanged.
|
|
463
|
+
|
|
464
|
+
- **The configuration echo still scanned as findings.** 3.13.0 gave it a
|
|
465
|
+
heading, which was not enough: the lines under it still wore `[detect]`, the
|
|
466
|
+
tag the findings wear. The run's own settings are tagged **`[config]`** now --
|
|
467
|
+
`sink shell`, `sink shapes`, the five shape descriptions and `methods` -- and
|
|
468
|
+
a test asserts no configuration line is tagged `[detect]`. The separate
|
|
469
|
+
heading is gone, because the tag carries it.
|
|
470
|
+
|
|
471
|
+
## [3.14.0] — 2026-11-07
|
|
472
|
+
|
|
473
|
+
### Added
|
|
474
|
+
|
|
475
|
+
- **A progress line, for the minutes a run used to spend in silence.** One
|
|
476
|
+
self-erasing line on stderr with the elapsed time, the method, the carrier and
|
|
477
|
+
the probe count against the pre-flight's own estimate:
|
|
478
|
+
|
|
479
|
+
```
|
|
480
|
+
[detect] 04:12 reflected unix/raw 412/~2883 probes
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
A detection run against a single parameter sends hundreds to thousands of
|
|
484
|
+
requests and printed nothing while it did -- measured at 13m12s for three
|
|
485
|
+
methods against a local target, silent from the configuration block to the
|
|
486
|
+
findings. The documented runs in this repository are 1154 and 2883 probes.
|
|
487
|
+
|
|
488
|
+
`--progress auto` draws it only where stderr is a terminal, so a captured
|
|
489
|
+
stderr gets no carriage returns; `plain` writes an ordinary line every 25
|
|
490
|
+
probes for a CI log; `none` turns it off, as does `--quiet`. Redraws are
|
|
491
|
+
rate-limited and the line is clamped to the terminal's width, because a line
|
|
492
|
+
that wraps cannot be erased by one carriage return.
|
|
493
|
+
|
|
494
|
+
The OOB listener erases it before printing a `[HIT]`, from its own thread: a
|
|
495
|
+
hit is evidence and must not land in the middle of a line the main thread is
|
|
496
|
+
drawing.
|
|
497
|
+
|
|
498
|
+
- **Colour, and the palette is a statement about the tier rule.** Hue encodes
|
|
499
|
+
the tier and nothing else; weight carries how much a non-finding line matters,
|
|
500
|
+
so `[!]` is bold and has no colour of its own. `executed` is bold red, the
|
|
501
|
+
proven-but-not-execution tiers share yellow, and the run-level failures
|
|
502
|
+
(`error`, `blocked`, `nothing-tested`, `inconclusive`) take bold yellow so a
|
|
503
|
+
run that tested nothing cannot look like the `negative` it is not.
|
|
504
|
+
|
|
505
|
+
**`negative` is uncoloured and there is no green in the palette at all.**
|
|
506
|
+
Green reads as "nothing here", and `negative` does not mean that -- it means
|
|
507
|
+
the probes reached the target. A test asserts the absence of green, because it
|
|
508
|
+
is a property of the tier rule and not of the styling.
|
|
509
|
+
|
|
510
|
+
On when stdout is a terminal with `NO_COLOR` unset and `TERM` not `dumb`;
|
|
511
|
+
`--color never` / `always` override, `FORCE_COLOR` forces. A redirected report
|
|
512
|
+
carries no escape sequences without anyone passing a flag, and colour can
|
|
513
|
+
never reach `--detect-json` or the `-o` exports under any setting -- a test
|
|
514
|
+
runs with `--color always` and asserts the JSON is free of them.
|
|
515
|
+
|
|
516
|
+
Colour is applied only to labels RCEKit generated: a section heading, a
|
|
517
|
+
verdict name, a marker. Never to a payload, a detail or a point label, all of
|
|
518
|
+
which 3.12.2 escapes precisely because the target chooses them -- wrapping
|
|
519
|
+
attacker-chosen bytes in an escape sequence would hand back the control codes
|
|
520
|
+
that escaping took away.
|
|
521
|
+
|
|
522
|
+
No verdict, tier or output schema changed.
|
|
523
|
+
|
|
524
|
+
## [3.13.0] — 2026-11-07
|
|
525
|
+
|
|
526
|
+
### Added
|
|
527
|
+
|
|
528
|
+
- **A banner, and it is two lines.** `RCEKit <version>` and the tier rule, on
|
|
529
|
+
**stderr**, before anything else a run prints. On stderr because stdout is the
|
|
530
|
+
report and has been read out of pipes and redirects since before the banner
|
|
531
|
+
existed; a test asserts stdout is byte-identical with the banner and with
|
|
532
|
+
`--quiet`, which is the whole reason it could be added without changing a
|
|
533
|
+
published surface. Two lines because the screen belongs to the findings -- the
|
|
534
|
+
figlet an operator scrolls past twice in a demo costs more than it gives. The
|
|
535
|
+
second line is the README's own sentence rather than a paraphrase, and a test
|
|
536
|
+
holds the two together, because a banner that states the tier rule in
|
|
537
|
+
different words is a third copy of the rule to keep in sync.
|
|
538
|
+
|
|
539
|
+
- **`-q` / `--quiet`** suppresses the banner. It does not quieten the report:
|
|
540
|
+
there is no flag for that, because a run with no report is a run with no
|
|
541
|
+
purpose.
|
|
542
|
+
|
|
543
|
+
### Changed
|
|
544
|
+
|
|
545
|
+
- **A redirected run printed nothing at all until it exited.** Python
|
|
546
|
+
block-buffers stdout when it is not a terminal and nothing in this module
|
|
547
|
+
flushed, so a run piped into `tee`, captured by `script`, or watched in CI was
|
|
548
|
+
silent for its whole duration. Measured against a target that accepts and
|
|
549
|
+
never answers: the first line arrived after **50.2s**, and arrives after
|
|
550
|
+
**0.2s** now. An operator watching a silent pipe cannot tell a working run
|
|
551
|
+
from a hung one, which is the same failure the missing progress indicator
|
|
552
|
+
causes and the cheaper half of it. stdout is line-buffered from `main` now --
|
|
553
|
+
one call, rather than a `flush=True` on each of a hundred-odd prints that
|
|
554
|
+
somebody has to remember at the next one.
|
|
555
|
+
|
|
556
|
+
- **The run's own configuration no longer reads as findings.** `sink shell`,
|
|
557
|
+
`sink shapes` and the five shape descriptions under them were seven
|
|
558
|
+
`[detect]` lines printed at exactly the weight of an `EXECUTED` row -- in a
|
|
559
|
+
real run the finding was the seventh of them, indistinguishable from the line
|
|
560
|
+
explaining what `env` means. They sit under a `[detect] run configuration:`
|
|
561
|
+
heading now. Deliberately still on stdout and still `[detect]`: moving them
|
|
562
|
+
would break every consumer and every documented transcript for a cosmetic
|
|
563
|
+
gain, which is not the trade this was worth.
|
|
564
|
+
|
|
565
|
+
- **RCEKit's log records go to stderr instead of stdout.** A log record is not
|
|
566
|
+
part of the report, and on stdout it was duplicating one: a generate run
|
|
567
|
+
printed `INFO - Successfully generated 3 payloads to ...` and then
|
|
568
|
+
`Generated 3 payloads to ... in detection mode` -- one fact, twice, in two
|
|
569
|
+
formats, with a timestamp in front of the copy nobody asked for.
|
|
570
|
+
|
|
571
|
+
No verdict, tier or output schema changed. `--detect-json` and the `-o`
|
|
572
|
+
exports are byte-identical.
|
|
573
|
+
|
|
574
|
+
## [3.12.2] — 2026-11-07
|
|
575
|
+
|
|
576
|
+
### Fixed
|
|
577
|
+
|
|
578
|
+
- **A target could write escape sequences into the operator's terminal and
|
|
579
|
+
forge a confirmation.** `terminal_safe` has escaped control characters on the
|
|
580
|
+
`[HIT]` line since the OOB listener landed, for the reason its docstring
|
|
581
|
+
states plainly: a callback's host and path are chosen by the *target*, and an
|
|
582
|
+
ESC byte printed raw lets that target colour, erase and rewrite lines in the
|
|
583
|
+
operator's own terminal. The report's own rows never got the same treatment,
|
|
584
|
+
and one of their fields comes off the wire.
|
|
585
|
+
|
|
586
|
+
When a probe never arrives, the delivery error becomes the observation body.
|
|
587
|
+
`_fire_channels` catches `urllib.error.HTTPError` separately and sends
|
|
588
|
+
everything else to a generic handler whose body is `str(exc)`.
|
|
589
|
+
`http.client.BadStatusLine` is not an `HTTPError`, so a reply that is not a
|
|
590
|
+
valid status line at all lands in that handler carrying the server's raw
|
|
591
|
+
bytes. Those became the `error` verdict's detail, and `[detect] ... NEVER
|
|
592
|
+
REACHED THE TARGET` printed it verbatim.
|
|
593
|
+
|
|
594
|
+
Measured rather than reasoned about: a socket server answering with an
|
|
595
|
+
erase-line sequence followed by a forged `EXECUTED` row wiped the line
|
|
596
|
+
reporting that nothing had reached the target and printed a confirmation in
|
|
597
|
+
its place, for a run that tested nothing. The tier rule is the claim this
|
|
598
|
+
project rests on, and the shape of this bug was that claim being forged by
|
|
599
|
+
the target it is supposed to describe.
|
|
600
|
+
|
|
601
|
+
Every report row now renders through `display_result`, which escapes each
|
|
602
|
+
string field of a result. One function rather than `terminal_safe` at
|
|
603
|
+
fifteen interpolations across the `[detect]`, `[verify]` and `[verify-chain]`
|
|
604
|
+
reports, because a guard applied at fourteen of them is not a guard -- and
|
|
605
|
+
`detail` is the one that was left out. Display only: the result dict,
|
|
606
|
+
`--detect-json` and the written reports keep the bytes verbatim, exactly as
|
|
607
|
+
the OOB hit log does. What arrived stays visible, escaped, so the operator
|
|
608
|
+
can see that something tried this.
|
|
609
|
+
|
|
610
|
+
The same pass closed a legibility bug with the same cause. The `newline` sink
|
|
611
|
+
shape is a real separator, so an ordinary run builds payloads containing a
|
|
612
|
+
literal newline, and the `[detect]` report printed them raw -- splitting the
|
|
613
|
+
EXECUTED row across two lines and leaving its own
|
|
614
|
+
`[method/environment/context]` prefix on the line above, in the section an
|
|
615
|
+
operator reads first. `[verify-chain]` had been printing `repr()` and was
|
|
616
|
+
unaffected; all three reports render the same way now.
|
|
617
|
+
|
|
618
|
+
Three tests, because each catches a different way the fix could come undone:
|
|
619
|
+
`display_result` itself, an end-to-end run against a socket server that
|
|
620
|
+
replies with a malformed status line, and an `ast` walk asserting that no
|
|
621
|
+
f-string in `main` builds a report row from a result field without passing it
|
|
622
|
+
through `display_result`. The last is scoped to f-strings rather than to
|
|
623
|
+
`print` calls on purpose -- the EXECUTED row builds its ` at <point>` fragment
|
|
624
|
+
into a local one statement above the `print`, and a check that looked only
|
|
625
|
+
inside the call missed the field naming the injection point.
|
|
626
|
+
|
|
627
|
+
Version 3.12.1 -> 3.12.2. PATCH: a vulnerability fixed, no capability added
|
|
628
|
+
or changed, and no output schema touched.
|
|
629
|
+
|
|
393
630
|
## [3.12.1] — 2026-10-31
|
|
394
631
|
|
|
395
632
|
### Fixed
|
|
@@ -4064,6 +4301,10 @@ this file and have not been restated here.
|
|
|
4064
4301
|
|
|
4065
4302
|
|
|
4066
4303
|
[Unreleased]: https://github.com/kabiri-labs/rcekit/compare/v2.36.0...HEAD
|
|
4304
|
+
[3.15.0]: https://github.com/kabiri-labs/rcekit/compare/v3.14.0...v3.15.0
|
|
4305
|
+
[3.14.0]: https://github.com/kabiri-labs/rcekit/compare/v3.13.0...v3.14.0
|
|
4306
|
+
[3.13.0]: https://github.com/kabiri-labs/rcekit/compare/v3.12.2...v3.13.0
|
|
4307
|
+
[3.12.2]: https://github.com/kabiri-labs/rcekit/compare/v3.12.1...v3.12.2
|
|
4067
4308
|
[3.12.1]: https://github.com/kabiri-labs/rcekit/compare/v3.12.0...v3.12.1
|
|
4068
4309
|
[3.12.0]: https://github.com/kabiri-labs/rcekit/compare/v3.11.0...v3.12.0
|
|
4069
4310
|
[3.11.0]: https://github.com/kabiri-labs/rcekit/compare/v3.10.0...v3.11.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rcekit
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.15.0
|
|
4
4
|
Summary: RCE detection & confirmation toolkit for authorised penetration testing
|
|
5
5
|
Author: Ahmad Kabiri
|
|
6
6
|
License-Expression: MIT
|
|
@@ -20,11 +20,13 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
License-File: LICENSE
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
|
+

|
|
24
|
+
|
|
23
25
|
# RCEKit
|
|
24
26
|
|
|
25
27
|
**`executed` means the target executed the input. `negative` means the probes reached it.**
|
|
26
28
|
|
|
27
|
-
**Version 3.
|
|
29
|
+
**Version 3.15.0** · MIT · Python 3.8+ · zero third-party dependencies
|
|
28
30
|
|
|
29
31
|
RCEKit is an **RCE detection & confirmation toolkit** for authorised penetration
|
|
30
32
|
testing, red teaming and security research. Point it at a target you are allowed
|
|
@@ -589,8 +591,8 @@ because your flags excluded every one of them, or whose every payload was
|
|
|
589
591
|
refused by a WAF, has learned **nothing** about the target — and printing
|
|
590
592
|
`negative` there is a lie that reads exactly like safety.
|
|
591
593
|
|
|
592
|
-
So `error` and `nothing-tested` are first-class verdicts,
|
|
593
|
-
|
|
594
|
+
So `blocked`, `error` and `nothing-tested` are first-class verdicts, and
|
|
595
|
+
RCEKit says which of them happened and why:
|
|
594
596
|
|
|
595
597
|
```
|
|
596
598
|
[!] No probes were built, so NOTHING WAS TESTED — this is not a negative result.
|
|
@@ -602,6 +604,15 @@ the selected environments, a `--sink-shape` rung the chosen shell has no syntax
|
|
|
602
604
|
for, a `--bridges` selection entirely held back by the safety ceiling, a request
|
|
603
605
|
body that broke delivery before it arrived.
|
|
604
606
|
|
|
607
|
+
**Branch on the verdict, not on the exit status.** The status says whether
|
|
608
|
+
RCEKit could carry the run out, not what the run found. `nothing-tested`
|
|
609
|
+
exits non-zero, because building no probes is a refusal to run and belongs
|
|
610
|
+
with an unusable corpus or a missing `FUZZ`. `error` and `blocked` exit **0**:
|
|
611
|
+
the run completed and the verdict is its result, so a wrapper that reads only
|
|
612
|
+
`$?` cannot tell an unreachable target from a clean negative. Read the
|
|
613
|
+
collapsed `verdict` that `--detect-json` carries, which exists for exactly
|
|
614
|
+
this.
|
|
615
|
+
|
|
605
616
|
A run that was only *partly* blinded gets the same treatment one level down. If
|
|
606
617
|
you asked for a second-order oracle and the observed endpoint never answered, the
|
|
607
618
|
probe verdicts still stand — but the run tells you they were decided without ever
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# RCEKit
|
|
2
4
|
|
|
3
5
|
**`executed` means the target executed the input. `negative` means the probes reached it.**
|
|
4
6
|
|
|
5
|
-
**Version 3.
|
|
7
|
+
**Version 3.15.0** · MIT · Python 3.8+ · zero third-party dependencies
|
|
6
8
|
|
|
7
9
|
RCEKit is an **RCE detection & confirmation toolkit** for authorised penetration
|
|
8
10
|
testing, red teaming and security research. Point it at a target you are allowed
|
|
@@ -567,8 +569,8 @@ because your flags excluded every one of them, or whose every payload was
|
|
|
567
569
|
refused by a WAF, has learned **nothing** about the target — and printing
|
|
568
570
|
`negative` there is a lie that reads exactly like safety.
|
|
569
571
|
|
|
570
|
-
So `error` and `nothing-tested` are first-class verdicts,
|
|
571
|
-
|
|
572
|
+
So `blocked`, `error` and `nothing-tested` are first-class verdicts, and
|
|
573
|
+
RCEKit says which of them happened and why:
|
|
572
574
|
|
|
573
575
|
```
|
|
574
576
|
[!] No probes were built, so NOTHING WAS TESTED — this is not a negative result.
|
|
@@ -580,6 +582,15 @@ the selected environments, a `--sink-shape` rung the chosen shell has no syntax
|
|
|
580
582
|
for, a `--bridges` selection entirely held back by the safety ceiling, a request
|
|
581
583
|
body that broke delivery before it arrived.
|
|
582
584
|
|
|
585
|
+
**Branch on the verdict, not on the exit status.** The status says whether
|
|
586
|
+
RCEKit could carry the run out, not what the run found. `nothing-tested`
|
|
587
|
+
exits non-zero, because building no probes is a refusal to run and belongs
|
|
588
|
+
with an unusable corpus or a missing `FUZZ`. `error` and `blocked` exit **0**:
|
|
589
|
+
the run completed and the verdict is its result, so a wrapper that reads only
|
|
590
|
+
`$?` cannot tell an unreachable target from a clean negative. Read the
|
|
591
|
+
collapsed `verdict` that `--detect-json` carries, which exists for exactly
|
|
592
|
+
this.
|
|
593
|
+
|
|
583
594
|
A run that was only *partly* blinded gets the same treatment one level down. If
|
|
584
595
|
you asked for a second-order oracle and the observed endpoint never answered, the
|
|
585
596
|
probe verdicts still stand — but the run tells you they were decided without ever
|
|
@@ -1277,8 +1277,8 @@ profile with `sink_needs_separator` drops `raw` too. The plan is printed
|
|
|
1277
1277
|
before anything is sent:
|
|
1278
1278
|
|
|
1279
1279
|
```
|
|
1280
|
-
[
|
|
1281
|
-
[
|
|
1280
|
+
[config] sink shapes: auto (full ladder)
|
|
1281
|
+
[config] sep '; ' -- mid-command concatenation
|
|
1282
1282
|
[detect] raw input is the whole command (no separator)
|
|
1283
1283
|
...
|
|
1284
1284
|
```
|
|
@@ -1290,8 +1290,8 @@ rungs ride. The plan says so before the traffic rather than leaving it to be
|
|
|
1290
1290
|
read off a zero-probe run:
|
|
1291
1291
|
|
|
1292
1292
|
```
|
|
1293
|
-
[
|
|
1294
|
-
[
|
|
1293
|
+
[config] sink shapes: none
|
|
1294
|
+
[config] (no rung survives the narrowing, so none of the shell methods will build a probe -- this run will report NOTHING WAS TESTED)
|
|
1295
1295
|
```
|
|
1296
1296
|
|
|
1297
1297
|
The run-wide half of that is claimed only where it holds. Four methods ride
|
|
@@ -1300,8 +1300,8 @@ that also selected `eval`, `boolean`, `deser`, `lookup` or `write` still has
|
|
|
1300
1300
|
probes to send and gets the narrower sentence:
|
|
1301
1301
|
|
|
1302
1302
|
```
|
|
1303
|
-
[
|
|
1304
|
-
[
|
|
1303
|
+
[config] sink shapes: none
|
|
1304
|
+
[config] (no rung survives the narrowing, so none of the shell methods will build a probe; the other selected methods do not ride the ladder and are unaffected)
|
|
1305
1305
|
```
|
|
1306
1306
|
|
|
1307
1307
|
`eval` does not ride the ladder: its probes are template/expression syntax, not
|
|
@@ -1348,8 +1348,8 @@ under `auto`; every other runtime keeps the POSIX shape, since a language does
|
|
|
1348
1348
|
not say which OS it runs on.
|
|
1349
1349
|
|
|
1350
1350
|
```
|
|
1351
|
-
[
|
|
1352
|
-
[
|
|
1351
|
+
[config] sink shell: auto (per carrier)
|
|
1352
|
+
[config] sink shapes: auto (full ladder)
|
|
1353
1353
|
```
|
|
1354
1354
|
|
|
1355
1355
|
### Machine-readable results
|
|
@@ -1497,6 +1497,78 @@ and needs `--verify-active-risk intrusive` as well as `--oob-host`.
|
|
|
1497
1497
|
|---|---|
|
|
1498
1498
|
| `--doctor` | Report which corpus is in use and check its integrity (parses, payload counts); exits non-zero if unusable |
|
|
1499
1499
|
| `--version` | Print the version and exit |
|
|
1500
|
+
| `-q`, `--quiet` | Suppress the banner and the progress line. The report is unchanged — it is what the run is for |
|
|
1501
|
+
| `--color` | `auto` (a terminal, with `NO_COLOR` unset), `always`, `never`. Hue encodes the tier and nothing else |
|
|
1502
|
+
| `--progress` | `auto` (one self-erasing line on a terminal), `plain` (a line every 25 probes, for a log), `none` |
|
|
1503
|
+
|
|
1504
|
+
### Which stream carries what
|
|
1505
|
+
|
|
1506
|
+
**stdout is the report, and nothing else is on it.** The two banner lines go to
|
|
1507
|
+
stderr, and so do RCEKit's own log records. That split is what lets a wrapper
|
|
1508
|
+
keep reading stdout exactly as it did before the banner existed:
|
|
1509
|
+
|
|
1510
|
+
```bash
|
|
1511
|
+
python rcekit.py --acknowledge-consent --verify-url "$URL" --methods reflected \
|
|
1512
|
+
> findings.txt 2> run.log
|
|
1513
|
+
```
|
|
1514
|
+
|
|
1515
|
+
The progress line goes to stderr too, and only to a terminal: redirect stderr
|
|
1516
|
+
and you get the banner and nothing else, with no carriage returns in the file.
|
|
1517
|
+
`--progress plain` is the opposite trade — an ordinary line every 25 probes,
|
|
1518
|
+
which is what you want in a CI log that nobody watches live. `--progress none`
|
|
1519
|
+
turns it off.
|
|
1520
|
+
|
|
1521
|
+
`--quiet` drops the banner and the progress line for a run whose stderr you
|
|
1522
|
+
would rather keep empty. It does not quieten the report; there is no flag for
|
|
1523
|
+
that, because a run with no report is a run with no purpose.
|
|
1524
|
+
|
|
1525
|
+
### Colour
|
|
1526
|
+
|
|
1527
|
+
Colour is on when stdout is a terminal, `NO_COLOR` is unset and `TERM` is not
|
|
1528
|
+
`dumb`; `--color never` and `--color always` override all of that, and
|
|
1529
|
+
`FORCE_COLOR` forces it on a pipe.
|
|
1530
|
+
|
|
1531
|
+
**On Windows** a console also has to be told to interpret escape sequences, so
|
|
1532
|
+
RCEKit turns `ENABLE_VIRTUAL_TERMINAL_PROCESSING` on for its own stdout before
|
|
1533
|
+
writing any. Where that fails — an old console host, a stdout that is not a
|
|
1534
|
+
console — colour stays off rather than printing `<-[1;33m` in front of every
|
|
1535
|
+
verdict. Windows Terminal and current `conhost` already have the bit set, so
|
|
1536
|
+
there is usually nothing to change. No dependency is involved: the call goes
|
|
1537
|
+
through `ctypes`, which is in the standard library. A redirected report therefore carries no
|
|
1538
|
+
escape sequences without you asking for that, and `--detect-json` never does
|
|
1539
|
+
under any setting — it is a file and a published schema.
|
|
1540
|
+
|
|
1541
|
+
Every run ends with its own verdict on the last line, coloured by tier:
|
|
1542
|
+
|
|
1543
|
+
```
|
|
1544
|
+
[detect] VERDICT: negative -- the probes reached the target and found nothing
|
|
1545
|
+
```
|
|
1546
|
+
|
|
1547
|
+
The run's settings are tagged `[config]` rather than `[detect]`, so the echo of
|
|
1548
|
+
what you asked for does not scan as what was found. `[!]` notices are bold.
|
|
1549
|
+
|
|
1550
|
+
**Hue encodes the tier and nothing else.** One axis, one meaning:
|
|
1551
|
+
|
|
1552
|
+
| Rendered | Verdicts |
|
|
1553
|
+
|---|---|
|
|
1554
|
+
| bold red | `executed` — the one tier that is execution |
|
|
1555
|
+
| yellow | `timing-sink`, `file-write`, `file-read`, `evaluation-sink`, `deserialization-sink`, `lookup-sink`, `needs-review` — real, and not RCE |
|
|
1556
|
+
| bold yellow | `error`, `blocked`, `nothing-tested`, `inconclusive` — a run that did not test what you asked |
|
|
1557
|
+
| cyan | `negative` |
|
|
1558
|
+
| bold, no colour | `[!]` operator notices |
|
|
1559
|
+
|
|
1560
|
+
**There is no green anywhere**, which is the rule that matters. Green reads as
|
|
1561
|
+
"nothing here", and `negative` does not mean that: it means the probes reached
|
|
1562
|
+
the target. A test asserts the palette contains no green, because that is a
|
|
1563
|
+
property of the tier rule rather than of the styling. `negative` takes a neutral
|
|
1564
|
+
cyan instead of nothing at all — leaving it plain made the commonest outcome
|
|
1565
|
+
render entirely grey, with its own summary indistinguishable from the
|
|
1566
|
+
configuration above it.
|
|
1567
|
+
|
|
1568
|
+
stdout is **line-buffered even when it is redirected**, so a long run shows its
|
|
1569
|
+
plan and its findings as they happen rather than all at once when the process
|
|
1570
|
+
exits. A redirected run used to print nothing at all until it finished, which is
|
|
1571
|
+
indistinguishable from a hang.
|
|
1500
1572
|
|
|
1501
1573
|
### Corpus resolution
|
|
1502
1574
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rcekit
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.15.0
|
|
4
4
|
Summary: RCE detection & confirmation toolkit for authorised penetration testing
|
|
5
5
|
Author: Ahmad Kabiri
|
|
6
6
|
License-Expression: MIT
|
|
@@ -20,11 +20,13 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
License-File: LICENSE
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
|
+

|
|
24
|
+
|
|
23
25
|
# RCEKit
|
|
24
26
|
|
|
25
27
|
**`executed` means the target executed the input. `negative` means the probes reached it.**
|
|
26
28
|
|
|
27
|
-
**Version 3.
|
|
29
|
+
**Version 3.15.0** · MIT · Python 3.8+ · zero third-party dependencies
|
|
28
30
|
|
|
29
31
|
RCEKit is an **RCE detection & confirmation toolkit** for authorised penetration
|
|
30
32
|
testing, red teaming and security research. Point it at a target you are allowed
|
|
@@ -589,8 +591,8 @@ because your flags excluded every one of them, or whose every payload was
|
|
|
589
591
|
refused by a WAF, has learned **nothing** about the target — and printing
|
|
590
592
|
`negative` there is a lie that reads exactly like safety.
|
|
591
593
|
|
|
592
|
-
So `error` and `nothing-tested` are first-class verdicts,
|
|
593
|
-
|
|
594
|
+
So `blocked`, `error` and `nothing-tested` are first-class verdicts, and
|
|
595
|
+
RCEKit says which of them happened and why:
|
|
594
596
|
|
|
595
597
|
```
|
|
596
598
|
[!] No probes were built, so NOTHING WAS TESTED — this is not a negative result.
|
|
@@ -602,6 +604,15 @@ the selected environments, a `--sink-shape` rung the chosen shell has no syntax
|
|
|
602
604
|
for, a `--bridges` selection entirely held back by the safety ceiling, a request
|
|
603
605
|
body that broke delivery before it arrived.
|
|
604
606
|
|
|
607
|
+
**Branch on the verdict, not on the exit status.** The status says whether
|
|
608
|
+
RCEKit could carry the run out, not what the run found. `nothing-tested`
|
|
609
|
+
exits non-zero, because building no probes is a refusal to run and belongs
|
|
610
|
+
with an unusable corpus or a missing `FUZZ`. `error` and `blocked` exit **0**:
|
|
611
|
+
the run completed and the verdict is its result, so a wrapper that reads only
|
|
612
|
+
`$?` cannot tell an unreachable target from a clean negative. Read the
|
|
613
|
+
collapsed `verdict` that `--detect-json` carries, which exists for exactly
|
|
614
|
+
this.
|
|
615
|
+
|
|
605
616
|
A run that was only *partly* blinded gets the same treatment one level down. If
|
|
606
617
|
you asked for a second-order oracle and the observed endpoint never answered, the
|
|
607
618
|
probe verdicts still stand — but the run tells you they were decided without ever
|