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

Add support for Metasploit Framework console output #1620

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,4 @@ Contributors:
- Nicolas LLOBERA <nllobera@gmail.com>
- Morten Piibeleht <morten.piibeleht@gmail.com>
- Martin Clausen <martin.clausene@gmail.com>
- Tod Beardsley <tod_beardsley@rapid7.com>
34 changes: 34 additions & 0 deletions src/languages/metasploit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
Language: Metasploit Framework Session
Author: Tod Beardsley <tod_beardsley@rapid.com>
Category: common
Description: Metasploit Framework is an open source penetration testing framework, available at https://metasploit.com
*/

function(hljs) {
return {
aliases: ['msf'],
case_insensitive: false,
keywords: {
keyword: 'msf|10',
nomarkup: 'exploit auxiliary post nop encoder' // Helps classification
},
contains: [
{
className: 'strong',
begin: '^\\[\\*\\]', end: ' ',
relevance: 10
},
{
className: 'literal',
begin: '^\\[\\+\\]', end: ' ',
relevance: 10
},
{
className: 'number',
begin: '^\\[[-!]\\]', end: ' ',
relevance: 10
},
]
}
}
13 changes: 13 additions & 0 deletions test/detect/metasploit/default.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
msf auxiliary(http_version) > rerun
[*] Reloading module...

[*] This is status!
[+] This is good!
[-] This is bad!
[-] This is error!
[!] This is warning!
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(http_version) > use exploit/windows/smb/ms08_067_netapi
msf exploit(ms08_067_netapi) >