Skip to content
This repository was archived by the owner on Feb 28, 2020. It is now read-only.

adamdecaf/go-security-txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-security-txt

A golang parser and cli tool for security.txt

Usage

If you want to use this as a library:

package main

import (
    sectext "github.com/adamdecaf/go-security-txt"
)

func main() {
    addr := "https://securitytxt.org"
    sec, err := sectext.FromUrl(addr)
    if err != nil {
			fmt.Println(err)
    }
    fmt.Println(sec.Contact)
}

Cli

You can use the cli like:

$ security-txt -address https://securitytxt.org
security.txt for https://securitytxt.org
  Contact: https://twitter.com/EdOverflow

About

WIP - Golang security.txt parser and cli tool

Resources

Security policy

Stars

Watchers

Forks

Packages