ida2sql.py
上传用户:szhuaji06
上传日期:2020-08-02
资源大小:66k
文件大小:1k
- # -*- coding: Latin-1 -*-
- """Sabre Security IDA to SQL exporter.
- This module exports IDA's IDB database information into Sabre-Security's SQL
- format.
- References:
- Sabre-Security GmbH: http://sabre-security.com/
- MySQL: http://www.mysql.com
- IDA: http://www.datarescue.com/idabase/
- Programmed and tested with IDA 5.0, Python 2.4.4 and IDAPython 0.8.0 on Windows
- by Ero Carrera (c) Sabre-Security 2006 [ero.carrera@sabre-security.com]
- Distributed under GPL license [http://opensource.org/licenses/gpl-license.php].
- """
- __author__ = 'Ero Carrera'
- __version__ = '0.9.0'
- __license__ = 'GPL'
- import os
- ida2sql_path = os.environ.get('IDA2SQLPATH', None)
- if ida2sql_path:
- print 'Environment variable IDA2SQLPATH found: [%s]' % ida2sql_path
- os.sys.path.append(ida2sql_path)
- else:
- print 'Environment variable IDA2SQLPATH not found'
- os.sys.path.append(idadir(os.path.join('plugins', 'ida2sql.zip')))
- # Import the main module located in the IDA plugins directory
- #
- import ida_to_sql
- # Start the exporter
- #
- ida_to_sql.ida_to_sql.main()