def download(self):
"""
Downloads the latest Android gadget for this
architecture.
:return:
"""
download_url = self._get_download_url()
# stream the download using requests
library = requests.get(download_url, stream=True)
library_destination = self.get_frida_library_path(packed=True)
# save the requests stream to file
with open(library_destination, 'wb') as f:
click.secho('Downloading {0} library to {1}...'.format(self.architecture,
library_destination), fg='green', dim=True)
shutil.copyfileobj(library.raw, f)
return self
评论列表
文章目录