Covert Java: Techniques for Decompiling, Patching, and by Alex Kalinovsky

By Alex Kalinovsky

As a Java developer, you could end up in a scenario the place you might want to keep a person else's code or use a third-party's library to your personal program with out documentation of the unique resource code. instead of spend hours feeling such as you are looking to bang your head opposed to the wall, flip to Covert Java: ideas for Decompiling, Patching, and opposite Engineering. those thoughts will make it easier to greater comprehend and paintings with third-party functions. every one bankruptcy makes a speciality of a strategy to unravel a selected challenge, comparable to obfuscation in code or scalability vulnerabilities, outlining the problem and demonstrating attainable strategies. Summaries on the finish of every bankruptcy can help you double payment that you simply understood the an important issues of every lesson. additionally, you will have the ability to obtain all code examples and pattern functions for destiny reference from the publisher's web site. permit Covert Java assist you crack open mysterious codes!

Show description

Read or Download Covert Java: Techniques for Decompiling, Patching, and Reverse Engineering PDF

Best techniques books

All blues soloing for jazz guitar : scales, licks, concepts & choruses

The main entire consultant to jazz/blues soloing ever written! This complete booklet information the sounds, parts, and methods that make the blues such an essential component of the jazz vocabulary. relocating from blues progressions to fingerboard association to phraseology, crucial blues scales, riffs, lick improvement, and an array of complex recommendations and units, together with alternative scales & prolonged great arpeggios are coated.

The Graphic Design Reference & Specification Book Everything Graphic Designers Need to Know Every Day

The picture layout Reference & Specification publication must always be subsequent to a designers laptop. thoroughly functional with in basic terms the main wanted details, this helpful publication presents designers with all of the little information that could make or holiday a layout, corresponding to how a lot house to go away within the gutter while designing barrel folds, tips to format a template for a field, and the ratios of every half, in addition to metric conversion charts, average envelope sizes within the united states, Europe, Canada and Asia, and lots more and plenty extra.

Additional info for Covert Java: Techniques for Decompiling, Patching, and Reverse Engineering

Example text

7g. Copyright 2000 Pavel Kouznetsov. start(); } String hostName; String userName; } 21 Decompiling a Class Take a few moments to review the generated code. As you can see, the code is almost a 100% match to the original! The order of variables, methods, and inner class declarations is different, and so is the formatting, but the logic is absolutely the same. We have also lost the comments, but well-written Java code such as ours is self-evident, isn’t it? Our case produced good results because full debugging information is included by javac when the -g option is used.

The introduced code does not prevent the original code from executing, but an attempt to decompile the class file results in a failure—or at best in confusing source code full of JVM INSTR keywords. 3 shows how a decompiler might handle corrupt code. The risk of using this method is that the corrupted code might not run on a version of JVM that 33 Knowing the Best Obfuscators more closely adheres to the specification. Even if it is not an issue with the majority of JVMs today, it might become a problem later.

LoadClass() passing an original class name, a ClassNotFound exception can result. Modern obfuscators are pretty good with handling such cases, and they attempt to change the strings to reflect the new names. If the string is created at runtime or read from a properties file, though, the obfuscator is incapable of handling it. Good obfuscators produce a log file with warnings pointing out the code that has potential for runtime problems. STORIES FROM THE TRENCHES The most innovative product from CreamTec is WebCream, which is available for a free download from the Web.

Download PDF sample

Rated 4.48 of 5 – based on 11 votes