def autostart():
 mobsf_subdir_tools = CONFIG['MobSF']['tools']
 rpc_file = CONFIG['rpc']['file']
 autostart_file = CONFIG['autostart']['file']
 batch_file = (AUTOSTART + autostart_file)
 print '[*] Creating autostart binary...'
 autostart_file = open(batch_file, 'wb')
 text = '\n    @echo off\n    python {} %*\n    pause'.format(((('"' + mobsf_subdir_tools) + rpc_file) + '"'))
 autostart_file.write(bytes(text, 'utf8'))
 autostart_file.close()
 print '[*] Done. Start the server.'
 os.system((('"' + batch_file) + '"'))

def autostart ( ) : mobsf_subdir_tools = CONFIG [ 'MobSF' ] [ 'tools' ] rpc_file = CONFIG [ 'rpc' ] [ 'file' ] autostart_file = CONFIG [ 'autostart' ] [ 'file' ] batch_file = ( AUTOSTART + autostart_file ) print '[*] Creating autostart binary...' autostart_file = open ( batch_file , 'wb' ) text = '\n    @echo off\n    python {} %*\n    pause' . format ( ( ( ( '"' + mobsf_subdir_tools ) + rpc_file ) + '"' ) ) autostart_file . write ( bytes ( text , 'utf8' ) ) autostart_file . close ( ) print '[*] Done. Start the server.' os . system ( ( ( '"' + batch_file ) + '"' ) )
create the autostart binary and run it .