reverse-engineering

How to generate class diagrams and sequence diagrams from existing code?

感情迁移 提交于 2019-12-23 18:24:17
问题 I have a Java code which I need to generate the class diagrams and sequence diagrams. I am using netbeans, but the code is 100% pure hand coded. How can I generate the class diagrams and sequence diagrams for existing code using netbeans? The code is separated into packages, so I need to generate class diagrams package wise. Which means, for an example, diagram 1 for package 1, diagram 2 for package 2 etc. Finally I need to take the generated GUI as an image. Please help! 回答1: IMO, generating

How to do ORM using reverse engineering in Hibernate in Intellij IDEA?

纵饮孤独 提交于 2019-12-23 17:12:19
问题 I have 100 tables and most of them have average 40-50 fields. Some table have 5-6 fields, so I can make it's object relational mapping easily with DB. But I have so many numbers of tables as well as fields so Is it possible to create ORM using reverse engineering in Intellij IDEA ? If yes then how to do so ? I have done mapping simple like : @Entity @SequenceGenerator(name = "sequence", sequenceName = "pat_id_seq") @Table(name = "pat") public class Patron extends BaseEntity { @Column(name =

How to call non-exported functions of a DLL?

拟墨画扇 提交于 2019-12-23 12:58:04
问题 I need to call (get) non-exported functions of a DLL . Unlike PE export table, non-exports do not have any table having entries for these. More over, all disassembler like IDAPro and other debuggers only show exported function names with decorated names (After Shift+F3 in case of IDA) and show all other functions like sub_000FF sorts of. Any idea how to get and call non-exported functions of DLL programmatically? ( GetProcAddress after LoadLibrary only calls decorated exported functions not

What's the difference between 'push' and 'pushq' in at&t assembly

与世无争的帅哥 提交于 2019-12-23 07:46:30
问题 I've recently started my quest of obtaining a greater understanding as to how my computer works. My question is in regards to the differences between push and pushq. I'm aware that push writes a value to the stack and my assumption is that pushq does the something similar. The fact the q is there makes me think that there should be a subtle difference but I can't seem to make sense of the difference. I stated to ponder this question while debugging the file /lib/udev/iphone-set-info using gdb

Is gcc reordering local variables at compilation time?

本小妞迷上赌 提交于 2019-12-23 07:28:44
问题 I'm currently reading (for the second time) "Hacking : The Art of Exploitation" and have stumbled on something. The book suggests two different ways to exploit these two similar programs : auth_overflow and auth_overflow2 In the first one, there is a password checking function layed out like this int check_authentication(char *password) { int auth_flag = 0; char password_buffer[16]; strcpy(password_buffer, password); ... } Inputing more than 16 ASCII characters will change the value of auth

How to get stable Address from a dll?

懵懂的女人 提交于 2019-12-23 05:29:35
问题 A DLL has a set of exported functions that other applications can call. Typically to call these functions you either have a function name or an ordinal number. In MSO.dll , most of the exported entry points to the DLL don't have names, so I can't call the function I want pragmatically by normal means. Upon a bit of Google searching I ran into a blogger that claims to have found stable addresses (addresses that don't change) to the very function I want to call. The issue with these addresses

Why does initializing a string in a function doesn't work like int while debugging

安稳与你 提交于 2019-12-23 03:53:08
问题 So I tried debugging some simple C programs today ; First one being int main(){ int a ,b ; return 0 ; } Which when de-compiled gave me push ebp mov ebp,esp sub esp,008h because I need to have 8 bytes to store a and b in the current stack frame since they are local variable ! But when I try the same with Strings say int main() { char greeting[12] = "Pwnit2Ownit"; return 0; } Which when de-compiled gave me push ebp mov ebp,esp sub esp,0DCh 0DCh is 220 , But since the string is only 12 bytes

Explore app files for reverse engineering purposes

核能气质少年 提交于 2019-12-23 03:33:13
问题 I want to view some Iphone application source files on Windows. Is it possible? If so what do I need in order to view them on a Windows computer? 回答1: For actual reverse engineering, I would suggest you to have a close look at IDA. IDA supports the ARMv6 and ARMv7 architecture and is overall the best reversing tool on this planet. The App files downloaded through iTunes are compressed ZIP files with the extension .IPA. You may use any decompression tool to unpack them. To do so, you may

How do I get the Hibernate reverse engineering tools to generate <bag> or <list> for inverse associations?

℡╲_俬逩灬. 提交于 2019-12-23 02:14:11
问题 I want to add elements to a collection that ends up getting mapped like this: <set name="others" inverse="true" lazy="true" table="other" fetch="select"> <key> <column name="otherId" not-null="true" /> </key> <one-to-many class="my.pkg.OtherEntity" /> </set> I'd like Hibernate to use instead, because I don't care about the order they're retrieved in, I just want to keep that side of the association up-to-date. According to https://www.hibernate.org/117.html, "Hibernate can add to a <bag>,

How do I get the Hibernate reverse engineering tools to generate <bag> or <list> for inverse associations?

你说的曾经没有我的故事 提交于 2019-12-23 02:14:01
问题 I want to add elements to a collection that ends up getting mapped like this: <set name="others" inverse="true" lazy="true" table="other" fetch="select"> <key> <column name="otherId" not-null="true" /> </key> <one-to-many class="my.pkg.OtherEntity" /> </set> I'd like Hibernate to use instead, because I don't care about the order they're retrieved in, I just want to keep that side of the association up-to-date. According to https://www.hibernate.org/117.html, "Hibernate can add to a <bag>,