N0MoreSecr3ts / wraith

Uncover forgotten secrets and bring them back to life, haunting security and operations teams.
MIT License
206 stars 42 forks source link

Fix/rename module #121

Closed DocEmmetBrown closed 2 years ago

DocEmmetBrown commented 2 years ago

renaming module from wraith to github.com/N0MoreSecr3ts/wraith to enable imports from outside.

We can now do things like :

package main

import (
    "fmt"

    "github.com/N0MoreSecr3ts/wraith/core"
)

func main() {
    tmpFolderPath := "./tmp"

    wraithConfig := core.SetConfig()
    scanType := "localPath"
    sess := core.NewSession(wraithConfig, scanType)
    sess.Silent = true

    core.ScanDir(tmpFolderPath, sess)

    for _, finding := range sess.Findings {
        fmt.Println(finding.Content)
    }
}
codeclimate[bot] commented 2 years ago

Code Climate has analyzed commit 2ba95edf and detected 0 issues on this pull request.

View more on Code Climate.