MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / is_encrypted_file

Function is_encrypted_file

Scripts/ButSystem.py:3693–3710  ·  view source on GitHub ↗

is_encrypted_file. Internal helper function. This docstring was added automatically to improve maintainability. Args: path: Parameter. Returns: Varies.

(path: str)

Source from the content-addressed store, hash-verified

3691 return ra
3692
3693 # If loopback, allow reverse-proxy headers (cloudflared commonly sets one of these)
3694 for h in ("CF-Connecting-IP", "X-Real-IP"):
3695 v = (request.headers.get(h) or "").strip()
3696 if v:
3697 return v.split(",")[0].strip()
3698 xff = (request.headers.get("X-Forwarded-For") or "").strip()
3699 if xff:
3700 return xff.split(",")[0].strip()
3701 except Exception:
3702 pass
3703 return ra
3704
3705def _is_loopback(ip: str) -> bool:
3706 """_is_loopback.
3707
3708Internal helper function.
3709
3710This docstring was added automatically to improve maintainability.
3711
3712Args:
3713 ip: Parameter.

Callers 14

profile_picFunction · 0.70
downloadFunction · 0.70
view_fileFunction · 0.70
dm_file_streamFunction · 0.70
dm_file_downloadFunction · 0.70
discussion_file_streamFunction · 0.70
discussion_file_downloadFunction · 0.70
discussion_voice_streamFunction · 0.70
dm_voice_streamFunction · 0.70
group_voice_streamFunction · 0.70
profiler_exportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected