reverse-engineering

BCEL - Get Class name,element names ,and method names

跟風遠走 提交于 2019-12-12 04:34:38
问题 how to using bcel classparaser to get class names ,element names and method names ? ive already find a way to get class names but element and method names give me something wrong . Anyone can help me with that ? here is my code (with some errors there, and not completed): import java.io.IOException; import java.util.Enumeration; import java.util.jar.JarEntry; import java.util.jar.JarFile; import org.apache.bcel.classfile.ClassParser; import org.apache.bcel.generic.ConstantPoolGen; public

Finding folders back based on a predefined folder structure

吃可爱长大的小学妹 提交于 2019-12-12 03:04:46
问题 We've a dynamic folder structure syntax set up like: :projectRoot:/dev/model/:parentHierarchy:/:assetName:/data/obj :projectRoot:/dev/model/:parentHierarchy:/:assetName:/data/fbx :projectRoot:/asset/shots/:parentHierarchy:/animation/:assetName:/scenes :projectRoot:/asset/shots/:parentHierarchy:/rendering/:assetName:/scenes Where the words between two colons ':' are variables. Now based on a single path I want to retrieve the projectRoot, parentHierarchy and assetName. The projectRoot variable

How can I tell if Office Clipboard collection is turned on?

£可爱£侵袭症+ 提交于 2019-12-12 01:59:55
问题 I want to know whether the Office clipboard collection is turned on. This is the clipboard pane that saves the last 24 clipboard data. On Office 2007 and 2010 you get it by expanding the clipboard area on the Home ribbon, and in Office 2003 you can open it from the task pane area, and selecting clipboard from the menu. I've an Office plugin. Although I'm doing all sort of API hooking (using IAT), I'm looking for the simplest solution. My initial idea was to look for a window with title:

Reverse engineer a binary dictionary file to extract strings

…衆ロ難τιáo~ 提交于 2019-12-12 01:46:20
问题 I have a ~600MB .DAT file that contains an italian dictionary (accented words with their definitions). I would like to extract all the strings from this file (a raw dump containing strings and dirty headers/binary data would be all right as long as I can read the words and definitions). So my question is: Is there a software that could do this in an automated way? I would tell it: 'I know that this file contains the strings "TREE", "DOG", "CAT", "COLLISION"... now use some brute force,

Java code which creates UML diagrams

给你一囗甜甜゛ 提交于 2019-12-11 20:43:17
问题 I'm creating a program that will reverse engineer Java Source code into a UML class diagram. I have it reading all of the method names etc already from the source code but I'm wondering if there is any inbuilt Java methods for generating UML such as something like: UMLdiagram u = new UMLdiagram(); Class c = new Class(); u.addClass(c); Is there anything like this or are there any external tools I could use to help draw the UML diagram given that I already know methods, class attribute names

how do i find collision for a simple hash algorithm

馋奶兔 提交于 2019-12-11 20:15:01
问题 I have the following hash algorithm: unsigned long specialNum=0x4E67C6A7; unsigned int ch; char inputVal[]=" AAPB2GXG"; for(int i=0;i<strlen(inputVal);i++) { ch=inputVal[i]; ch=ch+(specialNum*32); ch=ch+(specialNum/4); specialNum=bitXor(specialNum,ch); } unsigned int outputVal=specialNum; The bitXor simply does the Xor operation: int bitXor(int a,int b) { return (a & ~b) | (~a & b); } Now I want to find an Algorithm that can generate an "inputVal" when the outputVal is given.(The generated

Which API Microsoft Word (Office 2013) is using the paint the screen

旧街凉风 提交于 2019-12-11 19:39:48
问题 I have an Office plug-in (native C++) which is fairly involving with Office. One of the thing I'm doing is finding the HWND of the main window, and subclass that window. On various occasions I also GetDC that window, and paint my own stuff on top of the Office document. I'm also using IAT hooking (fairly standard) of various Windows API. I've a 'Decorate' function that draw on the HDC directly. Until Office 2010, I called my method immediately after Office handled WM_PAINT, and also after WM

NetBeans HQL editor wrong translation to SQL

£可爱£侵袭症+ 提交于 2019-12-11 17:33:01
问题 I'm trying to access a MySQL database from a Java webservice. I'm using the NetBeans IDE and am following the tutorial Using Hibernate in a Web Application Now when I try to test the HQL query: from calls I get: org.hibernate.exception.SQLGrammarException: could not execute query blablabla Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

reverse engineer PHP+HTML files, not object oriented ones, to produce a diagram [closed]

▼魔方 西西 提交于 2019-12-11 16:31:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . What's a good tool to reverse engineer a set of php/html pages ? It's not object oriented, it's a big mess that started in early 2000 (so no UML tools obviously!). I'd like to draw a link between files/functions that are included or called via the 'action' attribute of a form. So basically, I would like to have

Windows NT4 stack and heap address space

半世苍凉 提交于 2019-12-11 11:57:40
问题 I'm trying to search for an integer value in the stack and heap memory of Windows NT4. This integer is used by another program. The problem is I don't know the address range of the stack and heap, is there a way to find the range of this address space? Previously I've tried searching this integer value in the code space by using EnumProcessModules function of PSAPI (a windows api). From this function, I get the addresses containing the modules of the program which I can then search through to