MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / wardriving_interfaces

Function wardriving_interfaces

webapp_modern.py:8420–8442  ·  view source on GitHub ↗

List available WiFi interfaces for wardriving.

()

Source from the content-addressed store, hash-verified

8418 env_extra = []
8419 if socket_names:
8420 wl = sorted(socket_names)[0]
8421 session_label = f"wayland ({wl})"
8422 env_extra = [f"WAYLAND_DISPLAY={wl}", "DISPLAY=:0"]
8423 else:
8424 display = _x11_display_for(entry.pw_uid)
8425 if not display:
8426 continue
8427 session_label = f"x11 ({display})"
8428 env_extra = [f"DISPLAY={display}",
8429 f"XAUTHORITY={os.path.join(entry.pw_dir, '.Xauthority')}"]
8430
8431 cmd = [
8432 'sudo', '-u', entry.pw_name, '-n',
8433 'env',
8434 f"HOME={entry.pw_dir}",
8435 f"XDG_RUNTIME_DIR={runtime_dir}",
8436 ] + env_extra + [
8437 f"RAGNAR_REPO={os.path.dirname(os.path.abspath(__file__))}",
8438 '/usr/local/bin/ragnar-kiosk-run',
8439 ]
8440 try:
8441 subprocess.Popen(
8442 cmd,
8443 stdout=subprocess.DEVNULL,
8444 stderr=subprocess.DEVNULL,
8445 stdin=subprocess.DEVNULL,

Callers

nothing calls this directly

Calls 4

_get_wardriving_engineFunction · 0.85
appendMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected