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

Function network_mark_proxy_bad

Scripts/Settings.py:7211–7218  ·  view source on GitHub ↗
(country, proxy, ttl=NETWORK_BAD_PROXY_TTL)

Source from the content-addressed store, hash-verified

7209 send_json(self, 200, {'ok': True, 'authenticated': True, 'config': public_config(config)}, extra_headers=[('Set-Cookie', 'dedsec_os_auth=' + token + '; Path=/; HttpOnly; SameSite=Lax')])
7210 return
7211 REQUEST_CONTEXT.username = current_request_username(self)
7212 if is_auth_enabled() and not is_request_authenticated(self):
7213 send_json(self, 401, {'ok': False, 'error': 'Authentication required.'})
7214 return
7215 if route == '/api/terminal/run':
7216 session_id = payload.get('session_id') or 'web-shell'
7217 session = run_web_shell_command(session_id, payload.get('command', ''))
7218 send_json(self, 200, {'ok': True, 'session': session})
7219 return
7220 if route == '/api/terminal/input':
7221 session_id = payload.get('session_id') or 'web-shell'

Callers 1

Calls 2

network_load_proxy_stateFunction · 0.70
network_save_proxy_stateFunction · 0.70

Tested by

no test coverage detected