update package name
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
</descriptorRefs>
|
||||
<archive>
|
||||
<manifestEntries>
|
||||
<Premain-Class>win.novice.li.AgentMain</Premain-Class>
|
||||
<Premain-Class>com.novitechie.jetbra.AgentMain</Premain-Class>
|
||||
<Can-Redefine-Classes>true</Can-Redefine-Classes>
|
||||
<Can-Retransform-Classes>true</Can-Retransform-Classes>
|
||||
</manifestEntries>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package win.novice.li;
|
||||
package com.novitechie.jetbra;
|
||||
|
||||
import net.bytebuddy.agent.builder.AgentBuilder;
|
||||
import net.bytebuddy.asm.Advice;
|
@@ -1,4 +1,4 @@
|
||||
package win.novice.li;
|
||||
package com.novitechie.jetbra;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
@@ -1,9 +1,7 @@
|
||||
package win.novice.li;
|
||||
package com.novitechie.jetbra;
|
||||
|
||||
import net.bytebuddy.asm.Advice;
|
||||
import sun.net.www.http.HttpClient;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.util.Set;
|
||||
@@ -13,7 +11,7 @@ public class HttpClientAdvice {
|
||||
@Advice.OnMethodExit
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void intercept(@Advice.This Object httpClient) throws Exception {
|
||||
Class<?> clazz = Class.forName("win.novice.li.ConfigHelper", true, ClassLoader.getSystemClassLoader());
|
||||
Class<?> clazz = Class.forName("com.novitechie.jetbra.ConfigHelper", true, ClassLoader.getSystemClassLoader());
|
||||
Method method = clazz.getDeclaredMethod("loadBlockUrlKeywords");
|
||||
Set<String> BLOCK_URL_KEYWORDS = (Set<String>) method.invoke(null);
|
||||
String clientString = httpClient.toString();
|
@@ -1,4 +1,4 @@
|
||||
package win.novice.li;
|
||||
package com.novitechie.jetbra;
|
||||
|
||||
import net.bytebuddy.asm.Advice;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class PKIXBuilderParametersAdvice {
|
||||
@Advice.OnMethodEnter
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void intercept(@Advice.Argument(value = 0, readOnly = false) Set<TrustAnchor> trustAnchors) throws Exception {
|
||||
Class<?> clazz = Class.forName("win.novice.li.ConfigHelper", true, ClassLoader.getSystemClassLoader());
|
||||
Class<?> clazz = Class.forName("com.novitechie.jetbra.ConfigHelper", true, ClassLoader.getSystemClassLoader());
|
||||
Method method = clazz.getDeclaredMethod("loadTrustAnchors");
|
||||
Set<TrustAnchor> loadedTrustAnchors = (Set<TrustAnchor>)method.invoke(null);
|
||||
HashSet<TrustAnchor> newTrustAnchors = new HashSet<>(trustAnchors);
|
@@ -1,4 +1,4 @@
|
||||
package win.novice.li;
|
||||
package com.novitechie.jetbra;
|
||||
|
||||
import net.bytebuddy.asm.Advice;
|
||||
|
Reference in New Issue
Block a user