-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding openssl prototype via cgo bindings (#64)
* Adding openssl prototype via cgo bindings * making openssl optional * using zcrypto * removing unused fields * attempting to fix go.sum hashes * moving code around + fixing connect issues * Added openssl support to auto mode + misc * Added SNI support to openssl + misc fixes to auto * Fixed errrors in logic + remove dead code * Accept any version of SSL * adding linux snippet + updating readme * listing openssl only if supported * fixing go.mod Co-authored-by: Ice3man <[email protected]>
- Loading branch information
1 parent
01500b0
commit 3093b49
Showing
15 changed files
with
345 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
openssl_conf = default_conf | ||
|
||
[ default_conf ] | ||
|
||
ssl_conf = ssl_sect | ||
|
||
[ssl_sect] | ||
|
||
system_default = system_default_sect | ||
|
||
[system_default_sect] | ||
MinProtocol = TLSv1 | ||
CipherString = DEFAULT:@SECLEVEL=1 |
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,5 @@ | ||
package openssl | ||
|
||
import "github.com/pkg/errors" | ||
|
||
var ErrNotSupported = errors.New("openssl not supported") |
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,24 @@ | ||
//go:build !openssl | ||
|
||
// Package openssl implements a tls grabbing implementation using openssl | ||
package openssl | ||
|
||
import ( | ||
"github.com/projectdiscovery/tlsx/pkg/tlsx/clients" | ||
) | ||
|
||
// Enabled reports if the tool was compiled with openssl support | ||
const Enabled = false | ||
|
||
// Client is a TLS grabbing client using crypto/tls | ||
type Client struct{} | ||
|
||
// New creates a new grabbing client using crypto/tls | ||
func New(options *clients.Options) (*Client, error) { | ||
return nil, ErrNotSupported | ||
} | ||
|
||
// Connect connects to a host and grabs the response data | ||
func (c *Client) ConnectWithOptions(hostname, ip, port string, options clients.ConnectOptions) (*clients.Response, error) { | ||
return nil, ErrNotSupported | ||
} |
Oops, something went wrong.