-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from projectdiscovery/dev
uncover v1.0.4
- Loading branch information
Showing
55 changed files
with
791 additions
and
643 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
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
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,44 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
|
||
"github.com/projectdiscovery/gologger" | ||
"github.com/projectdiscovery/uncover" | ||
"github.com/projectdiscovery/uncover/sources" | ||
) | ||
|
||
func main() { | ||
opts := uncover.Options{ | ||
Agents: []string{"shodan"}, | ||
Queries: []string{"ssl:'hackerone.com'"}, | ||
Limit: 50, | ||
MaxRetry: 2, | ||
Timeout: 20, | ||
} | ||
|
||
u, err := uncover.New(&opts) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
allagents := u.AllAgents() | ||
gologger.Info().Msgf("Available uncover agents/sources :") | ||
for _, v := range allagents { | ||
fmt.Println(v) | ||
} | ||
|
||
fmt.Println("\n\n- Uncover Results:") | ||
result := func(result sources.Result) { | ||
fmt.Println(result.IpPort()) | ||
} | ||
|
||
// Execute executes and returns a channel with all results | ||
// ch , err := u.Execute(context.Background()) | ||
|
||
// Execute with Callback calls u.Execute() internally and abstracts channel handling logic | ||
if err := u.ExecuteWithCallback(context.TODO(), result); err != nil { | ||
panic(err) | ||
} | ||
} |
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
Oops, something went wrong.