Skip to content

Commit

Permalink
XMap 1.0.3 Minor Release
Browse files Browse the repository at this point in the history
* XMap 1.0.3 Minor Release.
* Fix Bugs:
  * Fix multiple port scanning modules, enabling `-p 0-65535`
  • Loading branch information
idealeer committed Dec 29, 2021
1 parent 2b2bf5a commit 991e06f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@
* XMap 1.0.2 Minor Release.
* Fix Bugs:
* Prevent multiple definitions of global variable IID when GCC >= 10 (thanks for @juergenhoetzel)

# 1.0.3 2021-12-29
* XMap 1.0.3 Minor Release.
* Fix Bugs:
* Fix multiple port scanning modules, enabling `-p 0-65535`
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ With banner grab and TLS handshake tool, [ZGrab2](https://github.com/zmap/zgrab2
Installation
------------

The latest stable release of XMap is version 1.0.2 and supports Linux, macOS, and BSD. We recommend installing XMap from HEAD rather than using a distro package manager (not supported yet).
The latest stable release of XMap is version 1.0.3 and supports Linux, macOS, and BSD. We recommend installing XMap from HEAD rather than using a distro package manager (not supported yet).

**Instructions on building XMap from source** can be found in [INSTALL](https://github.com/idealeer/xmap/blob/master/INSTALL.md).

Expand Down
2 changes: 1 addition & 1 deletion src/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ int send_run(sock_t st, shard_t *sd) {
sd->state.packets_tried++;
if (rc < 0) { // failed
char addr_str[64];
inet_in2str(dst_ip, addr_str, 64, 6);
inet_in2str(dst_ip, addr_str, 64, xconf.ipv46_flag);
log_debug("send", "send_packet failed for %s. %s",
addr_str, strerror(errno));
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/shard.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ typedef struct shard {
uint64_t total;
FILE * fp;
long pos;
uint16_t port_current;
uint16_t port_total;
uint32_t port_current;
uint32_t port_total;
} ip_target_file_params;
mpz_t current;
uint64_t iterations;
Expand Down
5 changes: 3 additions & 2 deletions src/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void parse_target_ports(char given_string[]) {
void init_target_port() {
log_debug("parse", "init target port");
int full = 1;
for (int i = 1; i <= 16; i++) {
for (int i = 1; i <= 17; i++) {
if (xconf.target_port_num <= full) {
log_debug("parse", "target port number: %d", xconf.target_port_num);
log_debug("parse", "target port bits: %d", xconf.target_port_bits);
Expand All @@ -149,5 +149,6 @@ void init_target_port() {
xconf.target_port_full = full;
xconf.max_probe_port_len = xconf.max_probe_len + xconf.target_port_bits;
}
log_fatal("parse", "too many target ports (%d)", xconf.target_port_num);
log_fatal("parse", "too many target ports (%d), should be <= %d",
xconf.target_port_num, full / 2);
}

0 comments on commit 991e06f

Please sign in to comment.