def binscope(sample, signature):
 _check_challenge(signature)
 binscope_path = [config['binscope']['file']]
 target = [(config['MobSF']['samples'] + sample)]
 out_type = ['/Red', '/v']
 output = ['/l', (target[0] + '_binscope')]
 checks = ['/Checks', 'ATLVersionCheck', '/Checks', 'ATLVulnCheck', '/Checks', 'AppContainerCheck', '/Checks', 'CompilerVersionCheck', '/Checks', 'DBCheck', '/Checks', 'DefaultGSCookieCheck', '/Checks', 'ExecutableImportsCheck', '/Checks', 'FunctionPointersCheck', '/Checks', 'GSCheck', '/Checks', 'GSFriendlyInitCheck', '/Checks', 'GSFunctionSafeBuffersCheck', '/Checks', 'HighEntropyVACheck', '/Checks', 'NXCheck', '/Checks', 'RSA32Check', '/Checks', 'SafeSEHCheck', '/Checks', 'SharedSectionCheck', '/Checks', 'VB6Check', '/Checks', 'WXCheck']
 params = ((((binscope_path + target) + out_type) + output) + checks)
 p = subprocess.Popen(subprocess.list2cmdline(params))
 p.wait()
 f = open(output[1])
 return f.read()

def binscope ( sample , signature ) : _check_challenge ( signature ) binscope_path = [ config [ 'binscope' ] [ 'file' ] ] target = [ ( config [ 'MobSF' ] [ 'samples' ] + sample ) ] out_type = [ '/Red' , '/v' ] output = [ '/l' , ( target [ 0 ] + '_binscope' ) ] checks = [ '/Checks' , 'ATLVersionCheck' , '/Checks' , 'ATLVulnCheck' , '/Checks' , 'AppContainerCheck' , '/Checks' , 'CompilerVersionCheck' , '/Checks' , 'DBCheck' , '/Checks' , 'DefaultGSCookieCheck' , '/Checks' , 'ExecutableImportsCheck' , '/Checks' , 'FunctionPointersCheck' , '/Checks' , 'GSCheck' , '/Checks' , 'GSFriendlyInitCheck' , '/Checks' , 'GSFunctionSafeBuffersCheck' , '/Checks' , 'HighEntropyVACheck' , '/Checks' , 'NXCheck' , '/Checks' , 'RSA32Check' , '/Checks' , 'SafeSEHCheck' , '/Checks' , 'SharedSectionCheck' , '/Checks' , 'VB6Check' , '/Checks' , 'WXCheck' ] params = ( ( ( ( binscope_path + target ) + out_type ) + output ) + checks ) p = subprocess . Popen ( subprocess . list2cmdline ( params ) ) p . wait ( ) f = open ( output [ 1 ] ) return f . read ( )
run binscope against an sample file .