Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kangaroos-are-cool/directoryscanner

A go module for scanning directories for sensitive information (or anything you'd like really)
https://github.com/kangaroos-are-cool/directoryscanner

gathering go golang information infosec pii regex scanning sensitive

Last synced: 3 months ago
JSON representation

A go module for scanning directories for sensitive information (or anything you'd like really)

Awesome Lists containing this project

README

        

# directoryscanner
[![Go Report Card](https://goreportcard.com/badge/github.com/audrey-morrisette/directoryscanner)](https://goreportcard.com/report/github.com/audrey-morrisette/directoryscanner) ![Go](https://github.com/audrey-morrisette/directoryscanner/workflows/Go/badge.svg) ![CodeQL](https://github.com/audrey-morrisette/directoryscanner/workflows/CodeQL/badge.svg?branch=main) [![Go Reference](https://pkg.go.dev/badge/github.com/audrey-morrisette/directoryscanner.svg)](https://pkg.go.dev/github.com/audrey-morrisette/directoryscanner) [![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/Naereen/StrapDown.js/blob/master/LICENSE)

**A simple go module for scanning directories for sensitive information (or really anything you want)**

## How to Use

```
import(
ds "github.com/audrey-morrisette/directoryscanner"
...
)
...
results, err := ds.Scan(".")
for _, result := range results{
fmt.Println(result)
}
```

`Scan(path string)`
returns a slice of strings containing all findings from the given directory

`Find(path string, dataTypes ...string)`
returns a slice of strings containing all the findings specified by the variadic parameter 'dataTypes'

`FindString(path string, strings ...string)`
returns a slice of strings containing all findings as specified by the variadic parameter 'strings' which can contain any string you like

## TODO:
- [x] Add simpler way to add new items to scan for
- [x] Improve Documentation
- [x] Add ability to scan .zip
- [ ] Performance Improvements
- [ ] Function to export findings to file