agent-bypass 2.11.4 → 2.11.6
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.
- package/README.md +3 -2
- package/SKILL.md +5 -3
- package/bin/install.js +6 -3
- package/package.json +1 -1
- package/references/mobile-fast-recon.md +102 -0
- package/scripts/__pycache__/basicauth_brute.cpython-312.pyc +0 -0
- package/scripts/__pycache__/cvefetch.cpython-312.pyc +0 -0
- package/scripts/__pycache__/deck.cpython-312.pyc +0 -0
- package/scripts/__pycache__/depscan.cpython-312.pyc +0 -0
- package/scripts/__pycache__/dirbrute.cpython-312.pyc +0 -0
- package/scripts/__pycache__/fastrecon.cpython-312.pyc +0 -0
- package/scripts/__pycache__/jsrip.cpython-312.pyc +0 -0
- package/scripts/__pycache__/mutate.cpython-312.pyc +0 -0
- package/scripts/__pycache__/portscan.cpython-312.pyc +0 -0
- package/scripts/__pycache__/webprobe.cpython-312.pyc +0 -0
- package/scripts/argsmini.py +158 -0
- package/scripts/basicauth_brute.py +82 -7
- package/scripts/dirbrute.py +505 -71
- package/scripts/fastrecon.py +982 -0
- package/scripts/platf.py +44 -0
- package/scripts/portscan.py +2 -0
package/scripts/platf.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""平台自适配探测(轻量:仅 os/sys,import 成本近零)。
|
|
2
|
+
被 fastrecon / dirbrute / basicauth_brute 共用。"""
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
_ENV = None
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def env():
|
|
10
|
+
global _ENV
|
|
11
|
+
if _ENV is not None:
|
|
12
|
+
return _ENV
|
|
13
|
+
e = {"platform": "linux", "mobile": False, "scan_workers": 512,
|
|
14
|
+
"http_workers": 96, "dns_workers": 48, "timeout_min": 0.5,
|
|
15
|
+
"engine_hint": "auto", "lazy": False}
|
|
16
|
+
if os.path.exists("/proc/ish"):
|
|
17
|
+
e.update(platform="ish", mobile=True, scan_workers=256,
|
|
18
|
+
http_workers=48, dns_workers=32, timeout_min=0.8, lazy=True)
|
|
19
|
+
elif os.environ.get("TERMUX_VERSION") or os.path.exists("/data/data/com.termux"):
|
|
20
|
+
e.update(platform="termux", mobile=True, scan_workers=512,
|
|
21
|
+
http_workers=64, dns_workers=48, timeout_min=0.6)
|
|
22
|
+
elif os.path.exists("/proc/device-tree/model"):
|
|
23
|
+
try:
|
|
24
|
+
m = open("/proc/device-tree/model", "rb").read().decode("utf-8", "ignore")
|
|
25
|
+
if "Raspberry Pi" in m:
|
|
26
|
+
e.update(platform="rpi", scan_workers=768, http_workers=64)
|
|
27
|
+
except OSError:
|
|
28
|
+
pass
|
|
29
|
+
if sys.platform == "darwin":
|
|
30
|
+
e.update(platform="macos")
|
|
31
|
+
elif os.name == "nt":
|
|
32
|
+
e.update(platform="windows")
|
|
33
|
+
_ENV = e
|
|
34
|
+
return e
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def env_line():
|
|
38
|
+
e = env()
|
|
39
|
+
return "env=%s scan/http/dns=%d/%d/%d" % (
|
|
40
|
+
e["platform"], e["scan_workers"], e["http_workers"], e["dns_workers"])
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
if __name__ == "__main__":
|
|
44
|
+
print(env_line())
|