Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion onesixtyone.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,6 @@ int main(int argc, char* argv[])

/* remote address */
remote_addr.sin_family = AF_INET;
remote_addr.sin_port = htons(o.port);

if (!o.quiet) printf("Scanning %d hosts, %d communities\n", host_count, community_count);

Expand All @@ -938,6 +937,7 @@ int main(int argc, char* argv[])

for (i = 0; i < host_count; i++) {
remote_addr.sin_addr.s_addr = host[i].addr;
remote_addr.sin_port = htons(o.port);
if (o.debug > 1) printf("Sending to ip %s\n", inet_ntoa(*(struct in_addr*)&remote_addr.sin_addr.s_addr));

ret = sendto(sock, &sendbuf, sendbuf_size, 0, (struct sockaddr*)&remote_addr, sizeof(remote_addr));
Expand Down