From 3c974f709f2d0070bceaaa86ad4ffc92bba070f2 Mon Sep 17 00:00:00 2001 From: J0hnMatrix <17948440+J0hnMatrix@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:44:48 +0200 Subject: [PATCH 1/4] Update MacAttack.pyw Added ability to use custom MAC prefixes. --- MacAttack.pyw | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/MacAttack.pyw b/MacAttack.pyw index 49cb1ac..0b8073b 100644 --- a/MacAttack.pyw +++ b/MacAttack.pyw @@ -1,6 +1,6 @@ # TODO: # Clean up code, remove redundancy -VERSION = "4.7.6" +VERSION = "4.7.7" import semver import urllib.parse import webbrowser @@ -2591,7 +2591,15 @@ class MacAttack(QMainWindow): '00:1A:79: (default)' ]) self.prefix_dropdown.addItems(prefixes) + self.prefix_dropdown.addItem("Custom MAC") dropdown_label_layout.addWidget(self.prefix_dropdown) + self.custom_prefix_input = QLineEdit() + self.custom_prefix_input.setPlaceholderText("Ex: 00:AA:BB:") + self.custom_prefix_input.setFixedWidth(100) + self.custom_prefix_input.setVisible(False) + self.custom_prefix_input.setInputMask(">HH:HH:HH:") + dropdown_label_layout.addWidget(self.custom_prefix_input) + self.custom_prefix_input.textChanged.connect(self.update_customprefix) self.prefix_dropdown.currentIndexChanged.connect(self.update_customprefix) # Hits label @@ -2676,10 +2684,13 @@ class MacAttack(QMainWindow): def update_customprefix(self): - # Update self.customprefix with the currently selected prefix - self.customprefix = self.prefix_dropdown.currentText() - self.customprefix = self.customprefix.replace(' (default)', '') #remove default - logging.info(f"Updated customprefix: {self.customprefix}") + selected = self.prefix_dropdown.currentText() + if selected == "Custom MAC": + self.custom_prefix_input.setVisible(True) + self.customprefix = self.validate_custom_prefix(self.custom_prefix_input.text()) + else: + self.custom_prefix_input.setVisible(False) + self.customprefix = selected.replace(" (default)", "") def set_portal_type_detected(self, index): @@ -5832,6 +5843,17 @@ class MacAttack(QMainWindow): os._exit(0) event.accept() + def validate_custom_prefix(self, prefix): + pattern = r"^[0-9A-Fa-f]{2}(:[0-9A-Fa-f]{2}){2}:$" + if re.match(pattern, prefix.strip()): + self.custom_prefix_input.setStyleSheet("") + return prefix.strip().upper() + else: + self.custom_prefix_input.setStyleSheet( + "border: 2px solid red; background-color: #451e1c;" + ) + return "00:1A:79:" + if __name__ == "__main__": app = QApplication(sys.argv) From 22b4290e52d15ddc6a963b638d9861d520021caf Mon Sep 17 00:00:00 2001 From: J0hnMatrix <17948440+J0hnMatrix@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:45:26 +0200 Subject: [PATCH 2/4] Add files via upload Add requirements.txt for compiling. --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3fe32f7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +PyQt5 +python-vlc +semver +requests \ No newline at end of file From 7cc26d6c7cca5667f4fe683f7f3a31de55999846 Mon Sep 17 00:00:00 2001 From: J0hnMatrix <17948440+J0hnMatrix@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:51:40 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index bf02d16..868c204 100644 --- a/README.md +++ b/README.md @@ -80,4 +80,16 @@ Videoplayer Settings --- +## Compiling +Install pyinstaller +pip install pyinstaller + +Install requirements +pip install -r requirements.txt + +*On Windows: +python.exe .\BuildMacAttack.py + +--- + **Disclaimer:** MacAttack is strictly a testing tool. Unauthorized use on others' portals may violate laws or terms of service. Always ensure you have permission to test a portal. From c0f63b456de54c0d5d8059061cf1513ef3ddb26c Mon Sep 17 00:00:00 2001 From: J0hnMatrix <17948440+J0hnMatrix@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:52:13 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 868c204..b0f6cb1 100644 --- a/README.md +++ b/README.md @@ -81,15 +81,15 @@ Videoplayer Settings --- ## Compiling -Install pyinstaller -pip install pyinstaller - -Install requirements -pip install -r requirements.txt - -*On Windows: -python.exe .\BuildMacAttack.py - +Install pyinstaller +pip install pyinstaller + +Install requirements +pip install -r requirements.txt + +*On Windows: +python.exe .\BuildMacAttack.py + --- **Disclaimer:** MacAttack is strictly a testing tool. Unauthorized use on others' portals may violate laws or terms of service. Always ensure you have permission to test a portal.