Skip to content

X3rces/Utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Utils

  • FileManager
  • TimeManager
  • BytecodeUtils
  • JarTransformer

FileManager

The FileManager is used to read and write text files, also holds the method used to read the bytes from a JarEntry

TimeManager

The TimeManager can be used to wait for a delay or as a timer which can be used for benchmarking

BytecodeUtils

The BytecodeUtils are used for creating getters and setters as well as adding interfaces and converting a ClassNode to a byte[]

JarTransformer

The JarTransformer is used to manipulate the classes of a JarFile using the ASM library. To get started initialise the JarTransformer with
JarTransformer jarTransformer = new JarTransformer(new File("test.jar"));
then you will need to use
jarTransformer.transformJar()
to actually transform the Jar followed by
jarTransformer.createNewJar(new File("new.jar"));
to output the new Jar, or you can choose to manipulate/use the ClassNodes further via
jarTransformer.getClasses()

Transformers

To actually use the JarTransformer you will need to create a Transformer for each class. They'll need to implement the ITransformer interface. An example Transformer can be found under me.xerces.utils.bytecode.transformer.transformers.ExampleTransformer

Releases

No releases published

Packages

No packages published

Languages