0.2.2 • Published 9 years ago

msfrpc-client-node v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

msfrpc-client

NodeJS client for msfrpcd using bluebird promises

npm install msfrpc-client-node --save

Usage

var MsfRpcClient = require('msfrpc-client-node');

// persist can be used to timeout token on the client, giving the illusion of a persisten token
// set persist to true to set timeout one exec, after 4.5 minutes a token will timeout
var client = new MsfRpcClient({
                                password:'agoodPass',
                                user:'msfUser',
                                host:'localhost',
                                persist:false
                              });

client.exec(['core.version'])
.then(
  (res)=>{
    console.log(`MSF Version : ${res.version} `)
    console.log(`API Verson: ${res.api}`)
  }
)
.catch(console.log);

client.exec(['module.exploits'])
.then(
  (res)=>{
    for(var i=0; i < res.length; i++){
      console.log(res[i])
    }
  }
)
.catch(console.log);
0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago