File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
test/units/formats/archive Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ # -*- coding: utf-8 -*-
3+ # flake8: noqa
4+ from ... import TestUnitBase
5+
6+
7+ class TestInnoExtractor (TestUnitBase ):
8+
9+ def test_real_world_01_script (self ):
10+ test = (
11+ self .download_sample ('c6bb166294257e53d0d4b9ef6fe362c8cbacef5ec2bd26f98c6d7043284dec73' )
12+ | self .load ('script.bin' )
13+ | self .ldu ('ifpsstr' )
14+ [ self .ldu ('rev' )
15+ | self .ldu ('vigenere' , 'm' )
16+ | self .ldu ('iffp' , 'url' ) ]
17+ | str
18+ )
19+ self .assertEqual (test , 'http' 's:/' '/t.' 'me/+r1hwDlb8VAI5ZTQy' )
20+
21+ def test_real_world_01_file (self ):
22+ test = (
23+ self .download_sample ('c6bb166294257e53d0d4b9ef6fe362c8cbacef5ec2bd26f98c6d7043284dec73' )
24+ | self .load ('idp.dll' )
25+ | self .ldu ('pemeta' )
26+ | self .ldu ('xtjson' , 'ProductName' )
27+ | str
28+ )
29+ self .assertEqual (test , 'Inno Download Plugin' )
You can’t perform that action at this time.
0 commit comments