Skip to content

Commit

Permalink
Release 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joelc authored and joelc committed Jun 7, 2014
0 parents commit ad43392
Show file tree
Hide file tree
Showing 7 changed files with 900 additions and 0 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Installation
------------

To install NSAFlood, copy the file "nsaflood" to the /usr/local/bin directory.
38 changes: 38 additions & 0 deletions MD5SUMS
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
COPYING
-------
MD5sum: d32239bcb673463ab874e80d47fae504
SHA1sum: 8624bcdae55baeef00cd11d5dfcfa60f68710a02
SHA256sum: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903
SHA512sum: 7633623b66b5e686bb94dd96a7cdb5a7e5ee00e87004fab416a5610d59c62badaf512a2e26e34e2455b7ed6b76690d2cd47464836d7d85d78b51d50f7e933d5c


INSTALL
-------
MD5sum: 4939d953c1a2e4de2c95196166f4a456
SHA1sum: fa6e1412c019c1c842945a4be5fbbdb5f9ec560c
SHA256sum: cfde9c2ea2b716f8b3cd30c5733c1d33217fff5a59d366f98488d81a6d3fd8ef
SHA512sum: 8063c05d08511b88d2b8c9c641b9313761cc5c938290f6f3df6ebf874c51ae2ed4500456364ffe91042205eb9961f6f1454e71121fd75cdf9902f01b7deecf96



nsaflood
--------
MD5sum: e0bfff902967856b5033bd38aff0369d
SHA1sum: 67836ebb13510abf360e0b5313292046f120fbc4
SHA256sum: 0ff4b2aa680e52d5e7060cb06e005fb995cd274abb7f25167cab407290e2e3a7
SHA512sum: 786f4bd9a05e9295c7455e4f19a491a329e9fba86c0920ab39b98e7e83f215598dc86cfb64d82c3305e5a60a1d659b2a4edeb9543d192ddc6e16c16863f5eeeb


README
------
MD5sum: e176de7e5553d37300d91f3234eb7268
SHA1sum: 6d6b8d8ca0b74654d0c1b863e245151515178465
SHA256sum: 786e2b9a9f903373200197784650f222a98e107f4481a92cee80834e66e452e5
SHA512sum: 5667810b724b04311b2bdc22a55ff3c5453a09dfc753a35c25d04ddb2dd71f06d4d250097aba39197eb4a6eaaff72edf9a2ba9742c15ee25dd2cf1be0e42976e

README.md
---------
MD5sum: d6c50159b06d87189a95fdfaf8cef767
SHA1sum: c68be839ed10b82b6f7c1aae103491534c8836cf
SHA256sum: 6c431989de84a07e02490d793704e2633cd0e93ade9284d07ad6588c972b1ade
SHA512sum: e83bd194fa815d915470512b7e44a6ca19a5d7557092d305c435dca6a8bd60a7e6c2698128758ec3d313c8b3a32343379f787a79870330cc78548e3406e6fa59
Binary file added MD5SUMS.sig
Binary file not shown.
28 changes: 28 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
This directory contains the 1.0 release of NSAFlood

About
-----

NSAFlood is a BASH program which aims to be used as a weapon against Internet surveillance. NSAFlood achieves this goal through the transfer of encrypted data between two or more computers connected to the Internet.

Installation
------------

Instructions to install this program are contained within the file INSTALL.

Licensing
---------

This program is subject to the terms of the GNU General Public License v3, the text of which is contained within the file COPYING.

Verifying
---------

To verify the integrity of the archive contents, you need to check the signature of the MD5SUMS file, then compare the individual file sums, like follows:

gpg --verify MD5SUMS.SIG MD5SUMS
sha512sum file

If you do not have the public key needed to verify the MD5SUMS signature, download it as so:

gpg --keyserver keys.gnupg.net --recv-key 0x01139e11ff940f07
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
NSAFlood
========

This directory contains the 1.0 release of NSAFlood

About
-----

NSAFlood is a BASH program which aims to be used as a weapon against Internet surveillance. NSAFlood achieves this goal through the transfer of encrypted data between two or more computers connected to the Internet.

Installation
------------

Instructions to install this program are contained within the file INSTALL.

Licensing
---------

This program is subject to the terms of the GNU General Public License v3, the text of which is contained within the file COPYING.

Verifying
---------

To verify the integrity of the archive contents, you need to check the signature of the MD5SUMS file, then compare the individual file sums, like follows:

```Shell
gpg --verify MD5SUMS.SIG MD5SUMS
sha512sum file
```

If you do not have the public key needed to verify the MD5SUMS signature, download it as so:

```Shell
gpg --keyserver keys.gnupg.net --recv-key 0x01139e11ff940f07
```
121 changes: 121 additions & 0 deletions nsaflood
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
#
# Copyright 2014 Joel Cool-Panama <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

#!/bin/bash

function getArg {

new=${1%%=*}

echo "$new"
}

function getArgVal {

new=${1##*=}

echo "$new"
}

HOST=""
FILESIZE=1024
PASSWORD=""
PASSWORDLENGTH=64
FLOODFILE="/tmp/nsaflood-$USER/floodfile"
GARBAGEFILE="/tmp/nsaflood-$USER/garbagefile"

for i in $@; do

if [ $(getArg $i) == "--host" ] || [ $(getArg $i) == "-h" ]; then

HOST=$(getArgVal $i)

elif [ $(getArg $i $SEPARATOR) == "--file-size" ] || [ $(getArg $i $SEPARATOR) == "-s" ]; then


FILESIZE=$((FILESIZE * $(getArgVal $i)))
fi
done

mkdir -p /tmp/nsaflood-joelc

echo -ne "\nGenerating password...\n"

PASSWORD=$(dd if=/dev/urandom bs=$PASSWORDLENGTH count=1 2> /dev/null)

if [ $? -ne 0 ]; then

echo -ne "FAILURE: Password generation failed.\n"
echo -ne "REASON: dd failed to read from /dev/urandom.\n"
echo -ne "\nExiting"

exit
fi

PASSWORD=$(echo $PASSWORD | base64)

if [ $? -ne 0 ]; then

echo -ne "FAILURE: Password generation failed.\n"
echo -ne "REASON: base64 failed to encode dd output.\n"
echo -ne "\nExiting"

exit
fi

echo -ne "Password successfully generated!\n"
echo -ne "\nGenerating and encrypting file...\n"

dd if=/dev/urandom of=$GARBAGEFILE bs=1k count=$FILESIZE 2> /dev/null

if [ $? -ne 0 ]; then

echo -ne "FAILURE: File generation failed.\n"
echo -ne "REASON: dd failed to read from /dev/urandom.\n"
echo -ne "\nExiting"

exit
fi

openssl enc -aes-256-cbc -k "$PASSWORD" -in $GARBAGEFILE -out $FLOODFILE

if [ $? -ne 0 ]; then

echo -ne "FAILURE: File generation failed\n."
echo -ne "REASON: openssl failed to encrypt the file."
echo -ne "\nExiting"

exit
fi

rm $GARBAGEFILE

echo -ne "Encrypted file generated!\n"
echo -ne "\nTransferring encrypted file to $HOST\n\n"

scp $FLOODFILE "$HOST:/dev/null"

if [ $? -ne 0 ]; then

echo -ne "FAILURE: File transfer failed.\n"
echo -ne "REASON: scp failed to transfer the file.\n"
echo -ne "\nExiting"

exit
fi

rm $FLOODFILE

0 comments on commit ad43392

Please sign in to comment.