def tools_rpcclient():
 rpc_url = CONFIG['rpc']['url']
 mobsf_subdir_tools = CONFIG['MobSF']['tools']
 rpc_file_path = CONFIG['rpc']['file']
 rpc_local_file = open((mobsf_subdir_tools + rpc_file_path), 'wb')
 print '[*] Downloading rpc_server..'
 rpc_file = urlrequest.urlopen(rpc_url)
 print '[*] Saving to File {}'.format(rpc_file_path)
 rpc_local_file.write(bytes(rpc_file.read()))
 rpc_local_file.close()

def tools_rpcclient ( ) : rpc_url = CONFIG [ 'rpc' ] [ 'url' ] mobsf_subdir_tools = CONFIG [ 'MobSF' ] [ 'tools' ] rpc_file_path = CONFIG [ 'rpc' ] [ 'file' ] rpc_local_file = open ( ( mobsf_subdir_tools + rpc_file_path ) , 'wb' ) print '[*] Downloading rpc_server..' rpc_file = urlrequest . urlopen ( rpc_url ) print '[*] Saving to File {}' . format ( rpc_file_path ) rpc_local_file . write ( bytes ( rpc_file . read ( ) ) ) rpc_local_file . close ( )
download and install rpc-server for mobsf .