示例#1
0
class SumatraPdfTestData:
    APP_NAME = "SumatraPDF"
    WEB_SPACE_URL_1 = "https://www.sumatrapdfreader.org/download-free-pdf-viewer.html"
    WEB_SPACE_URL_2 = "https://www.microsoft.com/en-us/p/sumatra-pdf/9pnjwv0hphzk"
    WEB_SPACE_URL_3 = "https://www.dobreprogramy.pl/Sumatra-PDF,Program,Windows,22954.html"
    WEB_SPACE_URL_4 = "https://www.majorgeeks.com/mg/get/sumatra_pdf,1.html"
    WEB_SPACE_URL_5 = "https://www.majorgeeks.com/mg/get/sumatra_pdf,3.html"
    WEB_SPACE_URL_6 = "https://www.majorgeeks.com/mg/get/sumatra_pdf,2.html"
    WEB_SPACE_URL_7 = "https://www.majorgeeks.com/mg/get/sumatra_pdf,4.html"
    WEB_SPACE_URL_8 = "https://www.majorgeeks.com/mg/getmirror/sumatra_pdf,1.html"
    WEB_SPACE_URL_9 = "https://www.majorgeeks.com/mg/getmirror/sumatra_pdf,2.html"
    WEB_SPACE_HTML_PATH_2 = r"../resources/sumatrapdf_web_MSStore.base64"
    WEB_SPACE_HTML_PATH_3 = r"../resources/sumatrapdf_web_Windows3.base64"
    WEB_SPACE_HTML_PATH_4 = r"../resources/sumatrapdf_web_Windows4.base64"
    WEB_SPACE_HTML_PATH_5 = r"../resources/sumatrapdf_web_Windows5.base64"
    WEB_SPACE_HTML_PATH_6 = r"../resources/sumatrapdf_web_Windows6.base64"
    WEB_SPACE_HTML_PATH_7 = r"../resources/sumatrapdf_web_Windows7.base64"
    WEB_SPACE_HTML_PATH_8 = r"../resources/sumatrapdf_web_Windows8.base64"
    WEB_SPACE_HTML_PATH_9 = r"../resources/sumatrapdf_web_Windows9.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.execution_order.add_entry(get_entry_3(), True)
        self.execution_order.add_entry(get_entry_4(), True)
        self.execution_order.add_entry(get_entry_5(), True)
        self.execution_order.add_entry(get_entry_6(), True)
        self.execution_order.add_entry(get_entry_7(), True)
        self.execution_order.add_entry(get_entry_8(), True)
        self.execution_order.add_entry(get_entry_9(), True)
        exe_32 = b'aHR0cDovL2tqa3B1Yi5zMy5hbWF6b25hd3MuY29tL3N1bWF0cmFwZGYvcmVsL1N1bWF0cmFQREYtMy4xLjItaW5zdGFsbC5' \
                 b'leGU='
        exe_64 = b'aHR0cHM6Ly9ramtwdWIuczMuYW1hem9uYXdzLmNvbS9zdW1hdHJhcGRmL3JlbC9TdW1hdHJhUERGLTMuMS4yLTY0LWluc3R' \
                 b'hbGwuZXhl'
        zip_32 = b'aHR0cHM6Ly9ramtwdWIuczMuYW1hem9uYXdzLmNvbS9zdW1hdHJhcGRmL3JlbC9TdW1hdHJhUERGLTMuMS4yLnppcA=='
        zip_64 = b'aHR0cHM6Ly9ramtwdWIuczMuYW1hem9uYXdzLmNvbS9zdW1hdHJhcGRmL3JlbC9TdW1hdHJhUERGLTMuMS4yLTY0LnppcA=='
        exe_1 = decode_base64(
            b'aHR0cDovL2ZpbGVzMS5tYWpvcmdlZWtzLmNvbS9lNTQxODNlMmEwNDBlNmMwOWU2MWViMjJkNTQyZTNkNTc'
            b'wNzRiMzUxL29mZmljZS9TdW1hdHJhUERGLTMuMS4yLWluc3RhbGwuZXhl')
        exe_2 = decode_base64(
            b'aHR0cDovL2ZpbGVzMS5tYWpvcmdlZWtzLmNvbS9lNTQxODNlMmEwNDBlNmMwOWU2MWViMjJkNTQyZTNkNTc'
            b'wNzRiMzUxL29mZmljZS9TdW1hdHJhUERGLTMuMS4yLWluc3RhbGwuZXhl')
        exe_3 = decode_base64(
            b'aHR0cDovL2ZpbGVzMi5tYWpvcmdlZWtzLmNvbS8wN2RhMGNjOWQ0M2I0OTg3MWMwMWI2ZmRlYWI5NzNhY2E'
            b'yM2VjMjQ1L29mZmljZS9TdW1hdHJhUERGLTMuMS4yLWluc3RhbGwuZXhl')
        self.expected_ms_store_size = decode_base64(b'MTUuOSBNQg==')
        self.expected_win_ver = decode_base64(b'My4xLjI=')
        self.expected_win_date = decode_base64(b'MjAxNi0wOC0xNQ==')
        self.expected_win_size = decode_base64(b'NCw2MyBNQg==')
        self.expected_win_exe_32bit = decode_base64(exe_32)
        self.expected_win_exe_64bit = decode_base64(exe_64)
        self.expected_win_zip_32bit = decode_base64(zip_32)
        self.expected_win_zip_64bit = decode_base64(zip_64)
        self.expected_win_exe_tuple = (exe_1, exe_2, exe_3)
示例#2
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     win_exe = b'aHR0cDovL2ltcGxiaXRzLmNvbS9wcm9kdWN0cy9oYXNodGFiL0hhc2hUYWJfdjYuMC4wLjM0X1NldHVwLmV4ZQ=='
     win_xp_exe = b'aHR0cDovL2ltcGxiaXRzLmNvbS9wcm9kdWN0cy9oYXNodGFiL0hhc2hUYWJfdjUuMi4wLjE0X1NldHVwLmV4ZQ=='
     self.expected_win_exe = decode_base64(win_exe)
     self.expected_win_ver = decode_base64(b'Ni4wLjAuMzQ=')
     self.expected_win_xp_exe = decode_base64(win_xp_exe)
     self.expected_win_xp_ver = decode_base64(b'NS4yLjAuMTQ=')
     self.expected_win_date = decode_base64(b'MDcvMjEvMjAxNw==')
     self.expected_win_size = decode_base64(b'MS4xMiBNQg==')
示例#3
0
class DriverBoosterTestData:
    APP_NAME = "Malware Fighter"
    WEB_SPACE_URL_1 = "https://www.iobit.com/en/driver-booster.php"
    WEB_SPACE_URL_2 = "https://www.dobreprogramy.pl/Driver-Booster,Program,Windows,41956.html"
    WEB_SPACE_HTML_PATH_2 = r"../resources/idb_web_Windows.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.expected_win_ver = decode_base64(b'Ni40LjAuMzkyIA==')
        self.expected_win_date = decode_base64(b'MjAxOS0wNC0xMQ==')
        self.expected_win_size = decode_base64(b'MjAsNTQgTUI=')
class BethesdaNetLauncherTestData:
    APP_NAME = "Bethesda.net Launcher"
    APP_WEBSITE = "https://bethesda.net/pl/game/bethesda-launcher"
    WEB_SPACE_URL_2 = "https://www.instalki.pl/programy/download/Windows/akcesoria/Bethesda_launcher.html"
    WEB_SPACE_HTML_PATH_2 = r"../resources/bethesdaNet_web_Windows.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.expected_win_ver = decode_base64(b'MS40NS4xMA==')
        self.expected_win_size = decode_base64(b'OC43IE1C')
        self.expected_win_date = decode_base64(b'MjEuMDIuMjAxOQ==')
示例#5
0
class MalwareFighterTestData:
    APP_NAME = "Malware Fighter"
    WEB_SPACE_URL_1 = "https://www.iobit.com/en/malware-fighter.php"
    WEB_SPACE_URL_2 = "https://www.dobreprogramy.pl/IObit-Malware-Fighter-Free,Program,Windows,25512.html"
    WEB_SPACE_HTML_PATH_2 = r"../resources/imf_web_Windows.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.expected_win_ver = decode_base64(b'Ni42LjEuNTE1Mw==')
        self.expected_win_date = decode_base64(b'MjAxOS0wMy0yNw==')
        self.expected_win_size = decode_base64(b'NDcsOTggTUI=')
示例#6
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     self.execution_order.add_entry(get_entry_3(), True)
     exe_1 = decode_base64(b'aHR0cDovL2ZpbGVzMS5tYWpvcmdlZWtzLmNvbS80NmZiMWQ5ZjE5Yzg0MjExYWU5MWVmMTdkMjI0OGQzZ'
                           b'TlkNjgxNzcxL2ludGVybmV0L0tlZVBhc3MtMi40MS1TZXR1cC5leGU=')
     exe_2 = decode_base64(b'aHR0cDovL2ZpbGVzMi5tYWpvcmdlZWtzLmNvbS8yODIxNDU3ZDNjMzdkMDQwNWYxYWMyYzBmOTdiODY3M'
                           b'GM1NDM5NjdlL2ludGVybmV0L0tlZVBhc3MtMi40MS1TZXR1cC5leGU=')
     self.expected_win_ver = decode_base64(b'Mi40MQ==')
     self.expected_win_date = decode_base64(b'MjAxOS0wMS0wOQ==')
     self.expected_win_size = decode_base64(b'MywxNSBNQg==')
     self.expected_win_exe_tuple = (exe_1, exe_2)
示例#7
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     exe_32 = b'aHR0cHM6Ly9kYXVtcG90cGxheWVyLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8wMi9Qb3RQbGF5ZXJTZXR1cC5leGU='
     exe_64 = b'aHR0cHM6Ly9kYXVtcG90cGxheWVyLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8wMi9Qb3RQbGF5ZXJTZXR1cDY0LmV4ZQ=='
     beta_exe = b'aHR0cHM6Ly9kYXVtcG90cGxheWVyLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8wMi9Qb3RQbGF5ZXJTQmV0YS5leGU='
     self.expected_win_exe_32 = decode_base64(exe_32)
     self.expected_win_exe_64 = decode_base64(exe_64)
     self.expected_win_beta_exe = decode_base64(beta_exe)
     self.expected_win_beta_ver = decode_base64(b'MS43LjE3Nzk3')
     self.expected_win_ver = decode_base64(b'MS43LjE3NTA4IA==')
     self.expected_win_date = decode_base64(b'MjAxOS0wMi0xMg==')
     self.expected_win_size = decode_base64(b'MjYsMjAgTUI=')
示例#8
0
 def _create_execution_order(self):
     request_1 = InvocationRequest(Target(SpaceName.WEB),
                                   Find(text="lectus"))
     request_2 = InvocationRequest(Target(SpaceName.WORK),
                                   Find(text="litora"))
     request_3 = InvocationRequest(Target(SpaceName.WORK, True),
                                   Find(text="auctor"))
     chain_request_1 = (request_1, request_2, request_3)
     html_data = fetch_file(InfoCollectorTestData.FILE_NAME_TO_LOAD)
     entry_1 = ExecutionOrderEntry(chain_request_1, html_data)
     execution_order = ExecutionOrder()
     execution_order.add_entry(entry_1, True)
     execution_order.add_entry(entry_1, True)
     self._execution_order = execution_order
示例#9
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     self.execution_order.add_entry(get_entry_3(), True)
     self.execution_order.add_entry(get_entry_4(), True)
     self.execution_order.add_entry(get_entry_5(), True)
     self.expected_apk_date = decode_base64(b'TWFyY2ggMjYsIDIwMTk=')
     self.expected_win_ver = decode_base64(b'NzMuMC4zNjgzLjEwMw==')
     self.expected_win_date = decode_base64(b'MjAxOS0wNC0wNQ==')
     self.expected_mac_ver = decode_base64(b'NzMuMC4zNjgzLjEwMw==')
     self.expected_mac_date = decode_base64(b'MjAxOS0wNC0wNQ==')
     self.expected_mac_size = decode_base64(b'NzQsMzYgTUI=')
     self.expected_ios_ver = decode_base64(b'VmVyc2lvbiA3My4wLjM2ODMuNjg=')
     self.expected_ios_size = decode_base64(b'NzUuMyBNQg==')
class DvdFabVirtualDriveTestData:
    APP_NAME = "DVDFab Virtual Drive"
    WEB_SPACE_URL_1 = "https://www.dvdfab.cn/virtual_drive.htm?trackID=downloadpage"
    WEB_SPACE_URL_2 = "https://www.dobreprogramy.pl/DVDFab-Virtual-Drive,Program,Windows,19396.html"
    WEB_SPACE_HTML_PATH_1 = r"../resources/dvdfab_vd_web_Windows1.base64"
    WEB_SPACE_HTML_PATH_2 = r"../resources/dvdfab_vd_web_Windows2.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        exe = b'aHR0cHM6Ly93d3cuZHZkZmFiLmNuL21saW5rL2Rvd25sb2FkLnBocD9nPVZJUlRVQUxEUklWRQ=='
        self.expected_win_exe = decode_base64(exe)
        self.expected_win_ver = decode_base64(b'MS41LjEuMQ==')
        self.expected_win_date = decode_base64(b'MjAxNC0wOS0wMg==')
        self.expected_win_size = decode_base64(b'MCw3OSBNQg==')
示例#11
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     self.execution_order.add_entry(get_entry_3(), True)
     exe_1 = b'aHR0cHM6Ly9zdG9yZS5pb2JpdC5jb20vYWZmaWxpYXRlLnBocD9BQ0NPVU5UPUxPQklUJmFtcDtBRkZJTElBVEU9ODcwJmF' \
             b'tcDtQQVRIPWh0dHA6Ly9maWxlczEubWFqb3JnZWVrcy5jb20vOTcyMmIxZGI0MmFhZWFkZmY5NzNkM2M1MWMxMjJmMWQ5YT' \
             b'RjNTE2Ni9kcml2ZXMvc21hcnQtZGVmcmFnLXNldHVwLmV4ZQ=='
     exe_2 = b'aHR0cHM6Ly9zdG9yZS5pb2JpdC5jb20vYWZmaWxpYXRlLnBocD9BQ0NPVU5UPUxPQklUJmFtcDtBRkZJTElBVEU9ODcwJmF' \
             b'tcDtQQVRIPWh0dHA6Ly9maWxlczIubWFqb3JnZWVrcy5jb20vOGVlZDYzNTZkNzlkN2FjNTkwMDgwOWRkODczMjdlMWIzNz' \
             b'c1MDA1MS9kcml2ZXMvc21hcnQtZGVmcmFnLXNldHVwLmV4ZQ=='
     self.expected_win_exe_tuple = (decode_base64(exe_1),
                                    decode_base64(exe_2))
     self.expected_win_ver = decode_base64(b'Ni4yLjAuMTM4')
     self.expected_win_date = decode_base64(b'MjAxOS0wMy0wNw==')
     self.expected_win_size = decode_base64(b'MTUsMTIgTUI=')
