Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0.0:panic: runtime error: index out of range [0] with length 0 #146

Closed
hktalent opened this issue Dec 31, 2022 · 2 comments
Closed

v1.0.0:panic: runtime error: index out of range [0] with length 0 #146

hktalent opened this issue Dec 31, 2022 · 2 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@hktalent
Copy link

v1.0.0

cmd:

cat china.xml|grep -Eo '((\d{1,3}\.){3,}\d{1,3})'|tlsx -p 443 -nc -o chinaxx.json -json

error:

panic: runtime error: index out of range [0] with length 0

goroutine 112 [running]:
github.com/zmap/zcrypto/verifier.CheckOCSP({0x5292658, 0xc000136058}, 0xc003be1000, 0xc000154000?)
	/Users/51pwn/go/pkg/mod/github.com/zmap/zcrypto@v0.0.0-20220803033029-557f3e4940be/verifier/revocation.go:52 +0x57c
github.com/projectdiscovery/tlsx/pkg/tlsx/clients.IsZTLSRevoked(0xc003be1000)
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/pkg/tlsx/clients/clients.go:327 +0x35
github.com/projectdiscovery/tlsx/pkg/tlsx/clients.IsTLSRevoked(0xc002137900?)
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/pkg/tlsx/clients/clients.go:321 +0x45
github.com/projectdiscovery/tlsx/pkg/tlsx/tls.(*Client).convertCertificateToResponse(0xc000402240, {0xc002137900, 0xd}, 0xc00143c100)
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/pkg/tlsx/tls/tls.go:205 +0x1c5
github.com/projectdiscovery/tlsx/pkg/tlsx/tls.(*Client).ConnectWithOptions(0xc000402240, {0xc002137900, 0xd}, {0x0?, 0xc000100000?}, {0xc000136498, 0x3}, {{0x0, 0x0}, {0x0, ...}, ...})
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/pkg/tlsx/tls/tls.go:185 +0x8aa
github.com/projectdiscovery/tlsx/pkg/tlsx/auto.(*Client).ConnectWithOptions(0xc000402270, {0xc002137900, 0xd}, {0x0, 0x0}, {0xc000136498, 0x3}, {{0x0, 0x0}, {0x0, ...}, ...})
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/pkg/tlsx/auto/auto.go:38 +0xc5
github.com/projectdiscovery/tlsx/pkg/tlsx.(*Service).ConnectWithOptions(0xc000402228, {0xc002137900, 0xd}, {0x0, 0x0}, {0xc000136498, 0x3}, {{0x0, 0x0}, {0x0, ...}, ...})
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/pkg/tlsx/tlsx.go:66 +0x116
github.com/projectdiscovery/tlsx/internal/runner.(*Runner).processInputElementWorker(0xc0003c9700, 0x0?, 0x0?)
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/internal/runner/runner.go:161 +0x637
created by github.com/projectdiscovery/tlsx/internal/runner.(*Runner).Execute
	/Users/51pwn/go/pkg/mod/github.com/projectdiscovery/tlsx@v1.0.0/internal/runner/runner.go:122 +0x65
	
@hktalent hktalent added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Dec 31, 2022
@ehsandeep
Copy link
Member

@hktalent this is already fixed in dev with #138

@ehsandeep
Copy link
Member

Closing as this is already fixed.

@ehsandeep ehsandeep closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

2 participants