from mk_nko_wg_exec import connect_mk jump, mk = connect_mk() sftp = mk.open_sftp() with sftp.file("hotspot/login.html", "r") as f: body = f.read() sftp.close() mk.close() jump.close() if isinstance(body, bytes): body = body.decode("utf-8", "replace") print("len", len(body)) print("woHotspotLite", "woHotspotLite" in body) print("slide-1.jpg local", "slide-1.jpg" in body) print("remote 83.147", "83.147.38.107" in body) print("styles/style.css", "styles/style.css" in body) print("bootstrap.css", "bootstrap.css" in body) print("ui/ui_custom", "ui/ui_custom" in body) print("snippet", body[body.find("