GithubHelp home page GithubHelp logo

patrickcarmichael / fzeasymarauderflash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skeletonman03/fzeasymarauderflash

0.0 0.0 0.0 4.15 MB

Easily Flash Marauder onto the Flipper Zero Devboard or an ESP32!

License: GNU General Public License v3.0

Python 100.00%

fzeasymarauderflash's Introduction

Easy Flipper Zero ESP32 Flash

This is for easily flashing Marauder on an ESP32 or WiFi Devboard for a Flipper Zero! Screenshot of EasyInstall

Windows Users:

You have two prerequisites.
You must install Git for Windows from here.
If you are flashing an ESP32 board, you need to install the driver from here in order for your device to be recognized

All other users:

You have one prerequisite.
You need to install git however you would on your system if you haven't already.

It is now simple to install or update Marauder or Evil Portal on Linux, Mac OS X, or Windows.

How to use:

  • Ideally use a venv as it's best practice with any Python scripts, although it isn't required (Google it if you don't know what that is)
  • Step 0 only has to be ran once. (That doesn't mean it's okay to skip it unless you're running it again after having just used it)
  • Steps 1-4 are not necessary on AWOK boards
  1. run pip3 install -r requirements.txt.
  2. Press and hold the BOOT button on the module
  3. While still holding BOOT, connect the devboard or ESP32 board via USB.
  4. Press and release the RESET button.
  5. Release the BOOT button.
  6. run python3 EasyInstall.py.
  7. Select the option of what you want to do
  • Important note: You may need to run this script with sudo or as Administrator in Windows, but normally you shouldn't have to

This project was based on the Windows Marauder flasher batch script

You can find it here in UberGuidoZ's repo

About this script

  • There have been MASSIVE changes to how the settings are done for flashing because it started becoming cluttered and this script became too long, but this won't affect usage.
  • This script pulls all of its resources from the proper Github repositories in order to make sure you are up-to-date.
  • The only dependencies it does not get by itself are the required Python modules and Windows tools.
  • This script should work on most devices that can run Python 3 and can access serial ports via USB.
  • Support for Evil Portal has been added!

Compatible boards

  • Flipper Zero WiFi Devboard
  • ESP32-S2 (The ESP32 chip that is on the WiFi Devboard)
  • ESP32-S2-WROVER
  • ESP32-WROOM
  • ESP32 Marauder Mini
  • ESP32-S3
  • All AWOK ESP32 Boards

How to connect an ESP32-WROOM, WROVER, etc to the Flipper Zero

ESP32 -> Flipper Zero
TX0 -> RX
RX0 -> TX
GND -> GND
3v3 -> 3v3

Optional parameters

There are now optional parameters

  • -h or --help - Show help
  • -s or --serialport
    For example, if you have a device you know is on /dev/ttyUSB0, you could specify it with python3 EasyInstall.py -s /dev/ttyUSB0 or python3 EasyInstall.py --serialport /dev/ttyUSB0
  • Using this option will skip automatic detection of the serial port and will not try to identify the device
  • -ps or --preselect - Preselect an option of what you want to flash
    For example, if you want to flash a WiFi Devboard or ESP32-S2 without selecting from the menu, you could use python3 EasyInstall.py -ps 1 or python3 EasyInstall.py --preselect 1

Disclaimer:

I am absolutely not resposible if you somehow manage to brick your device with this tool (especially if you did it using optional parameters) and I cannot help you fix it.

Issues with flashing?

Here are some steps to try:

  • Since I keep having to tell Windows users on Discord to install Python to use this... YOU HAVE TO INSTALL PYTHON IN ORDER TO USE PYTHON SCRIPTS!! IT'S IN THE WINDOWS STORE!!!
  • Ensure you have followed the steps above and installed any necessary prerequisites
  • Check that your computer can see the device. In Linux, run lsusb, on Mac run system_profiler SPUSBDataType, on Windows, open your Device Manager and look for it
  • Try a different cable
  • Try a different USB port
  • Check your permissions. On Linux, you may have to add yourself to whatever group owns the port. Or you can change ownership of the serial port (however this is not recommended), for example, /dev/ttyUSB0 is typically owned by root and the dialout or uucp group (depending on your distro), so you could run something like chown user:group /dev/ttyUSB0
  • Windows users: Can't find or communicate with your ESP32? Again, make sure the driver is installed, see above recommendations.
  • If you're using Windows, don't use Git Bash, it doesn't work well with this script. Instead, use Powershell, Windows Terminal, or CMD
  • On Windows and Python is acting strange? Uninstall it then re-install it via the Microsoft Store.
  • Make sure you're running the latest Python release! If you're on 3.8 when current is 3.11.3 for example, don't bother opening an issue until after you upgrade and try again. Don't try to use old stuff.
  • Still can't get it and don't understand CLI at all and can't even figure out how to cd? What are you even doing? This definitely isn't for you. Try using the ESP Flasher app on your Flipper Zero.

Why do I kind of pick on Windows users?

Simply, because Windows users seem to come across the most issues (and to be fair, this was a pain to make work properly in Windows), a lot of which are users not understanding how to use the CLI or not reading this whole page, especially the top section.

TODO:

  • Even more code cleanup.
  • Add other popular ESP32 firmware that is used with Flipper Zeros
  • Maybe an official name change

Contributors:

  • I GREATLY appreciate contributions and PRs, thank you!
  • If you are going to add more boards, please try to avoid adding a new flashing function and try to use flashtheboard() like most of the options if possible

Acknowledgements:

Disclaimer: Also includes Acknowledgements from the above linked repo from UberGuidoz as this wouldn't exist without the original project

  • justcallmekoko for the AWESOME work in developing Marauder and porting it to the Flipper.
  • 0xchocolate for the Marauder companion plugin (now in Unleashed, RogueMaster, and Xtreme.)
  • Frog For initial scripting under the Wifi Pentest Tool and inspiring the idea.
  • ImprovingRigmarole Initial (and continued) scripting of the batch Windows Marauder flasher and lots of testing.
  • UberGuidoZ Tweaking/Automating Frog's original, continued scripting, development, and testing.
  • L0rd_K0nda from the Unleashed Flipper Zero Discord for testing this script for me
  • SkeletonMan Creating this Python flasher in order to try to make a multi-os flasher since the Batch script obviously could not run on Linux or Mac OS X
  • CorbanR Forking and fixing instructions and adding a requirement needed for Mac OS X
  • dchalm Forking and fixing mistakes I should have noticed. Thank you!
  • Scorp Compiling needed bins to be able to flash to ESP32-WROOM
  • jacklythgoee For getting a knockoff ESP32-WROOM and giving me info to be able to try to detect it so it could be flashed.
  • Der Skythe For fixing extra quotes I added without noticing and his awesome work on Flipper Zero Firmware
  • seeker7r4c3r For adding the VID of the DrB0rk S3 Multiboard
  • aafksab For fixing the Windows bug with the update option that was confusing me
  • AWOK For adding his boards, testing, pointing out bugs, and kind of forcing me to do much needed cleanup by doing so
  • bigbrodude6119 For creating Evil Portal
  • TalkingSasquach For creating single file bins for Evil Portal

fzeasymarauderflash's People

Contributors

aafksab avatar awok559 avatar ch3sh1r avatar corbanr avatar dchalm avatar derskythe avatar havivw avatar kmal808 avatar olegas avatar seeker7r4c3r avatar skeletonman03 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.