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
- Host: GitHub
- URL: https://github.com/woanware/extract-web-domains
- Owner: woanware
- Created: 2017-02-03T08:12:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T08:37:11.000Z (over 9 years ago)
- Last Synced: 2024-06-20T05:02:43.122Z (about 2 years ago)
- Topics: dfir, golang, log, log-analysis
- Language: Go
- Size: 225 KB
- Stars: 6
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```