Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
netevert committed Jun 27, 2019
1 parent 77e66ce commit aa773a1
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed

- Updated GeoLite database
- Improved output text formatting

## [1.2.5] - 2019-05-04

Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,49 +67,73 @@ Usage
<p>

./dnsmorph -d amazon.com

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/simple_permutation.gif)

</p>
</details>
<details><summary>Run attacks against a list of domains</summary>
<p>

./dnsmorph -l domains.txt

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/list_permutation.gif)

</p>
</details>
<details><summary>Include subdomain in attack</summary>
<p>

./dnsmorph -d staging.amazon.com -i

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/subdomain_permutation.gif)

</p>
</details>
<details><summary>Run dns resolutions against permutated domains</summary>
<p>

./dnsmorph -d amazon.com -r

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/resolution.gif)

</p>
</details>
<details><summary>Run geolocation against permutated domains</summary>
<p>

./dnsmorph -d amazon.com -g

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/geolocation.gif)

</p>
</details>
<details><summary>Run whois lookup against permutated domains</summary>
<p>

./dnsmorph -d amazon.com -w

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/whois_lookup.gif)

</p>
</details>
<details><summary>Output results to csv or json</summary>
<p>

./dnsmorph -d amazon.com -r -g -csv
./dnsmorph -d amazon.com -r -g -json

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/write_to_file.gif)

</p>
</details>
<details><summary>Activate verbose output</summary>
<p>

./dnsmorph -d staging.amazon.com -v

![demo](https://github.com/netevert/dnsmorph/blob/master/docs/verbose_output.gif)

</p>
</details>
<p></p>
Expand Down
8 changes: 4 additions & 4 deletions dnsmorph.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ type OutJSON struct {
// prints Record data
func (r *Record) printRecordData(writer *tabwriter.Writer, verbose bool) {
if verbose != false {
fmt.Fprintln(writer, r.Technique+"\t"+r.Domain+"\t"+"A:"+r.A+"\t"+"GEO:"+r.Geolocation+
"\t"+"CREATED:"+r.WhoisCreation+"\t"+"MODIFIED:"+r.WhoisModification)
fmt.Fprintln(writer, r.Technique+"\t"+r.Domain+"\t"+r.A+
"\t"+r.WhoisCreation+"\t"+r.WhoisModification + "\t"+r.Geolocation)
writer.Flush()
} else {
fmt.Fprintln(writer, r.Domain+"\t"+r.A+"\t"+r.Geolocation+"\t"+r.WhoisCreation+"\t"+r.WhoisModification)
fmt.Fprintln(writer, r.Domain+"\t"+r.A+"\t"+r.WhoisCreation+"\t"+r.WhoisModification+"\t"+r.Geolocation)
writer.Flush()
}
}
Expand Down Expand Up @@ -449,7 +449,7 @@ func processInput(input string) (sanitizedDomain, tld string) {
// helper function to print permutation report and miscellaneous information
func printReport(technique string, results []string, tld string) {
out := make(chan Record)
w.Init(os.Stdout, 28, 8, 0, '\t', 0)
w.Init(os.Stdout, 0, 22, 0, '\t', 0)
switch {
case *resolve == true && *geolocate == true && *whoisflag == true:
runLookups(technique, results, tld, out, *resolve, *geolocate, *whoisflag)
Expand Down
Binary file added docs/geolocation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/list_permutation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/resolution.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/simple_permutation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/subdomain_permutation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/verbose_output.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/whois_lookup.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/write_to_file.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aa773a1

Please sign in to comment.