示例#12
0
class SpeccyTestData:
    APP_NAME = "Speccy"
    WEB_SPACE_URL_1 = "https://www.ccleaner.com/speccy/download"
    WEB_SPACE_URL_2 = "https://www.ccleaner.com/speccy/download/standard"
    WEB_SPACE_URL_3 = "https://www.dobreprogramy.pl/Speccy,Program,Windows,15677.html"
    WEB_SPACE_HTML_PATH_2 = r"../resources/speccy_web_Windows2.base64"
    WEB_SPACE_HTML_PATH_3 = r"../resources/speccy_web_Windows3.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.execution_order.add_entry(get_entry_3(), True)
        self.expected_win_exe = decode_base64(
            b'aHR0cHM6Ly9kb3dubG9hZC5jY2xlYW5lci5jb20vc3BzZXR1cDEzMi5leGU=')
        self.expected_win_ver = decode_base64(b'MS4zMi43NDAg')
        self.expected_win_date = decode_base64(b'MjAxOC0wNS0yMQ==')
        self.expected_win_size = decode_base64(b'Niw1NyBNQg==')
示例#13
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     self.execution_order.add_entry(get_entry_3(), True)
     self.execution_order.add_entry(get_entry_4(), True)
     win_exe_1 = decode_base64(b'aHR0cDovL2ZpbGVzMi5tYWpvcmdlZWtzLmNvbS9mMWQ3ZDczNjYxZmEwYTUwMjJlOGFjNTFmYjNkOTF'
                               b'kZjU3MTEyYzQzL2FsbGlub25lL2pldGNsZWFuLXNldHVwLmV4ZQ==')
     win_exe_2 = decode_base64(b'aHR0cDovL2ZpbGVzMS5tYWpvcmdlZWtzLmNvbS8xOTgwMTdiOWEwNThhNWU3ODJkNjY0ZDJlOGI0MWI'
                               b'xOGY5ZDlmNjlhL2FsbGlub25lL2pldGNsZWFuLXNldHVwLmV4ZQ==')
     win_exe_3 = decode_base64(b'aHR0cDovL2ZpbGVzMi5tYWpvcmdlZWtzLmNvbS8wMWRlMzczM2YxNzNhYWIyMDZjNWUwNTM5NzUwYzU'
                               b'3MzY3MmYxNGZhL2FsbGlub25lL2pldGNsZWFuLXNldHVwLmV4ZQ==')
     win_exe_4 = decode_base64(b'aHR0cDovL2ZpbGVzMS5tYWpvcmdlZWtzLmNvbS9kYzBlNGIyZWZkYjVkYTE1ZjNjZjUxZTM5ODk4MzY'
                               b'yMGRiNTFkZWQyL2FsbGlub25lL2pldGNsZWFuLXNldHVwLmV4ZQ==')
     self.expected_win_ver = decode_base64(b'MS41LjAuMTI5')
     self.expected_win_date = decode_base64(b'MjAxNi0wMi0yNg==')
     self.expected_win_size = decode_base64(b'Myw2MCBNQg==')
     self.expected_win_exe_tuple = (win_exe_1, win_exe_2, win_exe_3, win_exe_4)
示例#14
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     self.execution_order.add_entry(get_entry_3(), True)
     mac_pkg = b'aHR0cHM6Ly9jb250ZW50LXN5c3RlbS5nb2cuY29tL29wZW5fbGluay9kb3dubG9hZD9wYXRoPS9vcGVuL2dhbGF4eS9jbG' \
               b'llbnQvZ2FsYXh5X2NsaWVudF8xLjIuNTQuMjcucGtn'
     mac_ver = b'MS4yLjU0LjI3'
     windows_exe = b'aHR0cHM6Ly9jb250ZW50LXN5c3RlbS5nb2cuY29tL29wZW5fbGluay9kb3dubG9hZD9wYXRoPS9vcGVuL2dhbGF4eS' \
                   b'9jbGllbnQvc2V0dXBfZ2FsYXh5XzEuMi41NC4yMy5leGU='
     windows_ver = b'MS4yLjU0LjIz'
     self.expected_mac_pkg = decode_base64(mac_pkg)
     self.expected_windows_exe = decode_base64(windows_exe)
     self.expected_mac_ver = decode_base64(mac_ver)
     self.expected_windows_ver = decode_base64(windows_ver)
     self.expected_date_published = decode_base64(
         b'MDMvMTcvMjAxOSAxMjoyNiBQTQ==')
     self.expected_file_size = decode_base64(b'MjE2IE1C')
示例#15
0
class HashTabTestData:
    APP_NAME = "HashTab"
    WEB_SPACE_URL_1 = "http://implbits.com/products/hashtab/"
    WEB_SPACE_URL_2 = "https://www.majorgeeks.com/files/details/hashtab.html"
    WEB_SPACE_HTML_PATH_1 = r"../resources/hashTab_web_Windows.base64"
    WEB_SPACE_HTML_PATH_2 = r"../resources/hashTab_web_Windows2.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        win_exe = b'aHR0cDovL2ltcGxiaXRzLmNvbS9wcm9kdWN0cy9oYXNodGFiL0hhc2hUYWJfdjYuMC4wLjM0X1NldHVwLmV4ZQ=='
        win_xp_exe = b'aHR0cDovL2ltcGxiaXRzLmNvbS9wcm9kdWN0cy9oYXNodGFiL0hhc2hUYWJfdjUuMi4wLjE0X1NldHVwLmV4ZQ=='
        self.expected_win_exe = decode_base64(win_exe)
        self.expected_win_ver = decode_base64(b'Ni4wLjAuMzQ=')
        self.expected_win_xp_exe = decode_base64(win_xp_exe)
        self.expected_win_xp_ver = decode_base64(b'NS4yLjAuMTQ=')
        self.expected_win_date = decode_base64(b'MDcvMjEvMjAxNw==')
        self.expected_win_size = decode_base64(b'MS4xMiBNQg==')
示例#16
0
class PotPlayerTestData:
    APP_NAME = "PotPlayer"
    WEB_SPACE_URL_1 = "https://daumpotplayer.com/download/"
    WEB_SPACE_URL_2 = "https://www.dobreprogramy.pl/PotPlayer,Program,Windows,22586.html"
    WEB_SPACE_HTML_PATH_1 = r"../resources/potplayer_web_Windows.base64"
    WEB_SPACE_HTML_PATH_2 = r"../resources/potplayer_web_Windows2.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        exe_32 = b'aHR0cHM6Ly9kYXVtcG90cGxheWVyLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8wMi9Qb3RQbGF5ZXJTZXR1cC5leGU='
        exe_64 = b'aHR0cHM6Ly9kYXVtcG90cGxheWVyLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8wMi9Qb3RQbGF5ZXJTZXR1cDY0LmV4ZQ=='
        beta_exe = b'aHR0cHM6Ly9kYXVtcG90cGxheWVyLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxOS8wMi9Qb3RQbGF5ZXJTQmV0YS5leGU='
        self.expected_win_exe_32 = decode_base64(exe_32)
        self.expected_win_exe_64 = decode_base64(exe_64)
        self.expected_win_beta_exe = decode_base64(beta_exe)
        self.expected_win_beta_ver = decode_base64(b'MS43LjE3Nzk3')
        self.expected_win_ver = decode_base64(b'MS43LjE3NTA4IA==')
        self.expected_win_date = decode_base64(b'MjAxOS0wMi0xMg==')
        self.expected_win_size = decode_base64(b'MjYsMjAgTUI=')
示例#17
0
class KeePassTestData:
    APP_NAME = "KeePass"
    WEB_SPACE_URL_1 = "https://keepass.info/download.html"
    WEB_SPACE_URL_2 = "https://www.dobreprogramy.pl/KeePass-Password-Safe,Program,Windows,12943.html"
    WEB_SPACE_URL_3 = "https://www.majorgeeks.com/mg/getmirror/keepass_password_safe,1.html"
    WEB_SPACE_HTML_PATH_2 = r"../resources/keepass_web_Windows.base64"
    WEB_SPACE_HTML_PATH_3 = r"../resources/keepass_web_Windows2.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.execution_order.add_entry(get_entry_3(), True)
        exe_1 = decode_base64(b'aHR0cDovL2ZpbGVzMS5tYWpvcmdlZWtzLmNvbS80NmZiMWQ5ZjE5Yzg0MjExYWU5MWVmMTdkMjI0OGQzZ'
                              b'TlkNjgxNzcxL2ludGVybmV0L0tlZVBhc3MtMi40MS1TZXR1cC5leGU=')
        exe_2 = decode_base64(b'aHR0cDovL2ZpbGVzMi5tYWpvcmdlZWtzLmNvbS8yODIxNDU3ZDNjMzdkMDQwNWYxYWMyYzBmOTdiODY3M'
                              b'GM1NDM5NjdlL2ludGVybmV0L0tlZVBhc3MtMi40MS1TZXR1cC5leGU=')
        self.expected_win_ver = decode_base64(b'Mi40MQ==')
        self.expected_win_date = decode_base64(b'MjAxOS0wMS0wOQ==')
        self.expected_win_size = decode_base64(b'MywxNSBNQg==')
        self.expected_win_exe_tuple = (exe_1, exe_2)
