Added xmir_base module and directory

This commit is contained in:
remittor
2023-10-22 00:28:36 +03:00
parent 370d90b2f0
commit 5f8eca833b
22 changed files with 58 additions and 20 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
import read_info import read_info
+1 -1
View File
@@ -11,7 +11,7 @@ import requests
import socket import socket
import tarfile import tarfile
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import * from gateway import *
+1 -1
View File
@@ -11,7 +11,7 @@ import re
import requests import requests
import urllib import urllib
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
from gateway import * from gateway import *
# Devices: # Devices:
+1 -1
View File
@@ -12,7 +12,7 @@ import binascii
import re import re
import requests import requests
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
from xqimage import * from xqimage import *
from gateway import * from gateway import *
from read_info import * from read_info import *
+1 -1
View File
@@ -12,7 +12,7 @@ import requests
import urllib import urllib
import json import json
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
from gateway import * from gateway import *
# Devices: # Devices:
+1 -1
View File
@@ -14,7 +14,7 @@ import requests
import urllib import urllib
import json import json
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
from gateway import * from gateway import *
class ExploitError(Exception): pass class ExploitError(Exception): pass
+1 -1
View File
@@ -4,7 +4,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
import read_info import read_info
+1 -1
View File
@@ -15,7 +15,7 @@ import atexit
import socket import socket
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import ssh2 import ssh2
from ssh2.error_codes import LIBSSH2_ERROR_EAGAIN from ssh2.error_codes import LIBSSH2_ERROR_EAGAIN
from ssh2.utils import wait_socket from ssh2.utils import wait_socket
+1 -1
View File
@@ -4,7 +4,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
import read_info import read_info
+1 -1
View File
@@ -9,7 +9,7 @@ import lzma
import ctypes import ctypes
import re import re
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
import read_info import read_info
+1 -1
View File
@@ -6,7 +6,7 @@ import sys
import types import types
import re import re
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import ssh2 import ssh2
import gateway import gateway
from gateway import die from gateway import die
+1 -1
View File
@@ -4,7 +4,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
+1 -1
View File
@@ -5,7 +5,7 @@ import os
import sys import sys
import subprocess import subprocess
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
+1 -1
View File
@@ -6,7 +6,7 @@ import sys
import time import time
import platform import platform
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
+13
View File
@@ -0,0 +1,13 @@
import os
import sys
#print("xmir_base (win)")
current_dir = os.path.dirname(os.path.abspath(__file__))
pyexe_dir = os.path.dirname(current_dir)
root_dir = os.path.dirname(pyexe_dir)
sys.path.append(root_dir + '/xmir_base')
import xmir_init
+1 -1
View File
@@ -5,7 +5,7 @@ import os
import sys import sys
import platform import platform
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
+1 -1
View File
@@ -11,7 +11,7 @@ import tarfile
import io import io
import requests import requests
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
from envbuffer import EnvBuffer from envbuffer import EnvBuffer
+1 -1
View File
@@ -5,7 +5,7 @@ import os
import sys import sys
import platform import platform
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
import gateway import gateway
from gateway import die from gateway import die
+2 -2
View File
@@ -5,5 +5,5 @@ certifi
requests requests
pyftpdlib pyftpdlib
ssh2-python ssh2-python
fdt #fdt
ubi-reader #ubi-reader
+12
View File
@@ -0,0 +1,12 @@
import os
import sys
#print("xmir_base")
xmir_base_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(xmir_base_dir)
root_dir = os.path.dirname(xmir_base_dir)
sys.path.append(root_dir)
import xmir_init
+13
View File
@@ -0,0 +1,13 @@
import os
import sys
#print("xmir_init")
xmir_base_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(xmir_base_dir)
root_dir = os.path.dirname(xmir_base_dir)
sys.path.append(root_dir)
#import gateway
+1 -1
View File
@@ -8,7 +8,7 @@ import platform
import ctypes import ctypes
import binascii import binascii
sys.path.append(os.path.dirname(os.path.abspath(__file__))) import xmir_base
from envbuffer import * from envbuffer import *