Added ipv4cat service to help inspect breakouts#4
Open
GOAT-FARM3R wants to merge 1 commit intosensepost:masterfrom
Open
Added ipv4cat service to help inspect breakouts#4GOAT-FARM3R wants to merge 1 commit intosensepost:masterfrom
GOAT-FARM3R wants to merge 1 commit intosensepost:masterfrom
Conversation
leonjza
requested changes
Nov 11, 2019
| var services = map[string]service{ | ||
| "letmeout": service{url: "go-out.letmeoutofyour.net", match: "w00tw00t"}, | ||
| "allports": service{url: "allports.exposed", match: "<p>Open Port</p>"}, | ||
| "ipv4cat": service{url: "ipv4.cat", match: ""}, |
Member
There was a problem hiding this comment.
Lets extract TCP services to their own type.
| return // if the first one errored already, don't continue | ||
| } | ||
|
|
||
| message, _ := bufio.NewReader(conn).ReadString('\n') |
Member
There was a problem hiding this comment.
Lets check the error here in case we never reach the \n.
|
|
||
| addr := net.ParseIP(strings.TrimSuffix(message, "\n")) | ||
|
|
||
| if addr.To4() != nil && addr.To16() != nil && !*invertPtr { |
Member
There was a problem hiding this comment.
To16() may be enough for v4 && v6 checking.
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.
No description provided.