forked from Broquess/A12-exploit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (16 loc) · 650 Bytes
/
main.py
File metadata and controls
24 lines (16 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from exploit.restore import restore_files, FileToRestore, restore_file
device = None
#print(f"Connected to {device.name}\niOS {device.version}\n")
try:
directory_path = str(input("Directory>> "))
local_file = str(input("drag and drop file here>> "))
file_name = str(input("Enter filename>> "))
with open(local_file, "rb") as f:
file_content = f.read()
restore_files(files=[FileToRestore(
contents=file_content,
restore_path=directory_path,
restore_name=file_name
)], reboot=False, lockdown_client=None)
except Exception as e:
print(e)