phase / asmifier Goto Github PK
View Code? Open in Web Editor NEWWeb interface for ASMifier
Home Page: https://asmifier.herokuapp.com/
License: Mozilla Public License 2.0
Web interface for ASMifier
Home Page: https://asmifier.herokuapp.com/
License: Mozilla Public License 2.0
Minimal reproducible example:
public class MainClass{
}
Result:
import java.util.*;
import org.objectweb.asm.*;
public class MainClassDump implements Opcodes {
public static byte[] dump () throws Exception {
ClassWriter cw = new ClassWriter(0);
FieldVisitor fv;
MethodVisitor mv;
AnnotationVisitor av0;
cw.visit(52, ACC_PUBLIC + ACC_SUPER, "MainClass", null, "java/lang/Object", null);
{
mv = cw.visitMethod(ACC_PUBLIC, "", "()V", null, null);
mv.visitCode();
mv.visitVarInsn(ALOAD, 0);
mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "", "()V", false);
mv.visitInsn(RETURN);
mv.visitMaxs(1, 1);
mv.visitEnd();
}
cw.visitEnd();
return cw.toByteArray();
}
}
Problem is mv = cw.visitMethod(ACC_PUBLIC, "", "()V", null, null);
and mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "", "()V", false);
Hi, there is an issue with your web application.
It works fine except when it has to deal with an object instantiation.
For example, assume we use this input:
import java.util.Date;
class ExampleClass
{
public static void main(String args[])
{
Date d = new Date();
}
}
The output will include the line:
mv.visitMethodInsn(INVOKESPECIAL, "java/util/Date", "", "()V", false);
The parameter <init>
is missing, I assume that string is interpreted by the browser as a HTML tag.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.