Conversation
tarunKoyalwar
approved these changes
Nov 9, 2023
Member
tarunKoyalwar
left a comment
There was a problem hiding this comment.
lgtm !
before
$ go run . -a AS15169
___ _____ __
/ _ | / __/ |/ /_ _ ___ ____
/ __ |_\ \/ / ' \/ _ / _ \
/_/ |_/___/_/|_/_/_/_/\_,_/ .__/
/_/
projectdiscovery.io
[INF] Current asnmap version v1.0.5 (latest)
panic: runtime error: index out of range [15] with length 0
goroutine 1 [running]:
github.com/projectdiscovery/mapcidr.ipNetToRange({{0x0, 0x0, 0x0}, {0x1400023c6b0, 0x10, 0x10}})
/Users/tarun/go/pkg/mod/github.com/projectdiscovery/[email protected]/ip.go:289 +0x498
github.com/projectdiscovery/mapcidr.partitionCIDR({{0x1400023c640, 0x10, 0x10}, {0x1400023c650, 0x10, 0x10}}, {{0x0, 0x0, 0x0}, {0x1400023c6b0, ...}})
/Users/tarun/go/pkg/mod/github.com/projectdiscovery/[email protected]/ip.go:622 +0x178
github.com/projectdiscovery/mapcidr.rangeToCIDRs({0x0, 0x0, 0x0}, {0x0, 0x0, 0x0})
/Users/tarun/go/pkg/mod/github.com/projectdiscovery/[email protected]/ip.go:599 +0x548
github.com/projectdiscovery/mapcidr.GetCIDRFromIPRange({0x0, 0x0, 0x0}, {0x0, 0x0, 0x0})
/Users/tarun/go/pkg/mod/github.com/projectdiscovery/[email protected]/ip.go:1058 +0xe0
github.com/projectdiscovery/asnmap/libs.GetCIDR({0x140003b0000, 0xb8, 0x10?})
/Users/tarun/Codebase/asnmap/libs/cidr.go:12 +0x180
github.com/projectdiscovery/asnmap/runner.(*Runner).writeOutput(0x140003912a8, {0x140003b0000?, 0x14000after
$ go run . -a AS15169 | head
___ _____ __
/ _ | / __/ |/ /_ _ ___ ____
/ __ |_\ \/ / ' \/ _ / _ \
/_/ |_/___/_/|_/_/_/_/\_,_/ .__/
/_/
projectdiscovery.io
[INF] Current asnmap version v1.0.5 (latest)
8.8.4.0/24
8.8.8.0/24
8.35.200.0/21
34.0.48.0/20
34.0.96.0/19
34.0.128.0/18
34.0.192.0/19
34.0.224.0/22
34.0.240.0/20
34.1.16.0/20
ehsandeep
approved these changes
Nov 9, 2023
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #212