Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

adamdecaf/go-security-txt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cmd
 
 
doc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published