infinition / Bjorn

Bjorn is a powerful network scanning and offensive security tool for the Raspberry Pi with a 2.13-inch e-Paper HAT. It discovers network targets, identifies open ports, exposed services, and potential vulnerabilities. Bjorn can perform brute force attacks, file stealing, host zombification, and supports custom attack scripts.
MIT License
2.56k stars 106 forks source link

Let is work without WiFi and via Ethernet #57

Open To0wnn opened 3 days ago

To0wnn commented 3 days ago

Hi,

I wanted to make it work for an RPi2b I had laying around and its only having a ethernet port. So a changed the following code to bypass the WiFi Check in Bjorn.py:

#    def is_wifi_connected(self):
#        """Checks for Wi-Fi connectivity using the nmcli command."""
#        result = subprocess.Popen(['nmcli', '-t', '-f', 'active', 'dev', 'wifi'], stdout=subprocess.PIPE, text=True).c>#        self.wifi_connected = 'yes' in result
#        return self.wifi_connected

    def is_wifi_connected(self):
        """Always returns True for Wi-Fi connectivity."""
        self.wifi_connected = True
        return self.wifi_connected