

~(Your home directory)/idapkg, and some lines in idapythonrc.py will be created. To test the master branch, you can replace tag='v.' into tag='master'.

Then you can access related actions via command palette (Ctrl+Shift+P on windows/mac/linux, or Command+Shift+P on mac) after restarting IDA Pro. Import zipfile,tempfile,sys,os,threading,shutil,importlibĭef install():P=os.path tag='v0.1.4' n=tempfile.NamedTemporaryFile(delete=False,suffix='.zip') n.close() print('Started downloading idapkg.') importlib.import_module('urllib.request' if sys.version_info.major=3 else 'urllib').urlretrieve(''%tag,n.name) f=open(n.name,'rb+') f.seek(0,os.SEEK_END) f.truncate(f.tell()-0x28) f.close() z=zipfile.ZipFile(n.name) base=z.namelist() (P.join(n.name,base)) from pkg.config import g import pkg.main as main packages_path=g z.extractall(packages_path) z.close() dest=P.join(packages_path,'idapkg') P.isdir(dest)and shutil.rmtree(dest) os.rename(P.join(packages_path,base),dest) main.update_pythonrc() main.init_environment(False) print('Installation success! Please restart IDA to use idapkg.') os.unlink(n.name)
