Skip to content

Commit

Permalink
Incremeted version for a dumb reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Gonzalez Vivo committed Jul 29, 2017
1 parent 1e8932c commit 0b76953
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions npm-debug.log
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,16 @@
21 silly publish dependencies:
21 silly publish { bluebird: '^3.5.0',
21 silly publish decamelize: '^1.2.0',
21 silly publish 'msfrpc-client-node': '^0.2.2',
21 silly publish msgpack5: '^3.5.0',
21 silly publish request: '^2.81.0' },
21 silly publish devDependencies: {},
21 silly publish readme: '![MsfRpc logo](./assets/logo.png)\n> The Metasploit RPC api for Node.js\n\n## Getting started\n\n### Installing\n\nThis will install the cli in your system.\n```shell\nnpm install -g msfrpc\n```\n\nThis will add the msfrpc module to your Node.js project.\n```shell\nnpm install --save msfrpc\n```\n\n### Using the cli\n\n```shell\nmsfrpc-cli <URI>\n```\n\nURI example: ```https://msfUser:123456@localhost:55553```\n\n### Using the api\n\nAll msfrpc methods are grouped in the following "method groups":\n* Auth\n* Base\n* Console\n* Core\n* Db\n* Job\n* Module\n* Plugin\n* Session\n\nTo call a msfrpc, use the following pattern:\n```\nmsfrpc.<method group>.<method name (camel case)>([arguments]);\n```\n\nAll methods returns Promises.\n\nPlease note that we don\'t pass tokens to the methods.\nTokens are added automatically by MsfRpc.\n\nHere is an example:\n```js\nconst MsfRpc = require(\'msfrpc\');\n\nconst msfrpcUri = \'https://msfUser:123456@localhost:55553\';\nconst msfrpc = new MsfRpc(msfrpcUri);\n\nconsole.log(`Connecting to ${msfrpcUri}`);\nmsfrpc.connect().then(() => {\n return msfrpc.core.version().then((res) => {\n console.log(`Metasploit Framework version ${res.version}`);\n }).then(() => {\n const keyword = \'windows\';\n console.log(`Search modules containing "${keyword}". This may take a few seconds...`);\n return msfrpc.module.search(keyword).then((modules) => {\n console.log(`Found the ${modules.length} modules for "${keyword}":`);\n modules.forEach((module) => {\n console.log(\'=========\', module.fullname);\n console.log(\' Name\', module.name);\n console.log(\' Type\', module.type);\n console.log(\' Rank\', module.rank);\n if(module.disclosuredate) {\n console.log(\' Date\', module.disclosuredate);\n }\n });\n });\n });\n});\n```\n\nIn the example, we:\n* Connect to the msfrpc server\n* Obtain and print the Metasploit Version\n* Find and print all modules containing a given keyword\n\n### Api Reference\n\nFor a list and documentation of all available methods, visit the following links.\n* http://www.nothink.org/metasploit/documentation/RemoteAPI_4.1.pdf\n* https://help.rapid7.com/metasploit/Content/api/rpc/overview.html\n* https://help.rapid7.com/metasploit/Content/api/rpc/standard-reference.html\n* https://rapid7.github.io/metasploit-framework/api/Msf/RPC.html\n\nHere are some examples of method calls:\n\nGet version information:\n```js\nmsfrpc.core.version()\n```\n\nGet module stats:\n```js\nmsfrpc.core.moduleStats()\n```\n\nSearch for a module:\n```js\nmsfrpc.module.search(\'keyword\')\n```\n\nList payloads:\n```js\nmsfrpc.module.payloads()\n```\n\n## Developing\n\n### Optional Prerequisites\nThis project includes a ```Dockerfile``` (and ```docker-compose.yml```) so you dont have to build a testing environment yourself.\nTo use docker, you need it installed in your system.\nFor installation, follow the steps [here](https://docs.docker.com/compose/install/).\n\n### Setting up Dev\n\nClone the repository and install dependencies.\n```shell\ngit clone https://github.com/tomasgvivo/node-msfrpc.git\ncd node-msfrpc/\nnpm install\n```\n\n## Licensing\n\nCopyright 2017 Tomas Gonzalez Vivo\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n',
21 silly publish readmeFilename: 'README.md',
21 silly publish gitHead: 'b841f91e395121e7bcf9b447fceb9d188204c82f',
21 silly publish gitHead: '1e8932ccbff33b978e7af3c4d9cfa7c5b3907f85',
21 silly publish bugs: { url: 'https://github.com/tomasgvivo/node-msfrpc/issues' },
21 silly publish homepage: 'https://github.com/tomasgvivo/node-msfrpc#readme',
21 silly publish _id: '[email protected]',
21 silly publish _shasum: 'fa68d848d563073e1692c0c7eeb6d99380cfd32b',
21 silly publish _shasum: '69aa017ac1ad5f8ebf1a94a1b824c07454766ee4',
21 silly publish _from: '.' }
22 verbose getPublishConfig undefined
23 silly mapToRegistry name msfrpc
Expand All @@ -72,22 +71,22 @@
29 silly publish uploading /home/tomas/.npm/msfrpc/1.0.0/package.tgz
30 verbose request uri https://registry.npmjs.org/msfrpc
31 verbose request sending authorization for write operation
32 info attempt registry request try #1 at 7:46:22 PM
32 info attempt registry request try #1 at 7:46:58 PM
33 verbose request using bearer token for auth
34 verbose request id 98c3a4a14eae8832
34 verbose request id 1f9f4a45070667a5
35 http request PUT https://registry.npmjs.org/msfrpc
36 http 403 https://registry.npmjs.org/msfrpc
37 verbose headers { 'content-type': 'application/json',
37 verbose headers 'cache-control': 'max-age=300',
37 verbose headers 'content-length': '95',
37 verbose headers 'accept-ranges': 'bytes',
37 verbose headers date: 'Sat, 29 Jul 2017 22:46:24 GMT',
37 verbose headers date: 'Sat, 29 Jul 2017 22:47:00 GMT',
37 verbose headers via: '1.1 varnish',
37 verbose headers connection: 'keep-alive',
37 verbose headers 'x-served-by': 'cache-gig17031-GIG',
37 verbose headers 'x-served-by': 'cache-gig17021-GIG',
37 verbose headers 'x-cache': 'MISS',
37 verbose headers 'x-cache-hits': '0',
37 verbose headers 'x-timer': 'S1501368383.031580,VS0,VE1162',
37 verbose headers 'x-timer': 'S1501368420.616153,VS0,VE942',
37 verbose headers vary: 'Accept-Encoding, Accept' }
38 verbose request invalidating /home/tomas/.npm/registry.npmjs.org/msfrpc on PUT
39 error publish Failed PUT 403
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "msfrpc",
"version": "1.0.0",
"version": "1.0.1",
"author": "Tomas Gonzalez Vivo",
"description": "Metasploit Framework RPC api and command line interface",
"keywords": [
Expand Down

0 comments on commit 0b76953

Please sign in to comment.