Flipper-Zero: Use ChatGPT to create Flipper Zero programs!

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • Train ChatGPT to create Flipper Zero applications without needing to have ANY prior programming experience! In this video we generate code to unlock a phone via BadUSB using popular pin codes. We brute force a sub-ghz protocol (searching for the proper code to open the gate). We ask for user input and display messages based on the input.
    ONLY DO THIS ON EQUIPMENT YOU OWN!!!
    If you improve the train*.js files or the intro.txt files used in this video, please let me know!!!
    You can use the same techniques from this video to blink a GPIO pin connected to an LED at a specific rate, read the BadUSB entries from a file, create menus of options (like slow/medium/fast), access the video game module gyroscope (for example, sending one subghz file when rotated 45 degrees clockwise and sending a different signal when rotated counter-clockwise), read analog temperature sensors [this one took quite a few iterations to actually get the AI to generate working code]. And much more!
    If there are features you really want but that aren't exposed in JavaScript, please let me know in my Discord server.
    JavaScript WIKI:
    training files - github.com/jamisonderek/flipp...
    wiki - github.com/jamisonderek/flipp...
    Discord Server:
    / discord
    Support this channel:
    Option 1. Like, Subscribe and click the Bell (to get notified)
    Option 2. ko-fi.com/codeallnight (donate $3 via PayPal or Venmo)
    Option 3. Click the "Thanks" button on CZcams.
    Option 4. Purchase a FlipBoard (I get a portion of the sale). github.com/MakeItHackin/FlipB...
    Timeline:
    0:00 - Introduction
    1:06 - Only mess with stuff you own!
    1:33 - JavaScript capabilities (and unsupported)
    1:55 - ChatGPT without training (very wrong output)
    3:50 - HOW-TO: Tell AI your JavaScript errors
    4:32 - Training AI with intro.txt and train*.js
    5:30 - Good app: "Hello World" program.
    5:50 - Example: User input
    6:18 - BadUSB example (figure out phone pin)
    7:51 - No programming experience needed!
    9:07 - Good app: BadUSB pins
    9:30 - Brute force BETT Sub-GHz file.
    11:54 - Word-wrap: copy entire line!
    12:12 - Good app: Sub-GHz brute force
    12:27 - Optimizing DIP SWITCH attacks
    13:22 - Thanks!
    13:30 - ChatGPT wrote intro dialog & all code used in video!
  • Věda a technologie

