Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyal1 committed Jun 28, 2024
1 parent a76c1ae commit 64f7a33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/resources/initEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from java.lang import Runnable, Thread
from java.util.concurrent import Executors, TimeUnit
import random, string
from java.lang import System

# Enum Class
from burp.api.montoya.http import HttpMode
Expand Down Expand Up @@ -45,7 +46,9 @@ def run_in_pool(pool):
def decorator(func):
def wrapper(*args, **kwargs):
return pool.run(func, *args, **kwargs)

return wrapper

return decorator


Expand All @@ -54,8 +57,10 @@ def wrapper(*args, **kwargs):
class JavaRunnable(Runnable):
def run(self):
func(*args, **kwargs)

thread = Thread(JavaRunnable())
thread.start()

return wrapper


Expand Down Expand Up @@ -91,3 +96,7 @@ def base64encode(text):

def base64decode(text):
return Utils.base64Utils().decode(text).toString().encode()


def ts():
return System.currentTimeMillis()

0 comments on commit 64f7a33

Please sign in to comment.