示例#18
0
class GoogleChromeTestData:
    APP_NAME = "Google Chrome"
    APP_WEBSITE = "https://www.google.com/chrome/"
    WEB_SPACE_URL_2 = "https://play.google.com/store/apps/details?id=com.android.chrome"
    WEB_SPACE_URL_3 = "https://www.dobreprogramy.pl/Google-Chrome,Program,Windows,13096.html"
    WEB_SPACE_URL_4 = "https://www.dobreprogramy.pl/Google-Chrome,Program,Mac,64621.html"
    WEB_SPACE_URL_5 = "https://itunes.apple.com/us/app/chrome/id535886823"
    WEB_SPACE_HTML_PATH_2 = r"../resources/chrome_web_GooglePlay.base64"
    WEB_SPACE_HTML_PATH_3 = r"../resources/chrome_web_Windows.base64"
    WEB_SPACE_HTML_PATH_4 = r"../resources/chrome_web_Mac.base64"
    WEB_SPACE_HTML_PATH_5 = r"../resources/chrome_web_iOS.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.execution_order.add_entry(get_entry_3(), True)
        self.execution_order.add_entry(get_entry_4(), True)
        self.execution_order.add_entry(get_entry_5(), True)
        self.expected_apk_date = decode_base64(b'TWFyY2ggMjYsIDIwMTk=')
        self.expected_win_ver = decode_base64(b'NzMuMC4zNjgzLjEwMw==')
        self.expected_win_date = decode_base64(b'MjAxOS0wNC0wNQ==')
        self.expected_mac_ver = decode_base64(b'NzMuMC4zNjgzLjEwMw==')
        self.expected_mac_date = decode_base64(b'MjAxOS0wNC0wNQ==')
        self.expected_mac_size = decode_base64(b'NzQsMzYgTUI=')
        self.expected_ios_ver = decode_base64(b'VmVyc2lvbiA3My4wLjM2ODMuNjg=')
        self.expected_ios_size = decode_base64(b'NzUuMyBNQg==')
示例#19
0
class SmartDefragTestData:
    APP_NAME = "Smart Defrag"
    WEB_SPACE_URL_1 = "https://www.iobit.com/en/iobitsmartdefrag.php"
    WEB_SPACE_URL_2 = "https://www.majorgeeks.com/mg/getmirror/iobit_smartdefrag,1.html"
    WEB_SPACE_URL_3 = "https://www.dobreprogramy.pl/IObit-Smart-Defrag,Program,Windows,12941.html"
    WEB_SPACE_HTML_PATH_2 = r"../resources/isd_web_Windows.base64"
    WEB_SPACE_HTML_PATH_3 = r"../resources/isd_web_Windows2.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.execution_order.add_entry(get_entry_3(), True)
        exe_1 = b'aHR0cHM6Ly9zdG9yZS5pb2JpdC5jb20vYWZmaWxpYXRlLnBocD9BQ0NPVU5UPUxPQklUJmFtcDtBRkZJTElBVEU9ODcwJmF' \
                b'tcDtQQVRIPWh0dHA6Ly9maWxlczEubWFqb3JnZWVrcy5jb20vOTcyMmIxZGI0MmFhZWFkZmY5NzNkM2M1MWMxMjJmMWQ5YT' \
                b'RjNTE2Ni9kcml2ZXMvc21hcnQtZGVmcmFnLXNldHVwLmV4ZQ=='
        exe_2 = b'aHR0cHM6Ly9zdG9yZS5pb2JpdC5jb20vYWZmaWxpYXRlLnBocD9BQ0NPVU5UPUxPQklUJmFtcDtBRkZJTElBVEU9ODcwJmF' \
                b'tcDtQQVRIPWh0dHA6Ly9maWxlczIubWFqb3JnZWVrcy5jb20vOGVlZDYzNTZkNzlkN2FjNTkwMDgwOWRkODczMjdlMWIzNz' \
                b'c1MDA1MS9kcml2ZXMvc21hcnQtZGVmcmFnLXNldHVwLmV4ZQ=='
        self.expected_win_exe_tuple = (decode_base64(exe_1),
                                       decode_base64(exe_2))
        self.expected_win_ver = decode_base64(b'Ni4yLjAuMTM4')
        self.expected_win_date = decode_base64(b'MjAxOS0wMy0wNw==')
        self.expected_win_size = decode_base64(b'MTUsMTIgTUI=')
