Commit 11ab993
fix: upgrade to OS shell before privesc commands
- _run_privesc_sequence: for Java Meterpreter (arch==java), load stdapi
then execute -f /bin/bash before running any shell commands; verify
shell is usable with 'id || whoami' and fallback execute -H -f /bin/sh
if 'Unknown command' is returned
- Per-attempt timeout: read attempt.get("timeout", 15) so distcc_rce
can use 30s without affecting other vectors
- distcc_rce: use DISTCC_HOSTS='127.0.0.1' distcc /bin/sh -c 'id'
(local test probe) with timeout 30
- msf_local_exploit: cast SESSION to int(session_id)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1887426 commit 11ab993
1 file changed
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
| 402 | + | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
| 425 | + | |
424 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
425 | 452 | | |
426 | 453 | | |
427 | 454 | | |
| |||
437 | 464 | | |
438 | 465 | | |
439 | 466 | | |
| 467 | + | |
440 | 468 | | |
441 | 469 | | |
442 | 470 | | |
443 | 471 | | |
444 | 472 | | |
445 | 473 | | |
446 | 474 | | |
447 | | - | |
| 475 | + | |
448 | 476 | | |
449 | 477 | | |
450 | 478 | | |
451 | 479 | | |
452 | | - | |
| 480 | + | |
453 | 481 | | |
454 | 482 | | |
455 | 483 | | |
| |||
0 commit comments