diff --git a/README.md b/README.md index e10d7b1..b9c343c 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,10 @@ > The author of this project is not responsible for any possible harm caused by the materials of this project. ## Updates - +**12/21/2023**
+
+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!
@@ -18,6 +21,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.
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