-
-
Notifications
You must be signed in to change notification settings - Fork 830
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
Feature Request: Newline display problem (classic result based technique) #44
Comments
Hey @lukapusic this issue in the pseudo shell occurs regularly in results-based command injection attacks due to the attack vectors that are used (i.e |
I see. Looking at the requests I noticed that you do not enclose $() in double quotes. Commix payload without enclosing double quotes: Same payload with $() enclosed in double quotes: Could the solution be this simple? BTW: Great tool! |
Hello @lukapusic I am afraid the solution on that issue is not that obvious. Your payload seems to be working -in some cases- but it’s not generic. For example if the target host uses the PHP |
One possible solution is to add a prefix and suffix to each line.
|
Firstly, I would like to thank you for your interest and your research in order to expand the capabilities of commix. Suddenly, your payload does not solve the problem. Every generated payload must contain only one separator (i.e |
Hey @lukapusic, I pushed a minor update (dd9f4c2) regarding the newline display in dynamic code evaluation ( |
There is a problem with parsing newlines in the pseudo shell. Consider these outputs:
commix(os_shell) > ls
index.php license.txt readme.html wp-activate.php wp-admin wp-blog-header.php wp-comments-post.php wp-config-sample.php wp-config.php wp-content wp-cron.php wp-includes wp-links-opml.php wp-load.php wp-login.php wp-mail.php wp-settings.php wp-signup.php wp-trackback.php xmlrpc.php
kali:~# curl 'http://10.11.1.234/?p=1&cmd=ls'
index.php
license.txt
readme.html
wp-activate.php
wp-admin
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-config.php
wp-content
wp-cron.php
wp-includes
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
xmlrpc.php
Tested on commix versions v1.5-dev#4 and v1.3 in several Linux injections.
The text was updated successfully, but these errors were encountered: