tasks

package
v0.0.0-...-3f80445 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

func About()

About prints details about the program

func Audit

func Audit()

Audit - Runs several security checks, then prints found vulnerabilites * Can use a lot of the commands from 'Full-Tilt-Bash' TODO add current software version checks TODO add using default DNS check TODO add antivirus check TODO add guest user check TODO add auto update check TODO add password policy check TODO add empty trash check TODO add vpn check TODO add microphone check (recommend disabling) TODO add camera check (recommend disabling or covering) TODO trim white space & brackets in solution & problem arrays

func Bleach

func Bleach(target string)

Bleach securely overwrites target file 3 times with Gutmann

func Clean

func Clean()

Clean clears cached files TODO run "apt-get autoremove" TODO run "apt-get dist-upgrade" TODO run "apt-get update && apt-get upgrade" TODO clean temporary file locations

func Compress

func Compress(target string)

Compress will compress the target file into gzip format TODO: rework gzip extension adding

func CreateUsb

func CreateUsb(target string)

CreateUsb downloads a zip folder with a bunch of tools at a target location

func Decompress

func Decompress(target string)

Decompress will decompress the target file in gzip format NOTE: make sure to check for gzip extension

func DecryptFile

func DecryptFile(target string)

DecryptFile decrypts the target file BUG: decrypted file is unusable NOTE: decrypt file doesn't actually save as unencrypted

func DisplayTitles

func DisplayTitles(articles []*rss.Item)

DisplayTitles loops through an entire array of rss items and prints the titles

func Dos

func Dos(target string, duration *time.Duration)

Dos indefinitely sends data to target TODO: add amplification - such as NTP monlist

func DownloadArticle

func DownloadArticle(article *rss.Item) error

DownloadArticle saves an html file copy of the article

func Email

func Email()

Email sends an email BUG: no such host (likely because \n in input) TODO: break up into Util functions TODO: add more comments TODO: find out if attachment works with path, or just name

func EncryptFile

func EncryptFile(target string)

EncryptFile encrypts the target file

func GeneratePassword

func GeneratePassword(target string, output io.Writer)

GeneratePassword generated a random string for use as a password

func GetChoice

func GetChoice(msg string) int

GetChoice gets the index number selected by the user, in order to select it later on

func HashFile

func HashFile(target string)

HashFile takes a file path, and then prints the hash of the file BUG won't work unless ran from non-dialog mode / by using commandline flags TODO trim ” from target when hashing

func IndexArticles

func IndexArticles(feed *rss.Feed) []*rss.Item

IndexArticles loops through an entire rss feed and returns an array of items

func Install

func Install(target string)

Install - will install the current executable to the specified target TODO: document

func List

func List()

List will list all currently working tasks

func News

func News()

TODO: need to import from github instead

func PrintOptions

func PrintOptions()

PrintOptions displays available choices after an article has been selected

func PrintSources

func PrintSources()

PrintSources prints all the available news sources and their sourceIDs

func PwnAccount

func PwnAccount(target string)

PwnAccount checks to see if an account has been pwned TODO: break up into Util functions

func Scrape

func Scrape(target string)

Scrape will scrape the target website

func Sources

func Sources(sourceID int)

News select news source to print articles from, based on ID

func SystemInfo

func SystemInfo()

SystemInfo prints extensive info about system TODO: make & add more info functions

func ToggleFirewall

func ToggleFirewall(target string)

ToggleFirewall allows the user to enable/disable system firewall TODO: add support for more systems - think only works on debian/ubuntu

func ViewArticle

func ViewArticle(article *rss.Item)

ViewArticle uses colly to scrape an article's link for "p" html tag * npr has a cookie policy problem

Types

This section is empty.

Jump to

Keyboard shortcuts

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