Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (768)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (854)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java Bytecode Editor  (Read 1135 times)
0 Members and 1 Guest are viewing this topic.
Offline gouessej
« Posted 2018-02-20 12:31:35 »

Hey

I had to patch a class file today and I spent several hours to find a working tool. reJ threw a NullPointerException when I tried to insert the instruction "ifne", it seems to be unfinished, it's a shame as it could be a very nice editor, it already has numerous nice features, an hex viewer, ... The famous Java Decompiler works but it's not an editor. I didn't succeed in editing with ClassEditor.

After that, I tried JByteMod and it worked. It's a very complete editor, it uses several decompilers (3 including Procyon the last time I gave it a try). It allows to edit everything in class files, the colored syntax drives the code more pleasant to read, it supports Java 1.8, it shows a control flow graph which helps to understand what you're doing especially when you're not a bytecode expert.

Best regards.

Julien Gouesse | Personal blog | Website | Jogamp
Offline Abuse

JGO Ninja


Medals: 70


falling into the abyss of reality


« Reply #1 - Posted 2018-02-20 13:41:57 »

Looks like it'd be useful for analyzing obfuscated code (love the flow graph), though I'm still left doing the heavy lifting of building the actual transformations by hand.
Also, no Eclipse plugin? Undecided

I'd love a tool to automate the complete workflow; e.g.

- browse and edit the obfuscated code.
- tool analyses your changes, and builds code to perform those transformations programmatically.

Though for instrumenting obfuscated code you'd want the code injection points to key off certain other prominent bytecode features, which would be highly dependent upon context; rather hard to fully automate such a feature.

What I'm imagining would be similar to the code creation engines behind GUI builders, but generating bytecode transformations instead of UIs.

I guess no tools like these exist?
The closest I've seen is ASM's ASMifier (generates ASM code that'll programmatically recreate a visited class.), though that's a loooong way from what I'm wanting.
Offline gouessej
« Reply #2 - Posted 2018-02-20 13:52:10 »

though no Eclipse plugin? Sad
An Eclipse plugin would be useful but its absence doesn't drive this editor useless especially when I see that I've found no other tool to do this job. Okay, maybe I've forgotten to talk about some not polished editors that require Python and without any binary build and I haven't tested JBE as I fear it supports only Java 1.5.

If it's up to be, why not contributing? You could make a request for enhancement and implement this feature, couldn't you?

Julien Gouesse | Personal blog | Website | Jogamp
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Abuse

JGO Ninja


Medals: 70


falling into the abyss of reality


« Reply #3 - Posted 2018-02-20 14:06:15 »

though no Eclipse plugin? Sad
An Eclipse plugin would be useful but its absence doesn't drive this editor useless especially when I see that I've found no other tool to do this job. Okay, maybe I've forgotten to talk about some not polished editors that require Python and without any binary build and I haven't tested JBE as I fear it supports only Java 1.5.

If it's up to be, why not contributing? You could make a request for enhancement and implement this feature, couldn't you?

I'd love to contribute.... but I don't have the time to work on my own projects, let alone other people's Cry
Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (1328 views)
2018-06-10 19:43:48

EgonOlsen (1205 views)
2018-06-10 19:43:44

EgonOlsen (929 views)
2018-06-10 19:43:20

DesertCoockie (1363 views)
2018-05-13 18:23:11

nelsongames (1110 views)
2018-04-24 18:15:36

nelsongames (1359 views)
2018-04-24 18:14:32

ivj94 (2094 views)
2018-03-24 14:47:39

ivj94 (1251 views)
2018-03-24 14:46:31

ivj94 (2249 views)
2018-03-24 14:43:53

Solater (803 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!