diff --git a/README.md b/README.md index f28e0c4..6b558c9 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ Installers for the following tools are included: | crypto | [libc-database](https://github.com/niklasb/libc-database) | Build a database of libc offsets to simplify exploitation. | | crypto | [littleblackbox](https://github.com/devttys0/littleblackbox) | Database of private SSL/SSH keys for embedded devices. | | crypto | [msieve](http://sourceforge.net/projects/msieve/) | Msieve is a C library implementing a suite of algorithms to factor large integers. | +| crypto | [nonce-disrespect](https://github.com/nonce-disrespect/nonce-disrespect) | Nonce-Disrespecting Adversaries: Practical Forgery Attacks on GCM in TLS. | | crypto | [pemcrack](https://github.com/robertdavidgraham/pemcrack) | SSL PEM file cracker. | | crypto | [pkcrack](https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html) | PkZip encryption cracker. | | crypto | [python-paddingoracle](https://github.com/mwielgoszewski/python-paddingoracle) | Padding oracle attack automation. | diff --git a/nonce-disrespect/build.patch b/nonce-disrespect/build.patch new file mode 100644 index 0000000..8139b43 --- /dev/null +++ b/nonce-disrespect/build.patch @@ -0,0 +1,17 @@ +diff --git a/tool/Makefile b/tool/Makefile +index 39983c2..60c8dfc 100644 +--- a/tool/Makefile ++++ b/tool/Makefile +@@ -4,10 +4,10 @@ LDLIBS += -lgmp -lntl + all : recover forge + + recover : recover.o gcm.o +- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^ ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^ $(LDLIBS) + + forge : forge.o gcm.o +- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^ ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^ $(LDLIBS) + + %.o : %.cpp + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $^ diff --git a/nonce-disrespect/install b/nonce-disrespect/install new file mode 100755 index 0000000..63cd486 --- /dev/null +++ b/nonce-disrespect/install @@ -0,0 +1,9 @@ +#!/bin/bash -ex + +git clone https://github.com/nonce-disrespect/nonce-disrespect.git +git -C nonce-disrespect apply $PWD/build.patch +make -C nonce-disrespect/tool + +mkdir bin +cp nonce-disrespect/tool/forge bin/ +cp nonce-disrespect/tool/recover bin/ diff --git a/nonce-disrespect/install-root-debian b/nonce-disrespect/install-root-debian new file mode 100755 index 0000000..d3aee85 --- /dev/null +++ b/nonce-disrespect/install-root-debian @@ -0,0 +1,3 @@ +#!/bin/bash + +apt-get install libntl-dev