From 2d2dbec8684095f978024ff05231ec86cc21f22b Mon Sep 17 00:00:00 2001 From: Your Average Hobbyist <52362538+Yeet1000@users.noreply.github.com> Date: Thu, 21 Dec 2023 23:19:11 -0800 Subject: [PATCH 1/3] Interactive app.py --- app.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index c745ff9..b42bf48 100644 --- a/app.py +++ b/app.py @@ -8,6 +8,8 @@ from time import sleep from utils.bluetooth_utils import toggle_device, start_le_advertising, stop_le_advertising + + # Add a docstring to describe the purpose of the script help_desc = ''' @@ -93,23 +95,25 @@ def main(): parser.add_argument('-i', '--interval', default=200, type=int, help='Advertising interval (default 200))') parser.add_argument('-d', '--data', type=int, help='Select a message to send (e.g., -d 1)') + interactive = False # Add random argument parser.add_argument('-r', '--random', action='store_true', help='Randomly loop through advertising data') args = parser.parse_args() if args.data is None and not args.random: - print("Please select a message option using -d or use --random for random selection.") - print("Available message options:") + print("Please select a message option below:") for option, description in bt_data_options.items(): print(f"{option}: {description}") - return + args.data = int(input()) + interactive = True if args.data and args.data not in bt_data_options: print(f"Invalid data option: {args.data}") - print("Available data options:") - for option, description in bt_data_options.items(): - print(f"{option}: {description}") + if interactive == False: + print("Available data options:") + for option, description in bt_data_options.items(): + print(f"{option}: {description}") return # the default Bluetooth device is hci0 From c1367966f1bc1201af9bcae592faf0a028f52148 Mon Sep 17 00:00:00 2001 From: Your Average Hobbyist <52362538+Yeet1000@users.noreply.github.com> Date: Thu, 21 Dec 2023 23:22:25 -0800 Subject: [PATCH 2/3] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e10d7b1..701ad5e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ > The author of this project is not responsible for any possible harm caused by the materials of this project. ## Updates - +**12/21/2023**
+
+Thanks to [Yeet1000 **9/21/23**

Thanks to [0DayCTF](https://github.com/0dayctf) the random option has been added!
@@ -18,6 +20,7 @@ Thanks to [0DayCTF](https://github.com/0dayctf) the random option has been added ```python3 app.py -r -i 20```
to set to it to random and the time interval to 20ms, making it more spammy.

+ **9/13/2023**

After [Techryptic's attempt to steal the work of myself and WillyJL](https://techcrunch.com/2023/09/05/flipper-zero-hacking-iphone-flood-popups/), Willy has taken the time to give an insanely in-depth timeline of the events and proof of the work being stolen (Git and my typos dont lie!) Check out the full report below and please help us spread the word that the person who has been all over the news outlets claiming this as their work, stole the code and gave none of the actual developers credit.
From 68e47519a7a09836ab0af0cdef781b66857e2c79 Mon Sep 17 00:00:00 2001 From: Your Average Hobbyist <52362538+Yeet1000@users.noreply.github.com> Date: Thu, 21 Dec 2023 23:24:38 -0800 Subject: [PATCH 3/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 701ad5e..b9c343c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ ## Updates **12/21/2023**

-Thanks to [Yeet1000 +It is no longer nescessary to re-run app.py with -d after viewing the options. +You can now just type the number of the option you want to use. **9/21/23**

Thanks to [0DayCTF](https://github.com/0dayctf) the random option has been added!