Komentáře • 44

  • @MrDerekJamison
    @MrDerekJamison  Před měsícem

    Thanks for watching - See the video description for links to the training files & Discord invite! Also, let me know in the comments which missing features you want added to JavaScript.

  • @user-ks6qr9qw7h
    @user-ks6qr9qw7h Před měsícem +2

    Top notch quality video as always!

    • @MrDerekJamison
      @MrDerekJamison  Před měsícem +2

      Much appreciated! My wife was like "why is your intro so different" and encouraged me to add the ending to the video where I explain that AI made me do it. 🤣

  • @MRKuzya-ul3fb
    @MRKuzya-ul3fb Před měsícem

    Еееее, Дождались 🍓
    Thank you for the video

  • @MrDerekJamison
    @MrDerekJamison  Před 14 dny +1

    Warning about PIN unlock... many devices will only allow a limited number of attempts (like I think iPhone is typically 6 attempts). After that they may display a warning dialog (which likely will get dismissed once your script presses Enter again). In some cases, it could even erase all of the files on the device!

  • @TalkingSasquach
    @TalkingSasquach Před měsícem +3

    You had me at the twist transition

    • @MrDerekJamison
      @MrDerekJamison  Před měsícem +1

      Thanks for watching! It was strange doing the intro entirely from a script (especially one I didn’t write). At the end of the video I showed the AI script that was generated for me. 😀

  • @MyTube4Utoo
    @MyTube4Utoo Před 14 dny +1

    This is amazing! I just found your channel from a 'Talking Sasquach' video. I'll be binge watching your videos now. 😆

    • @MrDerekJamison
      @MrDerekJamison  Před 11 dny +1

      Thanks for subscribing! Be sure to check out my Discord server as well: discord.gg/k7WX7Be3Vy
      Talking Sasquach is amazing, I love all of his stuff. He is planning on going to DEF CON next month in Las Vegas, so hopefully I'll get to meet him in person! He is selling shirts to fundraise for his trip - rabbit-labs.com/product/limited-edition-talking-sasquach-def-con-32-t-shirts/ (but you have to fill out notes with Size [SM,Med,Lg,XL,2XL,3XL,4XL] & Color [black or lab grey]).

    • @MyTube4Utoo
      @MyTube4Utoo Před 9 dny

      @@MrDerekJamison Thanks for the info. I'll check it out.......after I watch this video again. 😆 This is really freaking me out. I'm 64-years-old, and my first computer was a Sinclair ZX-81, with *1k of RAM.* Of course, I bought the 16k expansion, so I was on the cutting edge. 😆 We've made a bit of progress.

  • @Thadopeera
    @Thadopeera Před 28 dny

    Mr. Jamison always delivers 🔥💪🏾

  • @Savage.735
    @Savage.735 Před měsícem +2

    Man that was awesome Tutorial 💯 👌 👍

    • @MrDerekJamison
      @MrDerekJamison  Před měsícem

      Glad you liked it! Hopefully you can have some back-and-forth sessions with chatgpt and make a cool script for Flipper! If you do, please post about it in discord (or as a new CZcams comment, so I see it)!

  • @nester6460
    @nester6460 Před 29 dny

    Great video as always

  • @MrDerekJamison
    @MrDerekJamison  Před měsícem

    One person has requested the ability to read and send IR codes. Sending seems doable, but without callbacks I'm not sure how well receive would work?

  • @my-rules
    @my-rules Před měsícem

    Thank you

  • @johnnynirvana8514
    @johnnynirvana8514 Před měsícem

    My man! Yes!

    • @MrDerekJamison
      @MrDerekJamison  Před měsícem

      Let me know if you create something. Also, if you run into issues, hopefully people in my Discord server can assist [as long as you tried following the steps in the video first].
      discord.gg/k7WX7Be3Vy

  • @Savage.735
    @Savage.735 Před měsícem +1

    Yes sir I'm here 👀 💯 👍

  • @MrDerekJamison
    @MrDerekJamison  Před měsícem +1

    One person would like to be able to send data to an 8x8 matrix display in JavaScript. SPI device (MOSI, CLK, CS, 3V3, GND), it doesn't use MISO pin (the device doesn't give back any data). Maybe we can figure out how to bit-bang with JavaScript commands as the delay (need microseconds not milliseconds)? Or perhaps we can use `ffi` commands for this special case, similar to czcams.com/video/EtOZN3Rh47c/video.html but for SPI?
    I'm moving right now, but hopefully we will time to research later in July.

    • @Segphalt
      @Segphalt Před 21 dnem

      The vast majority of spi devices do not care about timing unless it's too fast. So as long as you are clocking with your data it will probably work. I've transmitted data via spi to an LCD by actual hand using switches.

  • @beaubraun3414
    @beaubraun3414 Před dnem

    code all night your the cats pajamas man🤘🏻🤘🏻

  • @MrDerekJamison
    @MrDerekJamison  Před měsícem

    Which AI do you recommend for writing code?

    • @evertoaster
      @evertoaster Před měsícem +1

      Claude 3.5 sonus is so hot right now. 😊

  • @kurupt213
    @kurupt213 Před 27 dny

    Can I use it to turn on/off wifi lights with the wifi dev adapter

    • @MrDerekJamison
      @MrDerekJamison  Před 26 dny

      I doubt it, unless you gashed the WiFi with custom firmware that listened to lighting commands from the serial port. Similar to Marauder, but specifically targeted at your WiFi devices.

    • @MrDerekJamison
      @MrDerekJamison  Před 26 dny

      It can do subghz to these… BN-LINK Wireless Remote Control... www.amazon.com/dp/B07FK5SP9H

  • @victoriaolejnik5363
    @victoriaolejnik5363 Před 15 dny

    Hello, I can't find a link to download the data anywhere

    • @MrDerekJamison
      @MrDerekJamison  Před 11 dny

      github.com/jamisonderek/flipper-zero-tutorials/tree/main/js/ai are my training files and prompt I used.
      If you need additional assistance, please join my Discord server and someone can assist you. discord.gg/k7WX7Be3Vy

  • @YungFredo_801
    @YungFredo_801 Před 7 dny

    Hey, I need to go to a concert and play my own music. How can I do that

    • @MrDerekJamison
      @MrDerekJamison  Před 6 dny

      JavaScript is terrible for music, because the timing just isn't there. There are some programs written in C that allow the Flipper to play music (like 8-bit wav file as input, or fmf). See the following apps...
      - lab.flipper.net/apps/music_player
      - lab.flipper.net/apps/wav_player

  • @gregorybassett1651
    @gregorybassett1651 Před měsícem

    i love this device ans dont own oone yet every one is so grimmy about the price

    • @MrDerekJamison
      @MrDerekJamison  Před měsícem

      flipperzero.one/how-to-buy is the best place to buy. Lots of scammers will DM you but not actual give you a Flipper. That said, I do believe some people bought them thinking it would unlock everything and the devices they own aren't compatible (some KeeLoq, 5GHz, etc.) so they want to sell it because it's basically just a bad TV remote for them.
      Depending on why you want a Flipper, there are some inexpensive alternatives. Like M5Stack, etc.

  • @nickwaah2702
    @nickwaah2702 Před měsícem

    Seems you’re using premium chatgpt account and still getting errors like me. It’s definitely not for beginners!

    • @MrDerekJamison
      @MrDerekJamison  Před měsícem +2

      It never gets it right the first try for me, which is what I hoped people would learn from my video. You actually have to try the script!
      I was using regular chatgpt but I only get like 10 back-and-fourth sessions before I have to wait 4 hours -- I subscribed for a month because I wanted to make the video that week. :) I'm super new to AI and was curious to see if it was even possible to get decent code for a non-programmer. Following my steps, the answer is yes, but you need those prompt files or else it is very difficult to get what you want. It was painful for me to tell it the "delay(100);" error, when I knew that wasn't the issue -- but it still ended up solving it! I also would usually give it more hints like I'd say "PA7" instead of "A7" or "pin 2" when doing GPIO. (But it will get there eventually even if you just say pin 2.)
      Even when the code is total fiction, it's interesting to ask yourself why the API doesn't work the way it predicted it would. Sometimes it can help improve your API (for the few of us that are exposing Flipper features to JavaScript).