这篇文章是和上一篇文章紧密相连的,上一篇文章中提到关于授权信息的问题。终于在我的不断折腾之下现在这个鸟信息显示出来了(版本:wing ide 4.1.3-1 )。在使用的时候还是需要激活免费试用授权,在美页的文章中提到的方法不过是把程序比较的那个代码给改成了70,其实也是一个跳转,但是这个跳转在改完之后重新反编译pyo文件得到的代码是什么样子我也不知道。而后意外的把那段代码改错了一个字节,竟然程序还能跑,但是授权信息还是missing。作为一个半完美主义者这个东西是不能容忍的。嘎嘎。
这个东西是昨天在看雪上看到这个东西的破解补丁的时候才下载了试了一下,但是不管怎么尝试。都没成功,不过可以确定的是提供的这个文件应该是和授权有关的,但是不知道为什么在我这里会失败。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ######################################### #Ida batch mode test code by obaby #2012.03.13 #Mars Security #http://www.h4ck.org.cn #Email:root@h4ck.ws ######################################### import sys import os import subprocess # Fill these feilds with ur own ida file path and the idc file u want to execute! idcScriptFileName = "batchmode.idc" ida32qFilePath = '"F:\Crackl@b\Hex-Rays.IDA.Pro.Advanced.v6.1\ida61\idaq.exe"' ida64qFilePath = "F:\Crackl@b\Hex-Rays.IDA.Pro.Advanced.v6.1\ida61\idaq64.exe" ida32wFilePath ='"F:\Crackl@b\Hex-Rays.IDA.Pro.Advanced.v6.1\ida61\idaw.exe"' ida64wFilePath = "F:\Crackl@b\Hex-Rays.IDA.Pro.Advanced.v6.1\ida61\idaw64.exe" #The binary file list text TargetList = "F:/Python 2.6/_eric4project/idabatchmode/list.txt" TargetFile_object = open(TargetList, "r").readlines() for eachline in TargetFile_object: #print eachline, #print eachline eachline = eachline.replace('\n','').replace('\r', '') if os.path.exists(eachline): tmpExecStr = ida32wFilePath +" -A -c -S"+idcScriptFileName +" " + '"'+eachline+'"' #fixup the space in the file path print tmpExecStr, #os.system(tmpExecStr) #singl process with cmdwindow #os.popen(tmpExecStr) singl process without cmdwindow subprocess.Popen(tmpExecStr) #mulity process with cmd window print ("All Process have been started!") |
修正文件路径包含空格时找不到文件的问题,这个如果自己写的话应该是可以避免的。发现一个比较奇怪的问题,在win7下subprocess.Popen竟然不显示cmd窗口,但是在xp下显示。这是为什么?