示例#20
0
class SteamTestData:
    APP_NAME = "Steam"
    WEB_SPACE_URL_1 = "https://store.steampowered.com/about/"
    WEB_SPACE_URL_2 = "https://play.google.com/store/apps/details?id=com.valvesoftware.android.steam.community&hl=en_US"
    WEB_SPACE_URL_3 = "https://www.dobreprogramy.pl/Steam,Program,Windows,18206.html"
    WEB_SPACE_URL_4 = "https://www.dobreprogramy.pl/Steam,Program,Mac,64030.html"
    WEB_SPACE_URL_5 = "https://www.microsoft.com/en-us/p/steam/9nblggh4x7gm"
    WEB_SPACE_HTML_PATH_1 = r"../resources/steamClient_web_official.base64"
    WEB_SPACE_HTML_PATH_2 = r"../resources/steamClient_web_GooglePlay.base64"
    WEB_SPACE_HTML_PATH_3 = r"../resources/steamClient_web_Windows.base64"
    WEB_SPACE_HTML_PATH_4 = r"../resources/steamClient_web_Mac.base64"
    WEB_SPACE_HTML_PATH_5 = r"../resources/steamClient_web_MSStore.base64"

    def __init__(self):
        self.execution_order = ExecutionOrder()
        self.execution_order.add_entry(get_entry_1(), True)
        self.execution_order.add_entry(get_entry_2(), True)
        self.execution_order.add_entry(get_entry_3(), True)
        self.execution_order.add_entry(get_entry_4(), True)
        self.execution_order.add_entry(get_entry_5(), True)
        self.execution_order.add_entry(get_entry_6(), True)
        deb = decode_base64(
            b'aHR0cHM6Ly9zdGVhbWNkbi1hLmFrYW1haWhkLm5ldC9jbGllbnQvaW5zdGFsbGVyL3N0ZWFtLmRlYg=='
        )
        exe = decode_base64(
            b'aHR0cHM6Ly9zdGVhbWNkbi1hLmFrYW1haWhkLm5ldC9jbGllbnQvaW5zdGFsbGVyL1N0ZWFtU2V0dXAuZXhl'
        )
        dmg = decode_base64(
            b'aHR0cHM6Ly9zdGVhbWNkbi1hLmFrYW1haWhkLm5ldC9jbGllbnQvaW5zdGFsbGVyL3N0ZWFtLmRtZw=='
        )
        self.expected_links = (deb, exe, dmg)
        self.expected_apk_date = decode_base64(b'TWFyY2ggOCwgMjAxOQ==')
        self.expected_apk_size = decode_base64(b'Mi43TQ==')
        self.expected_apk_ver = decode_base64(b'Mi4zLjk=')
        self.expected_win_ver = decode_base64(b'MTguMDIuMjAxOSA=')
        self.expected_win_date = decode_base64(b'MjAxOS0wMi0xOQ==')
        self.expected_win_size = decode_base64(b'MSw1MCBNQg==')
        self.expected_mac_ver = decode_base64(b'MDMuMjIuMjAxNw==')
        self.expected_mac_date = decode_base64(b'MjAxNy0wMy0yNw==')
        self.expected_mac_size = decode_base64(b'NCw2NyBNQg==')
        self.expected_ms_store_size = decode_base64(b'NC41MiBNQg==')
示例#21
0
 def __init__(self):
     self.execution_order = ExecutionOrder()
     self.execution_order.add_entry(get_entry_1(), True)
     self.execution_order.add_entry(get_entry_2(), True)
     self.execution_order.add_entry(get_entry_3(), True)
     self.execution_order.add_entry(get_entry_4(), True)
     self.execution_order.add_entry(get_entry_5(), True)
     exe_64 = b'aHR0cDovL2Rvd25sb2FkLmNuZXQuY29tL0lyZmFuVmlldy02NC1iaXQvMzAwMC0yMTkyXzQtNzY0NDQ3MTAuaHRtbD9wYXJ0P' \
              b'WRsLSZhbXA7c3Viaj1kbCZhbXA7dGFnPWJ1dHRvbg=='
     zip_64 = b'aHR0cDovL3d3dy5pcmZhbnZpZXcuaW5mby9maWxlcy9pdmlldzQ1Ml94NjQuemlw'
     exe_64_de = b'aHR0cDovL3d3dy5pcmZhbnZpZXcuaW5mby9maWxlcy9pdmlldzQ1MmdfeDY0X3NldHVwLmV4ZQ=='
     zip_64_de = b'aHR0cDovL3d3dy5pcmZhbnZpZXcuaW5mby9maWxlcy9pdmlldzQ1MmdfeDY0LnppcA=='
     exe_64_plugins = b'aHR0cDovL3d3dy5mb3NzaHViLmNvbS9JcmZhblZpZXcuaHRtbC9pdmlldzQ1Ml9wbHVnaW5zX3g2NF9zZXR1cC5le' \
                      b'GU='
     zip_64_plugins = b'aHR0cDovL3d3dy5mb3NzaHViLmNvbS9JcmZhblZpZXcuaHRtbC9pdmlldzQ1Ml9wbHVnaW5zX3g2NC56aXA='
     exe_64_hash = b'MWUyZTAyMGNiZjA4Y2NiNTQwYzkyZjQyM2Y2YjhiNDQyOTZkMGYzMGFmOGY5MDRiMzMzY2RmMGNkOTA1Mjc3Ng=='
     zip_64_hash = b'Njc4MWJkYTFkYWFlNGFmYTcwMDNmOGYwMjBkNjdhZjg5ZTYwN2JlOGQyMjQzMGIzMGFiZDgwM2Y1Nzc4NWYyYg=='
     exe_64_de_hash = b'NzA5NTA1NDllNjQ0OGQ0OTU0NmFkMGYyZGMwNGJjZTk5MGFlOGY3ZjAwOGRhMGU5ZmJjN2QyNWJhNGU1MDA3Mg=='
     zip_64_de_hash = b'ZWQxOWI2YmJiMTgwZjdmOWJkY2YyNmNlYjc5OTkzOGU0NWRkNzIzNWEzOWYyNjliYzM3MjA1ODY0ZDFmNGQwYw=='
     exe_64_plugins_hash = b'MWViNWIwMmQ4MzJlZGI2MTBmMGU5OWI4N2MyNGE3ZDYwOTE4MGM3ODdhZjIzYWM3ZWNhNWVjYjA4NTU5NGQ3' \
                           b'NQ=='
     zip_64_plugins_hash = b'NTNkNDY2OGEyMmU5MTgzMTg2MDY1NGNlNWIwZDU3ZDllYmJhMGFjODVjZDJmMDg4NTJkNWU2MzE3NDY0YTk2' \
                           b'OA=='
     exe_32_hash = b'ZTdjY2FiNjY5NWYxNTg1OTk0MzYyMzcwNDJkN2FhYjg3NWRkNTQ0ODhjZjFlMDBiOTE3YmFhNDhjNjNjYmIyNg=='
     zip_32_hash = b'NDdlYjM1MDBkYWZjOTQ0ZmEzYmU3NDUxNmE1N2ViNmYyYjkyODdhNjhhYzFmMDNkNWY1MDY3YWMyYWZhNDNlMA=='
     exe_32_de_hash = b'NDA5YWM3MjlhMTI2M2JhNzBiMTk4ZWFmNTVkNGYzYmMxNmJkOTY5ODgwMWRjZjI4NzNlMmU2YjE2NGZlNTk0Ng=='
     zip_32_de_hash = b'ZDA2N2MwNzA1MDE2MzlmYjRhNDdmZDgxNjk5Nzc4MGRhMDQzMzI4OGE5NGU2MjhhYzhiMDZmNDAwNTI1ODU5ZQ=='
     exe_32 = b'aHR0cDovL2Rvd25sb2FkLmNuZXQuY29tL0lyZmFuVmlldy8zMDAwLTIxOTJfNC0xMDAyMTk2Mi5odG1sP3BhcnQ9ZGwtJmFt' \
              b'cDtzdWJqPWRsJmFtcDt0YWc9YnV0dG9u'
     self.expected_win_exe_64 = decode_base64(exe_64)
     self.expected_win_zip_64 = decode_base64(zip_64)
     self.expected_win_exe_64_de = decode_base64(exe_64_de)
     self.expected_win_zip_64_de = decode_base64(zip_64_de)
     self.expected_win_exe_64_plugins = decode_base64(exe_64_plugins)
     self.expected_win_zip_64_plugins = decode_base64(zip_64_plugins)
     self.expected_win_exe_64_ver = decode_base64(b'VmVyc2lvbiA0LjUy')
     self.expected_win_exe_64_size = decode_base64(b'My4zNyBNQg==')
     self.expected_win_exe_64_hash = decode_base64(exe_64_hash)
     self.expected_win_zip_64_ver = decode_base64(b'VmVyc2lvbiA0LjUy')
     self.expected_win_zip_64_size = decode_base64(b'Mi45MSBNQg==')
     self.expected_win_zip_64_hash = decode_base64(zip_64_hash)
     self.expected_win_exe_64_de_ver = decode_base64(b'VmVyc2lvbiA0LjUy')
     self.expected_win_exe_64_de_size = decode_base64(b'My42MyBNQg==')
     self.expected_win_exe_64_de_hash = decode_base64(exe_64_de_hash)
     self.expected_win_zip_64_de_ver = decode_base64(b'VmVyc2lvbiA0LjUy')
     self.expected_win_zip_64_de_size = decode_base64(b'My4xNyBNQg==')
     self.expected_win_zip_64_de_hash = decode_base64(zip_64_de_hash)
     self.expected_win_exe_64_plugins_ver = decode_base64(
         b'VmVyc2lvbiA0LjUy')
     self.expected_win_exe_64_plugins_size = decode_base64(b'MjUuMjAgTUI=')
     self.expected_win_exe_64_plugins_hash = decode_base64(
         exe_64_plugins_hash)
     self.expected_win_zip_64_plugins_ver = decode_base64(
         b'VmVyc2lvbiA0LjUy')
     self.expected_win_zip_64_plugins_size = decode_base64(b'MjIuNzAgTUI=')
     self.expected_win_zip_64_plugins_hash = decode_base64(
         zip_64_plugins_hash)
     self.expected_win_exe_32_hash = decode_base64(exe_32_hash)
     self.expected_win_zip_32_hash = decode_base64(zip_32_hash)
     self.expected_win_exe_32_de_hash = decode_base64(exe_32_de_hash)
     self.expected_win_zip_32_de_hash = decode_base64(zip_32_de_hash)
     self.expected_win_exe_32 = decode_base64(exe_32)
     self.expected_ms_store_size = decode_base64(b'MjEuODQgTUI=')
     self.expected_win_ver = decode_base64(b'NC41Mg==')
     self.expected_win_date = decode_base64(b'MjAxOC0xMi0xMw==')
     self.expected_win_size = decode_base64(b'MiwzNiBNQg==')