Skip to content

Commit 94032b4

Browse files
committed
adding nonce-disrespect
1 parent 8a9b52d commit 94032b4

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Installers for the following tools are included:
7575
| crypto | [libc-database](https://github.com/niklasb/libc-database) | Build a database of libc offsets to simplify exploitation. | <!--tool--><!--test-->
7676
| crypto | [littleblackbox](https://github.com/devttys0/littleblackbox) | Database of private SSL/SSH keys for embedded devices. | <!--tool--><!--test-->
7777
| crypto | [msieve](http://sourceforge.net/projects/msieve/) | Msieve is a C library implementing a suite of algorithms to factor large integers. | <!--tool--><!--test-->
78+
| crypto | [nonce-disrespect](https://github.com/nonce-disrespect/nonce-disrespect) | Nonce-Disrespecting Adversaries: Practical Forgery Attacks on GCM in TLS. | <!--tool--><!--test-->
7879
| crypto | [pemcrack](https://github.com/robertdavidgraham/pemcrack) | SSL PEM file cracker. | <!--tool--><!--test-->
7980
| crypto | [pkcrack](https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html) | PkZip encryption cracker. | <!--tool--><!--test-->
8081
| crypto | [python-paddingoracle](https://github.com/mwielgoszewski/python-paddingoracle) | Padding oracle attack automation. | <!--tool--><!--test-->

nonce-disrespect/build.patch

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/tool/Makefile b/tool/Makefile
2+
index 39983c2..60c8dfc 100644
3+
--- a/tool/Makefile
4+
+++ b/tool/Makefile
5+
@@ -4,10 +4,10 @@ LDLIBS += -lgmp -lntl
6+
all : recover forge
7+
8+
recover : recover.o gcm.o
9+
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^
10+
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^ $(LDLIBS)
11+
12+
forge : forge.o gcm.o
13+
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^
14+
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(LDLIBS) $^ $(LDLIBS)
15+
16+
%.o : %.cpp
17+
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $^

nonce-disrespect/install

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash -ex
2+
3+
git clone https://github.com/nonce-disrespect/nonce-disrespect.git
4+
git -C nonce-disrespect apply $PWD/build.patch
5+
make -C nonce-disrespect/tool
6+
7+
mkdir bin
8+
cp nonce-disrespect/tool/forge bin/
9+
cp nonce-disrespect/tool/recover bin/

nonce-disrespect/install-root-debian

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
apt-get install libntl-dev

0 commit comments

Comments
 (0)