From c6c2ee9ab6d3aa4e20ab9c7681de24788dff7dbc Mon Sep 17 00:00:00 2001 From: smiller2 Date: Wed, 10 May 2023 20:49:17 -0400 Subject: [PATCH 1/3] adding requirements.txt for local builds --- .gitignore | 3 ++- requirements.txt | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 7e99e36..ebd869c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*.pyc \ No newline at end of file +*.pyc +venv \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..caf0b75 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,20 @@ +contourpy==1.0.7 +cycler==0.11.0 +fonttools==4.39.4 +importlib-resources==5.12.0 +keyboard==0.13.5 +kiwisolver==1.4.4 +matplotlib==3.7.1 +numpy==1.24.3 +packaging==23.1 +Pillow==9.5.0 +psutil==5.9.5 +pycryptodomex==3.17 +pyparsing==3.0.9 +pyserial==3.5 +python-dateutil==2.8.2 +pyusb==1.2.1 +scapy==2.5.0 +six==1.16.0 +terminaltables==3.1.10 +zipp==3.15.0 From 3a006bf23ae2f766df6cf091dba5fadfa1761642 Mon Sep 17 00:00:00 2001 From: smiller2 Date: Wed, 10 May 2023 21:04:42 -0400 Subject: [PATCH 2/3] adding Dockerfile to manage OS dependencies. Added folders to .gitignore after running 'sudo python3 setup.py install'. Modifiying requirements.txt to be compatible with Mirage documentation --- .gitignore | 5 ++++- Dockerfile | 17 +++++++++++++++++ requirements.txt | 16 ++++++++-------- 3 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index ebd869c..9b20759 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *.pyc -venv \ No newline at end of file +venv +build +dist +mirage.egg-info \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4c9e64d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Download base image ubuntu 22.04 +FROM ubuntu:22.04 + +# LABEL about the custom image +LABEL maintainer="samuelmiller0714@gmail.com" +LABEL version="0.1" +LABEL description="This is a custom Docker Image for mirage, or you could just boot DragonOS ;)" + +# Disable Prompt During Packages Installation +ARG DEBIAN_FRONTEND=noninteractive + +# Update Ubuntu Software repository +RUN apt update +RUN apt upgrade -y + +# Install HackRF library to enable HackRF experimental support +RUN apt install -y libhackrf-dev \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index caf0b75..c28209e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,19 +2,19 @@ contourpy==1.0.7 cycler==0.11.0 fonttools==4.39.4 importlib-resources==5.12.0 -keyboard==0.13.5 +keyboard>=0.13.5 kiwisolver==1.4.4 -matplotlib==3.7.1 +matplotlib>=3.7.1 numpy==1.24.3 packaging==23.1 Pillow==9.5.0 -psutil==5.9.5 -pycryptodomex==3.17 +psutil>=5.9.5 +pycryptodomex>=3.17 pyparsing==3.0.9 -pyserial==3.5 +pyserial>=3.5 python-dateutil==2.8.2 -pyusb==1.2.1 -scapy==2.5.0 +pyusb>=1.2.1 +scapy>=2.5.0 six==1.16.0 -terminaltables==3.1.10 +terminaltables>=3.1.10 zipp==3.15.0 From a48c5f576fd72baf4e6f30829ea0e8ad2dbe0b22 Mon Sep 17 00:00:00 2001 From: smiller2 Date: Wed, 10 May 2023 22:13:11 -0400 Subject: [PATCH 3/3] added flipperzero.py to ble_utils, haven't built out the class yet because I need to understand how the mirage interacts with BLE via hackrf or other tools first --- mirage/libs/ble_utils/flipperzero.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 mirage/libs/ble_utils/flipperzero.py diff --git a/mirage/libs/ble_utils/flipperzero.py b/mirage/libs/ble_utils/flipperzero.py new file mode 100644 index 0000000..94d7b2e --- /dev/null +++ b/mirage/libs/ble_utils/flipperzero.py @@ -0,0 +1,12 @@ +from mirage.libs import wireless + +class BLEFlipperZeroDevice(wireless.Device): + ''' + This device enables communication with a Flipper Zero in order to interact with the Bluetooth Low Energy (BLE) + protocol. + + The corresponding interfaces are: TODO + + The following capabilities are actually supported: + TODO + ''' \ No newline at end of file