Skip to content

Commit 58448b7

Browse files
committed
fixed ip counter and added a lot of juicy ports
1 parent 0a6f088 commit 58448b7

File tree

3 files changed

+351
-57
lines changed

3 files changed

+351
-57
lines changed

jfscan/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (1, 5, 1)
1+
VERSION = (1, 6, 2)
22

33
__version__ = ".".join(map(str, VERSION))

jfscan/core/resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ def count_ips(self):
249249

250250
for (cidr,) in cidrs:
251251
if Validator.is_ipv6_cidr(cidr):
252-
address_count += (2 ** (128 - int(cidr.split("/")[1]))) - 2
252+
address_count += (2 ** (128 - int(cidr.split("/")[1])))
253253
elif Validator.is_ipv4_cidr(cidr):
254-
address_count += (2 ** (32 - int(cidr.split("/")[1]))) - 2
254+
address_count += (2 ** (32 - int(cidr.split("/")[1])))
255255

256256
ips_count = cur.execute("SELECT count(DISTINCT ip) FROM ips_to_scan").fetchall()
257257

0 commit comments

Comments
 (0)