ida2sql.py
上传用户:szhuaji06
上传日期:2020-08-02
资源大小:66k
文件大小:1k
源码类别:

破解

开发平台:

Python

  1. # -*- coding: Latin-1 -*-
  2. """Sabre Security IDA to SQL exporter.
  3. This module exports IDA's IDB database information into Sabre-Security's SQL
  4. format.
  5. References:
  6. Sabre-Security GmbH:    http://sabre-security.com/
  7. MySQL:                  http://www.mysql.com
  8. IDA:                    http://www.datarescue.com/idabase/
  9. Programmed and tested with IDA 5.0, Python 2.4.4 and IDAPython 0.8.0 on Windows
  10. by Ero Carrera (c) Sabre-Security 2006 [ero.carrera@sabre-security.com]
  11. Distributed under GPL license [http://opensource.org/licenses/gpl-license.php].
  12. """
  13. __author__ = 'Ero Carrera'
  14. __version__ = '0.9.0'
  15. __license__ = 'GPL'
  16. import os
  17. ida2sql_path = os.environ.get('IDA2SQLPATH', None)
  18. if ida2sql_path:
  19.     print 'Environment variable IDA2SQLPATH found: [%s]' % ida2sql_path
  20.     os.sys.path.append(ida2sql_path)
  21. else:
  22.     print 'Environment variable IDA2SQLPATH not found'
  23.     os.sys.path.append(idadir(os.path.join('plugins', 'ida2sql.zip')))
  24. # Import the main module located in the IDA plugins directory
  25. #
  26. import ida_to_sql
  27. # Start the exporter
  28. #
  29. ida_to_sql.ida_to_sql.main()