adding nonce-disrespect

This commit is contained in:
Yan 2018-03-24 23:30:17 -07:00
parent 8a9b52d5a6
commit 94032b49cd
4 changed files with 30 additions and 0 deletions

View file

@ -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. | <!--tool--><!--test-->
| crypto | [littleblackbox](https://github.com/devttys0/littleblackbox) | Database of private SSL/SSH keys for embedded devices. | <!--tool--><!--test-->
| crypto | [msieve](http://sourceforge.net/projects/msieve/) | Msieve is a C library implementing a suite of algorithms to factor large integers. | <!--tool--><!--test-->
| crypto | [nonce-disrespect](https://github.com/nonce-disrespect/nonce-disrespect) | Nonce-Disrespecting Adversaries: Practical Forgery Attacks on GCM in TLS. | <!--tool--><!--test-->
| crypto | [pemcrack](https://github.com/robertdavidgraham/pemcrack) | SSL PEM file cracker. | <!--tool--><!--test-->
| crypto | [pkcrack](https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html) | PkZip encryption cracker. | <!--tool--><!--test-->
| crypto | [python-paddingoracle](https://github.com/mwielgoszewski/python-paddingoracle) | Padding oracle attack automation. | <!--tool--><!--test-->

View file

@ -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 $@ $^

9
nonce-disrespect/install Executable file
View file

@ -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/

View file

@ -0,0 +1,3 @@
#!/bin/bash
apt-get install libntl-dev