AlaBouali / bane

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..
https://alabouali.medium.com/
MIT License
294 stars 57 forks source link

Typo in gather_info/ips.py #17

Closed Goaterino closed 10 months ago

Goaterino commented 10 months ago

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

Hope it helps ! Have a nice day

AlaBouali commented 10 months ago

Thank you for letting me know ! I just fixed it and added amazing new features. Please update your version and check the documentation.