https://github.com/yryz/heartbleed.js
openssl Heartbleed bug(CVE-2014-0160) check for Node.js
https://github.com/yryz/heartbleed.js
heartbleed javascript nodejs openssl
Last synced: about 1 month ago
JSON representation
openssl Heartbleed bug(CVE-2014-0160) check for Node.js
- Host: GitHub
- URL: https://github.com/yryz/heartbleed.js
- Owner: yryz
- License: gpl-2.0
- Created: 2014-04-19T06:20:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-30T09:25:33.000Z (about 10 years ago)
- Last Synced: 2025-04-07T08:07:52.034Z (about 1 month ago)
- Topics: heartbleed, javascript, nodejs, openssl
- Language: JavaScript
- Homepage:
- Size: 258 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
heartbleed.js
=============openssl Heartbleed bug check for Node.js
check result
============
```
{"code":0,"data":"1803021003020ff0d8030253435b909d9b720bbc0cbc2b92a84897cfbd3904cc160a8503909..."}
```
* `code: 0` vulnerable. (存在漏洞)
* `code: 1` not vulnerable. (不存在漏洞)Demo
=====
```
npm install heartbleed-check
``````javascript
var heartbleed = require('heartbleed-check');app.get('/:domain/:port', function(req, res) {
heartbleed.doCheck(req.param('domain'), req.param('port'), function(err, result) {
res.json(result);
});
});
```