fix header, adjust import

This commit is contained in:
xwings
2021-01-11 15:36:09 +08:00
parent 31977824a7
commit cb1fb613f7
269 changed files with 469 additions and 425 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
from zipfile import ZipFile
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import os
from unicorn import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn import *
from unicorn.x86_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn.x86_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn.x86_const import *
import sys
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys, curses, math, struct, string, time, logging
sys.path.append("..")
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# Everything about the bug and firmware https://www.exploit-db.com/exploits/33863
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# 1. Download AC15 Firmware from https://down.tenda.com.cn/uploadfile/AC15/US_AC15V1.0BR_V15.03.05.19_multi_TD01.zip
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# 1. Download AC15 Firmware from https://down.tenda.com.cn/uploadfile/AC15/US_AC15V1.0BR_V15.03.05.19_multi_TD01.zip
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn import *
from capstone import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys, logging
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from qiling import *
from qiling.os.mapper import QlFsMappedObject
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# After mapping /proc there will be a /dev/mtdblock11 missing and crash
# To fix this,
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import struct, sys, logging
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from binascii import unhexlify
import sys
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
import pickle
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# 1. Download AC15 Firmware from https://down.tenda.com.cn/uploadfile/AC15/US_AC15V1.0BR_V15.03.05.19_multi_TD01.zip
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import os, sys
import sys
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
sys.path.append("..")
from qiling import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import argparse
import sys
+5
View File
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
#
from unicorn import *
from unicorn.x86_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from abc import ABC, abstractmethod
import struct
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import logging
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn import *
from unicorn.arm64_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn.arm64_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn.arm_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn import *
from unicorn.mips_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn.mips_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
class QlRegisterManager():
"""
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
"""
This module is intended for general purpose functions that are only used in qiling.arch
+2 -1
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn import *
from unicorn.x86_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from unicorn.x86_const import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from enum import IntEnum
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from configparser import ConfigParser
import ctypes, logging, ntpath, os, pickle, platform
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
##############################################
# These are part of the core.py Qiling class #
+2 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
##############################################
# These are part of the core.py Qiling class #
@@ -10,6 +10,7 @@
##############################################
import struct
from .const import QL_ENDIAN
from .exception import QlErrorStructConversion
+3 -2
View File
@@ -1,8 +1,9 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
from qiling import *
#
from qiling import Qiling
class QlDebugger():
+4 -2
View File
@@ -1,9 +1,11 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from elftools.elf.elffile import ELFFile
from qiling import *
from qiling import Qiling
from qiling.const import *
from capstone import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# gdbserver --remote-debug 0.0.0.0:9999 /path/to binary
# documentation: according to https://sourceware.org/gdb/current/onlinedocs/gdb/Remote-Protocol.html#Remote-Protocol
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import logging
from unicorn import *
+3 -3
View File
@@ -1,14 +1,14 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
#
import math, copy, os
from contextlib import contextmanager
from qiling.const import QL_ARCH
from .utils import dump_regs, get_arm_flags
# class for colorful prints
class color:
CYAN = '\033[96m'
+3
View File
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
#
import cmd
from functools import partial
+3 -1
View File
@@ -1,4 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
#
from functools import partial
@@ -7,7 +10,6 @@ from qiling.const import *
CODE_END = True
def dump_regs(ql):
if ql.archtype == QL_ARCH.MIPS:
+3 -2
View File
@@ -1,8 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
from qiling import *
#
from elftools.common.exceptions import ELFError
from elftools.common.py3compat import (
@@ -30,6 +29,8 @@ from elftools.elf.descriptions import (
from elftools.elf.constants import E_FLAGS
from elftools.elf.constants import E_FLAGS_MASKS
from qiling import Qiling
class QlReadELF(object):
def __init__(self, ql:Qiling, elf_stream):
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys, traceback
+2 -1
View File
@@ -1,10 +1,11 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from abc import ABC, abstractmethod
class QlBaseCoverage(ABC):
"""
An abstract base class for concrete code coverage collectors.
+3 -1
View File
@@ -1,12 +1,14 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from ctypes import Structure
from ctypes import c_uint32, c_uint16
from .base import QlBaseCoverage
# Adapted from https://www.ayrx.me/drcov-file-format
class bb_entry(Structure):
_fields_ = [
@@ -1,10 +1,11 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from .drcov import QlDrCoverage
class QlDrCoverageExact(QlDrCoverage):
"""
Collects emulated code coverage and formats it in accordance with the DynamoRIO based
+4 -2
View File
@@ -1,10 +1,12 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from contextlib import contextmanager
from .formats import *
from contextlib import contextmanager
# Returns subclasses recursively.
def get_all_subclasses(cls):
+16 -16
View File
@@ -1,5 +1,4 @@
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework Plugin For IDA
# Built on top of Unicorn emulator (www.unicorn-engine.org)
# Learn how to use? Please visit https://docs.qiling.io/en/latest/ida/
UseAsScript = True
@@ -14,21 +13,6 @@ from enum import Enum
from elftools.elf.elffile import ELFFile
from json import load
# Qiling
from qiling import *
from qiling.const import *
from qiling.arch.x86_const import reg_map_32 as x86_reg_map_32
from qiling.arch.x86_const import reg_map_64 as x86_reg_map_64
from qiling.arch.x86_const import reg_map_misc as x86_reg_map_misc
from qiling.arch.x86_const import reg_map_st as x86_reg_map_st
from qiling.arch.arm_const import reg_map as arm_reg_map
from qiling.arch.arm64_const import reg_map as arm64_reg_map
from qiling.arch.mips_const import reg_map as mips_reg_map
from qiling.utils import ql_get_arch_bits
from qiling import __version__ as QLVERSION
from qiling.os.filestruct import ql_file
from keystone import *
# IDA Python SDK
from idaapi import *
from idc import *
@@ -56,6 +40,22 @@ import ida_range
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import (QPushButton, QHBoxLayout)
# Qiling
from qiling import *
from qiling.const import *
from qiling.arch.x86_const import reg_map_32 as x86_reg_map_32
from qiling.arch.x86_const import reg_map_64 as x86_reg_map_64
from qiling.arch.x86_const import reg_map_misc as x86_reg_map_misc
from qiling.arch.x86_const import reg_map_st as x86_reg_map_st
from qiling.arch.arm_const import reg_map as arm_reg_map
from qiling.arch.arm64_const import reg_map as arm64_reg_map
from qiling.arch.mips_const import reg_map as mips_reg_map
from qiling.utils import ql_get_arch_bits
from qiling import __version__ as QLVERSION
from qiling.os.filestruct import ql_file
from keystone import *
QilingHomePage = 'https://www.qiling.io'
QilingStableVersionURL = 'https://raw.githubusercontent.com/qilingframework/qiling/master/qiling/__version__.py'
logging.basicConfig(level=logging.INFO, format='[%(levelname)s][%(module)s:%(lineno)d] %(message)s')
+7 -1
View File
@@ -1,6 +1,12 @@
from qiling.const import *
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
#
import json
from qiling.const import *
class Report:
def __init__(self, ql):
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import random
from enum import Enum
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# windows sdk data file can download here: 'https://github.com/ohjeongwook/windows_sdk_data.git'
+4 -5
View File
@@ -1,14 +1,13 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import logging, math, sys, traceback
from .loader import QlLoader
from qiling.os.disk import QlDisk
import sys
import traceback
import math
import logging
class QlLoaderDOS(QlLoader):
def __init__(self, ql):
+4 -4
View File
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
import sys
import os
import string, logging
#
import logging, os, string, sys
from heapq import heappush, heappop
from elftools.elf.elffile import ELFFile
+6 -2
View File
@@ -1,11 +1,15 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import pefile
from collections import namedtuple
from qiling.const import QL_OS, QL_OS_ALL, QL_ARCH, QL_ENDIAN, QL_OUTPUT
from qiling.exception import QlErrorArch, QlErrorOsType, QlErrorOutput
from collections import namedtuple
class QlLoader():
def __init__(self, ql):
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import os, plistlib, struct, logging
+1 -1
View File
@@ -2,7 +2,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
# https://opensource.apple.com/source/cctools/cctools-795/include/mach-o/loader.h
+5
View File
@@ -1,3 +1,8 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
#
from struct import unpack
class Segment:
+3 -2
View File
@@ -1,11 +1,12 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from struct import unpack
from .utils import *
from .const import *
from struct import unpack
class Header:
+3 -2
View File
@@ -1,11 +1,12 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from struct import unpack
from .const import *
from .utils import *
from struct import unpack
# TODO: We need support more LC command to load more kinds of binary
+3 -2
View File
@@ -1,7 +1,9 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import logging
from .header import *
from .loadcommand import *
@@ -10,7 +12,6 @@ from .const import *
from .utils import *
from struct import unpack
from qiling.const import *
import logging
class MachoParser:
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
class FileReader:
def __init__(self, binary):
+3 -9
View File
@@ -1,18 +1,12 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import sys
import os
import string
import pefile
import pickle
import traceback
import secrets
import logging
import logging, os, pefile, pickle, secrets, string, sys, traceback
from unicorn.x86_const import *
from qiling.os.windows.utils import *
from qiling.os.windows.structs import *
from qiling.exception import *
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import logging
from typing import Sequence
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
STDCALL = 1
CDECL = 2
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from .mapper import QlFsMappedObject
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import types, os, struct, time, logging
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
def BIN2BCD(val: int):
return val % 10 + (((val//10) % 10) << 4) + (((val//100) % 10) << 8) + (((val//1000) % 10) << 12)
+2 -1
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import os
from qiling.exception import *
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
from qiling.arch.x86 import *
from qiling.const import *
+1 -3
View File
@@ -1,9 +1,7 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
# cols = ("x8664")
#
from qiling.const import *
+3 -1
View File
@@ -1,8 +1,10 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import logging
from qiling.arch.x86_const import *
def ql_syscall_clock_gettime(ql, clock_gettime_clock_id, clock_gettime_timespec, *args, **kw):
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
+4 -2
View File
@@ -1,12 +1,14 @@
#!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org)
#
import struct, logging
from unicorn.x86_const import *
from unicorn.mips_const import *
from qiling.os.utils import *
from qiling.os.utils import *
DWORD = 1
UINT = 1

Some files were not shown because too many files have changed in this diff Show More