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

Multiple Commands #56

Closed
raithedavion opened this issue Sep 21, 2016 · 2 comments
Closed

Multiple Commands #56

raithedavion opened this issue Sep 21, 2016 · 2 comments

Comments

@raithedavion
Copy link

Is there a reason why this works "ping -c 4 " works, but "ping -c 2 ; ping -c 2 " doesn't work when generating payloads? I can't seem to get anything that isn't a single command to work (no output redirection, not multiple commands, etc.

@frohoff
Copy link
Owner

frohoff commented Sep 22, 2016

The short answer is that Runtime.exec() doesn't get passed through the shell and therefore doesn't support shell features/syntax such as ;, &, |, >, <. The long answer is that it's complicated and you'll probably want to read this for more info.

@frohoff
Copy link
Owner

frohoff commented Mar 8, 2017

Closing for now.

@frohoff frohoff closed this as completed Mar 8, 2017
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