-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implementing whois query and layout, adding concurrency in a bunch of…
… places
- Loading branch information
1 parent
54994e5
commit f58dc9b
Showing
11 changed files
with
180 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"sync" | ||
) | ||
|
||
func RunConcurrently(tasks ...func()) { | ||
var wg sync.WaitGroup | ||
wg.Add(len(tasks)) | ||
|
||
for _, task := range tasks { | ||
go func(t func()) { | ||
defer wg.Done() | ||
t() | ||
}(task) | ||
} | ||
|
||
wg.Wait() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
package models | ||
|
||
import ( | ||
"html/template" | ||
|
||
"github.com/CyberRoute/bruter/pkg/shodan" | ||
) | ||
|
||
type HomeArgs struct { | ||
Ipv4 string | ||
Ipv6 string | ||
Host shodan.Response | ||
Headers map[string]interface{} | ||
Mx map[string]uint16 | ||
SSLInfo []map[string]interface{} | ||
Ftp string | ||
Ssh string | ||
Mysql string | ||
Smtp string | ||
Pop string | ||
Irc string | ||
Ipv4 string | ||
Ipv6 string | ||
Host shodan.Response | ||
Headers map[string]interface{} | ||
Mx map[string]uint16 | ||
SSLInfo []map[string]interface{} | ||
WhoisInfo template.HTML | ||
Ftp string | ||
Ssh string | ||
Mysql string | ||
Smtp string | ||
Pop string | ||
Irc string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{template "base" .}} | ||
|
||
{{define "content"}} | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col"> | ||
<div class="card bg-dark text-light mb-4"> | ||
<div class="card-body"> | ||
<div class="card-header bg-success"> | ||
<h5><i class="bi bi-search"></i> WHOIS Information</h5> | ||
</div> | ||
<div class="mt-3"> | ||
<p class="text-break">{{.WhoisInfo}}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{end}} |