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

https://github.com/woanware/extract-web-domains

Tool to extract domains/IP's from files
https://github.com/woanware/extract-web-domains

dfir golang log log-analysis

Last synced: 4 months ago
JSON representation

Tool to extract domains/IP's from files

Awesome Lists containing this project

README

          

# extract-web-domains

Tool to extract domains/IP's from files with validation for the data e.g. valid TLD, valid IPv4/IPv6

## gb

The project uses [gb](https://getgb.io) for building the project. **gb** allows for reproducible builds and vendoring so that all dependencies are kept with the project source.

To install **gb**, create a temporary directory and set the GOPATH environment variable to the new temporary directory.
```
$ export GOPATH=/home/bsmith/tempgb
```
Then download the source code for **gb**
```
go get github.com/constabulary/gb/...
```
Navigate to the **gb** sub-directory:
```
cd /home/bsmith/tempgb/src/github.com/constabulary/gb
```
Build the project
```
go build
```
Copy the binaries to the local path
```
cp ../../../bin/* /usr/local/bin
```
The **gb** command maybe aliased with git, so check with:
```
alias gb
```
If the alias exists then you can unaliase by:
```
unalias gb
```
## Compile with gb

To compile the application use the following commands (assuming the same directory structure):
```
$ cd extract-web-domains
$ gb build all
```