Skip to content

Added ipv4cat service to help inspect breakouts#4

Open
GOAT-FARM3R wants to merge 1 commit intosensepost:masterfrom
GOAT-FARM3R:master
Open

Added ipv4cat service to help inspect breakouts#4
GOAT-FARM3R wants to merge 1 commit intosensepost:masterfrom
GOAT-FARM3R:master

Conversation

@GOAT-FARM3R
Copy link
Copy Markdown
Member

No description provided.

Comment thread main.go
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: ""},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets extract TCP services to their own type.

Comment thread main.go
return // if the first one errored already, don't continue
}

message, _ := bufio.NewReader(conn).ReadString('\n')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets check the error here in case we never reach the \n.

Comment thread main.go

addr := net.ParseIP(strings.TrimSuffix(message, "\n"))

if addr.To4() != nil && addr.To16() != nil && !*invertPtr {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To16() may be enough for v4 && v6 checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants