mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
feat: support BigInteger packer
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.reajason.javaweb.packer;
|
||||
|
||||
import lombok.SneakyThrows;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
public class BigIntegerPacker implements Packer {
|
||||
@Override
|
||||
@SneakyThrows
|
||||
public String pack(ClassPackerConfig config) {
|
||||
return new BigInteger(config.getClassBytes()).toString(36);
|
||||
}
|
||||
}
|
||||
@@ -65,6 +65,11 @@ public enum Packers {
|
||||
|
||||
Jar(new DefaultJarPacker()),
|
||||
|
||||
/**
|
||||
* BigInteger
|
||||
*/
|
||||
BigInteger(new BigIntegerPacker()),
|
||||
|
||||
/**
|
||||
* BCEL
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user