Skip to content

Commit

Permalink
correct reverse IP lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaBouali committed Dec 9, 2023
1 parent 3e3e2d9 commit 6268e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bane/gather_info/ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def geo_ip(ip, timeout=15, proxy=None):


@staticmethod
def reverse_ip_lookup(u, timeout=10, proxy=None):
def reverse_ip_lookup(ip, timeout=10, proxy=None):
"""
this function is for: reverse ip look up
if you've used it 100 times in 24 hours, your IP will be banned by "api.hackertarget.com" so i highly recommand you to use the "proxy" option by adding a http(s) proxy:
Expand All @@ -67,7 +67,7 @@ def reverse_ip_lookup(u, timeout=10, proxy=None):
ip=IP_Info.parse_IP(ip)
try:
r = requests.Session().get(
"https://api.hackertarget.com/reverseiplookup/?q=" + u,
"https://api.hackertarget.com/reverseiplookup/?q=" + ip,
headers={"User-Agent": random.choice(Common_Variables.user_agents_list)},
proxies=proxy,
timeout=timeout,
Expand Down

0 comments on commit 6268e36

Please # to comment.