The "bane" Python library stands out as a robust toolkit catering to a wide spectrum of cybersecurity and networking tasks. Its versatile range of functionalities covers various aspects, including bruteforce attacks, cryptographic methods, DDoS attacks, information gathering, botnet creation and management, and CMS vulnerability scanning and more..
There is a typo in the geo_ip() static method from IP_Info class in ips.py :
@staticmethod
def geo_ip(u, timeout=15):
"""
this function is for getting: geoip informations
"""
ip=IP_Info.parse_IP(ip) # TYPO HERE, ip VARIABLE ISNT DEFINED BEFOREHAND, LEADING TO UNBOUNDLOCALERROR
try:
return requests.Session().get(
"https://api.db-ip.com/v2/free/" + u,
headers={"User-Agent": RD_USER_AGENT},
timeout=timeout,
).json()
except Exception as ex:
return ip
There is a typo in the geo_ip() static method from IP_Info class in ips.py :
Hope it helps ! Have a nice day