Skip to content

Commit

Permalink
fixed ip counter and added a lot of juicy ports
Browse files Browse the repository at this point in the history
  • Loading branch information
nullt3r committed Nov 20, 2022
1 parent 0a6f088 commit 58448b7
Show file tree
Hide file tree
Showing 3 changed files with 351 additions and 57 deletions.
2 changes: 1 addition & 1 deletion jfscan/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = (1, 5, 1)
VERSION = (1, 6, 2)

__version__ = ".".join(map(str, VERSION))
4 changes: 2 additions & 2 deletions jfscan/core/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ def count_ips(self):

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

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

Expand Down
Loading

0 comments on commit 58448b7

Please sign in to comment.