Flag: Tornado! Hurricane!

 Forums >>  Debuggers  >>  Help with installinng paimei framework

Topic created on: February 27, 2011 02:08 CST by codezer0 .

I am trying to install paimei framework here but i am facing problem as followes.
Even after installing mysql 5.5 on my system (with option strict mode unchecked) the install requiremnt script in paimei doesnt detect it. Moreover even when i run setup mysql script i get following error
[text]E:\REVERSE ENGINEERING TOOLS\paimei\PaiMei-1.1-REV122\PaiMei-1.1-REV122>__setup_
mysql.py
Traceback (most recent call last):
  File "E:\REVERSE ENGINEERING TOOLS\paimei\PaiMei-1.1-REV122\PaiMei-1.1-REV122\
__setup_mysql.py", line 3, in <module>
    import MySQLdb
ImportError: No module named MySQLdb[/tset]

I have even changed the buildinstaller.bat to make it compatible with python2.5. But some how it doesnt detect mysqldb.Please help.

  aking1012     March 17, 2011 12:57.18 CDT
Working on it right now.  No MySQL 5.5 as the python mysql plugin stops support at 5.1...new video over on ST when I get it working properly after the last immdbg upgrade(ironically 2 days after my video hit ST...chance?)  More to follow...

  aking1012     March 17, 2011 14:46.33 CDT
Got it working, but i keep getting interrupted on the video recording.  Will up video soon.  Here are the basic directions:  

If you followed along with the last tutorial only to get raped by the last immdbg upgrade, here's the follow-up.
Do the upgrade.
Don't install python 2.7
Uninstall python 2.5
Install VS 2008 Express(for python 2.7)
Install python 2.7 from the binary installer provided by python.org or whatever
Go to your libdasm1.5/pydasm directory(there are swig files in the 2.3 dist but no plugin...)
setup.py clean
setup.py build
setup.py install

Okay pydasm is built and installed...on to mysql
The writers of the plugin stopped support at 5.1, so we use that...
Binary install of 5.1 - just register - install to c:\mysql(that's where our libs expect it)
Edit site.cfg - change 5.0 to 5.1
Install setuptools for python 2.7
add the line: "ld_args.append(‘/MANIFEST’)" after the line "ld_args.append(‘/MANIFESTFILE:’ + temp_manifest)" - no double quotes
as indicated by: http://www.fuyun.org/2009/12/install-mysql-for-python-on-windows/
setup.py clean
setup.py build

Okay...that works, now we need the new IDA plugin for 2.7 => Same as before...btw this works for the idarub plugin too...
Drop the python directory from the precompiled 0.8.0 plugin into the IDA directory
fix-up the plugin with the same python script we did before...http://www.vimeo.com/
I do this on the linux side so I don't have to install activestate python...just a thought
Rename to python.plw and place in the IDA/plugins directory
Edit plugins.cfg as directed in the readme included with 0.8.0 - add these lines - do this as admin
Execute_Python_File       python          Alt-9           0
Execute_Python_Statement  python          Alt-8           1
Execute_Python_ScriptBox  python          Alt-7           2

Edit the python/init.py file in IDA subdirectory to comment out all references to version2 and replace the len(version2) piece with 0...okay so IDA python kind of works

Still need wx
Precompiled binary installers...download install simple

What now? Paimei from SVN I think...

__setup_mysql.bat HOST UNAME PASS
edit __build_installer.bat and change c:\python to c:\python27
run __build_installer.bat
edit __install_requirements.bat to change installers to dist
delete or replace pydbg.pkd as we did before...

so it launches...but I haven't tested EVERYTHING yet...YMMV

  ictsecurity0     June 25, 2011 01:37.28 CDT
hai, all:

The details how to fix the bugs IDA PRO 6.1 and paimei refer to http://www.f13-labs.net/project.html

Note: Registration is required to post to the forums.

There are 30,781 total registered users.


Recently Created Topics
How can I write olly...
Oct/05
Career: Malware Reve...
Sep/30
How to produce separ...
Sep/20
How to decompile a f...
Sep/16
How to trap mouse cl...
Sep/03
Intel pin in loaded ...
Jun/27
Going to do today wi...
Jun/27
how to create delphi...
Jun/27
enabling menu in a s...
Jun/18
How to get the Image...
Jun/17


Recent Forum Posts
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n
OOP_RE tool available?
van7hu
Should binaries be n...
Kolisar
Problem with ollydbg
nullx42
!findtrampoline Immu...
skycrack
looking for a softwa...
raxen
Documenting reversed...
raxen
.orpc section what's...
mbin


Recent Blog Entries
oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

oleavr
Apr/17
frida.re 1.2.0 is out, with...

More ...


Recent Blog Comments
pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

newlulu on:
Jun/10
Branch tracing and LBR acce...

newlulu on:
Jun/10
Advanced debugging techniques

newlulu on:
Jun/10
2 anti-trace mechanisms spe...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit