Add output ROM version on start exploit

This commit is contained in:
remittor
2021-11-03 09:54:23 +03:00
parent 6da78e4252
commit 3ca22df5dd
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -38,6 +38,7 @@ if gw.status < 1:
dname = gw.device_name
print("device_name =", gw.device_name)
print("rom_version = {} {}".format(gw.rom_version, gw.rom_channel))
if gw.ping(verbose = 0) is True:
die(0, "Exploit already installed and running")
@@ -162,6 +163,8 @@ if (fn_payload2):
if (fn_payload3):
requests.post(urlapi + "misystem/c_upload", files={"image":open(fn_payload3, 'rb')})
time.sleep(1)
if gw.use_ssh:
print("Running SSH server on port 122...")
else: