Documentation ¶
Index ¶
- func About()
- func Audit()
- func Bleach(target string)
- func Clean()
- func Compress(target string)
- func CreateUsb(target string)
- func Decompress(target string)
- func DecryptFile(target string)
- func DisplayTitles(articles []*rss.Item)
- func Dos(target string, duration *time.Duration)
- func DownloadArticle(article *rss.Item) error
- func Email()
- func EncryptFile(target string)
- func GeneratePassword(target string, output io.Writer)
- func GetChoice(msg string) int
- func HashFile(target string)
- func IndexArticles(feed *rss.Feed) []*rss.Item
- func Install(target string)
- func List()
- func News()
- func PrintOptions()
- func PrintSources()
- func PwnAccount(target string)
- func Scrape(target string)
- func Sources(sourceID int)
- func SystemInfo()
- func ToggleFirewall(target string)
- func ViewArticle(article *rss.Item)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
DisplayTitles loops through an entire array of rss items and prints the titles
func DownloadArticle ¶
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 GeneratePassword ¶
GeneratePassword generated a random string for use as a password
func GetChoice ¶
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 ¶
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 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 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 ¶
ViewArticle uses colly to scrape an article's link for "p" html tag * npr has a cookie policy problem
Types ¶
This section is empty.