You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice to have a "recipe" engine for complex plugin use cases.
For instance, in order to target a Wordpress blog, right now we can either target its xmlrpc.php (faster) or wp-login.php pages via the legba http plugin. As per wiki:
legba http \
--username admin \
--password wordlists/passwords.txt \
--target http://localhost:8888/xmlrpc.php \
--http-method POST \
--http-payload '<?xml version="1.0" encoding="iso-8859-1"?><methodCall><methodName>wp.getUsersBlogs</methodName><params><param><value><string>{USERNAME}</string></value></param><param><value><string>{PASSWORD}</string></value></param></params></methodCall>' \
--http-success-string 'isAdmin' # what string successful response will contain
This recipe engine would simplify these cases with YAML files and a simple custom-variable syntax. The previous examples would become two recipes:
wordpress/xmlrpc.yml
plugin: httpargs:
- target: {$schema or https}://{$host}:{$port or 443}{$path or /}xmlrpc.php
- http-method: POST
- http-success-string: isAdmin
- http-payload:
<?xml version="1.0" encoding="iso-8859-1"?><methodCall><methodName>wp.getUsersBlogs</methodName><params><param><value><string>{USERNAME}</string></value></param><param><value><string>{PASSWORD}</string></value></param></params></methodCall>
wordpress/wp-login.yml
plugin: httpargs:
- target: {$schema or https}://{$host}:{$port or 443}{$path or /}wp-login.php
- http-method: POST
- http-success-codes: 302
- http-payload: log={USERNAME}&pwd={PASSWORD}
These recipe files could then be used to shorten the required command line:
Another example that comes to mind, as mentioned in #28, is the various ways to bruteforce MS Exchange:
ms-exchange/owa.yml
plugin: httpargs:
- target: {$schema or https}://{$host}:{$port or 443}/owa/auth.owa
- http-method: POST
- http-success-codes: 302
- http-success-string: set-cookie
- http-payload: destination={$schema or https}://{$host}:{$port or 443}/&flags=4&username={USERNAME}&password={PASSWORD}
ms-exchange/ews.yml
plugin: http.ntlm2args:
- target: {$schema or https}://{$host}:{$port or 443}/ews
- http-success-codes: 200, 500
It'd be nice to have a "recipe" engine for complex plugin use cases.
For instance, in order to target a Wordpress blog, right now we can either target its xmlrpc.php (faster) or wp-login.php pages via the legba http plugin. As per wiki:
HTTP Post Request (Wordpress wp-login.php page):
HTTP Post Request (Wordpress xmlrpc.php)
This recipe engine would simplify these cases with YAML files and a simple custom-variable syntax. The previous examples would become two recipes:
wordpress/xmlrpc.yml
wordpress/wp-login.yml
These recipe files could then be used to shorten the required command line:
or
This way plugins and specific combinations/uses of their arguments could be "aliased".
The text was updated successfully, but these errors were encountered: