decompiling

Decompiling Objective-C libraries

荒凉一梦 提交于 2019-12-17 03:51:06
问题 I've just finished a library in Objective-C that I compiled as a Static Library for distribution. I'd wanted to know what chances to get this decompiled are out there. Do you know any software that can do this? If so, how could I protect me better? EDIT: My static lib is made for iPhone / ARM I created an algorithm that depending on the some parameters of the app, it can run as demo or as full code. You init the object with X variables and unlock the full version. I was wondering if they'll

Is it possible to “decompile” a Windows .exe? Or at least view the Assembly?

无人久伴 提交于 2019-12-17 02:51:54
问题 A friend of mine downloaded some malware from Facebook, and I'm curious to see what it does without infecting myself. I know that you can't really decompile an .exe, but can I at least view it in Assembly or attach a debugger? Edit to say it is not a .NET executable, no CLI header. 回答1: With a debugger you can step through the program assembly interactively. With a disassembler , you can view the program assembly in more detail. With a decompiler , you can turn a program back into partial

How to return a static result in smali function

泄露秘密 提交于 2019-12-14 03:58:48
问题 .method public c()Ljava/lang/String; .locals 3 const/4 v1, 0x0 const-string v0, "wifi" invoke-virtual {p0, v0}, Lcom/genwen/looltv/start/Appstart;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/net/wifi/WifiManager; if-nez v0, :cond_1 move-object v0, v1 :goto_0 if-eqz v0, :cond_2 invoke-virtual {v0}, Landroid/net/wifi/WifiInfo;->getMacAddress()Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_0 const-string v1, ":" const-string v2

Can Java comments be seen by decompiling?

守給你的承諾、 提交于 2019-12-13 14:57:18
问题 I was wondering if I put comments in my code and when someone tried to decompile it, if they could read the comments that I put? 回答1: No, comments are never included as part of the compilation process. They are typically removed in some sort of pre-processing, or first-pass stage. 回答2: Nope, comments are discarded by the compiler. 回答3: No. And you can verify this by using DJ Java Decompiler, for example. If you also refer to the Java Class File Format, you'll see there's no construct for

How to change methods in .class file without recompiling

倾然丶 夕夏残阳落幕 提交于 2019-12-13 05:43:02
问题 I need to change existing compiled .class file. Actually I have even sources of it, but I cannot just change and recompile it because of many dependencies that I don't have. So I need to change 2 methods. Both them have void return type. The first contains just 2 lines that are calls of another methods of the same class, i.e. public void a() { System.out.println("a"); } public void b() { System.out.println("b"); } public void ca() { a(); b(); } And I need to change method ca sp that it calls

How to reintegrate anonymous classes into Java code produced by the ECD decompiler?

。_饼干妹妹 提交于 2019-12-13 03:47:50
问题 I have a jar for school that is supposed to be decompiled, modifed, and reevaluated. I decompiled all of the class files using the ECD plugin for Eclipse, but I think I have a few anonymous classes that were extracted and need to be merged back into another class. I have a class P, and then five more classes named P$1, P$2, ..., P$5. Here's the problem parts of P: public class P { private ArrayList<Family> group; private int marker; private Integer primaryElement; Comparator<Family> c; public

.obj to .cpp converter?

ぐ巨炮叔叔 提交于 2019-12-13 02:37:29
问题 Is there any .obj to .cpp converter? Is it possible to do it? MICROSOFT VISUAL STUDIO auto-magically deleted my code files when pressed the F5 key. Please help me. I have the .obj files (VS forgot to delete them.ha ha ha). 回答1: Unfortunately it is impossible to decompile an .obj file back to source. More info here. 回答2: shut down your computer, boot from removable media, some sort of the UNIX, and run strings utility on your hard drive. It may be able to recover text off your source code. 回答3

Empty <> before C# class name

做~自己de王妃 提交于 2019-12-13 01:12:22
问题 I need to repair C# code that was decompiled on with .NET 4. Unfortunately, on my workstation there is only .NET 3.5 installed and that might be the reason why the following code won't compile: ReportPage.<>c__DisplayClass26 <>c__DisplayClass = new ReportPage.<>c__DisplayClass26(); What <> construct means here? There are no c__DisplayClass26 strings anywhere in the code except this line. This might mean that this name is constructed from some metainformation that was missed during

Decompiling .net assembly with dotPeek gives invalid syntax

我与影子孤独终老i 提交于 2019-12-12 15:13:15
问题 I have a problem with decompiling .net assembly. When I open the assembly in dotPeek there is class called frmMain with few hundred variables declared like this: [SpecialName] private static int \u0024STATIC\u0024SortByLengthAsc\u002402811241124\u0024xlen; When i try to export it to project all those lines give errors (STATIC is not defined) even if I change all the \u0024 to $. Am I doing something wrong? 回答1: No, the assembly has been obfuscated to prevent people (like you) to take a peek

Change .jar file without the source?

青春壹個敷衍的年華 提交于 2019-12-12 10:04:20
问题 I have a Java based TCP Client that talks to our production server, which I'm re-writing. The client has the server's IP & port hard coded. What I want to be able to do is change just the IP address in the client to 127.0.0.1 & I can use the same port number on my dev box. Here's the rub, I don't have all the source code, so I can't just recompile it. The guy who wrote it hasn't worked here for about four years and while I have his hard drive, I haven't been able to find a compiled loop back