RF-Swift/Dockerfile

178 lines
6.8 KiB
Docker
Raw Normal View History

2024-05-18 06:43:39 -07:00
# This DockerFile is part of the RFSwift project
2024-06-03 17:56:41 -07:00
# Install type: Full all
2024-05-18 06:43:39 -07:00
# Author(s): Sébastien Dudek (@FlUxIuS) @Penthertz
# website: penthertz.com
FROM ubuntu:22.04
RUN echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/00-docker
RUN echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/00-docker
# Installing basic packages
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install -y python3 wget curl sudo software-properties-common \
gpg-agent pulseaudio udev python3-packaging vim autoconf build-essential \
build-essential cmake python3-pip libsndfile-dev scapy screen tcpdump \
qt5-qmake qtbase5-dev xterm libusb-1.0-0-dev pkg-config git apt-utils \
libusb-1.0-0 libncurses5-dev libtecla1 libtecla-dev dialog procps unzip \
texlive liblog4cpp5-dev libcurl4-gnutls-dev libpcap-dev libgtk-3-dev \
qtcreator qtcreator-data qtcreator-doc qtbase5-examples qtbase5-doc-html \
2024-05-26 11:56:26 -07:00
qtbase5-dev qtbase5-private-dev libqt5opengl5-dev libqt5svg5-dev \
2024-06-03 13:52:37 -07:00
libcanberra-gtk-module libcanberra-gtk3-module unity-tweak-tool
2024-05-18 06:43:39 -07:00
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \
apt-get install tzdata
# Installing apt-fast wrapper
RUN DEBIAN_FRONTEND=noninteractive \
apt-add-repository ppa:apt-fast/stable -y
RUN apt-get update
RUN echo apt-fast apt-fast/maxdownloads string 10 | debconf-set-selections
RUN echo apt-fast apt-fast/dlflag boolean true | debconf-set-selections
RUN echo apt-fast apt-fast/aptmanager string apt-get | debconf-set-selections
RUN apt-get -y install apt-fast python3-matplotlib
COPY scripts /root/scripts/
COPY rules /root/rules/
COPY config /root/config/
2024-05-18 06:43:39 -07:00
WORKDIR /root/scripts/
RUN chmod +x entrypoint.sh
# Audio part
RUN apt-fast install -y pulseaudio-utils pulseaudio libasound2-dev libavahi-client-dev --no-install-recommends
2024-05-18 06:43:39 -07:00
## Installing peripherals
RUN ./entrypoint.sh ad_devices_install
RUN ./entrypoint.sh uhd_devices_install
2024-05-20 08:03:12 -07:00
#RUN ./entrypoint.sh antsdr_uhd_devices_install # Disable orignal UHD
2024-05-18 06:43:39 -07:00
RUN ./entrypoint.sh nuand_devices_install
RUN ./entrypoint.sh hackrf_devices_install
RUN ./entrypoint.sh airspy_devices_install
RUN ./entrypoint.sh limesdr_devices_install
RUN ./entrypoint.sh rtlsdr_devices_install
#RUN ./entrypoint.sh rtlsdrv4_devices_install # optionnal, remove rtlsdr_devices_install if you are using the v4 version
# Installing GNU Radio + extra OOT modules
RUN ./entrypoint.sh gnuradio_soft_install
RUN ./entrypoint.sh common_sources_and_sinks
RUN ./entrypoint.sh grgsm_grmod_install
RUN ./entrypoint.sh install_soapy_modules
2024-05-26 11:56:26 -07:00
RUN ./entrypoint.sh install_soapyPlutoSDR_modules
2024-05-18 06:43:39 -07:00
RUN ./entrypoint.sh grlora_grmod_install
RUN ./entrypoint.sh grlorasdr_grmod_install
RUN ./entrypoint.sh griridium_grmod_install
RUN ./entrypoint.sh grinspector_grmod_install
RUN ./entrypoint.sh gruaslink_grmod_install #TODO: fix Python3 compat at least
RUN ./entrypoint.sh grX10_grmod_install
RUN ./entrypoint.sh grgfdm_grmod_install
RUN ./entrypoint.sh graaronia_rtsa_grmod_install
#RUN ./entrypoint.sh grccsds_move_rtsa_grmod_install #TODO: fix problem with strtod_l dependency
RUN ./entrypoint.sh grais_grmod_install
RUN ./entrypoint.sh grreveng_grmod_install
RUN ./entrypoint.sh grdvbs2_grmod_install
RUN ./entrypoint.sh grtempest_grmod_install
RUN ./entrypoint.sh grdab_grmod_install
RUN ./entrypoint.sh grdect2_grmod_install
RUN ./entrypoint.sh grfoo_grmod_install
RUN ./entrypoint.sh grieee802-11_grmod_install # depends on grfoo_grmod_install
RUN ./entrypoint.sh grieee802154_grmod_install # depends on grfoo_grmod_install
RUN ./entrypoint.sh grrds_grmod_install
RUN ./entrypoint.sh grdroineid_grmod_install
RUN ./entrypoint.sh grsatellites_grmod_install
2024-06-03 13:52:37 -07:00
RUN ./entrypoint.sh gradsb_grmod_install
RUN ./entrypoint.sh grkeyfob_grmod_install
RUN ./entrypoint.sh grradar_grmod_install
RUN ./entrypoint.sh grnordic_grmod_install
RUN ./entrypoint.sh grpaint_grmod_install
2024-05-18 06:43:39 -07:00
## TODO: More more!
# Installing OOT modules from sandia
RUN ./entrypoint.sh grpdu_utils_grmod_install
RUN ./entrypoint.sh grsandia_utils_grmod_install # depends on grpdu_utils_grmod_install
RUN ./entrypoint.sh grtiming_utils_grmod_install
RUN ./entrypoint.sh grfhss_utils_grmod_install # depends on 'grpdu_utils_grmod_install' and 'grtiming_utils_grmod_install' and 'grsandia_utils_grmod_install'
# Installing OpenCL
## NVidia drivers
#RUN apt-fast install -y nvidia-opencl-dev nvidia-modprobe
## Installing Intel's OpenCL
#RUN apt-fast install -y intel-opencl-icd ocl-icd-dev ocl-icd-opencl-dev
# Installing gr-fosphor with OpenCL
#RUN ./entrypoint.sh grfosphor_grmod_install
2024-05-18 13:51:26 -07:00
# Installing cyberther with OpenCL
RUN ./entrypoint.sh cyberther_soft_install
2024-05-18 06:43:39 -07:00
# Installing softwares
2024-05-20 12:57:38 -07:00
RUN ./entrypoint.sh sdrangel_soft_install
RUN ./entrypoint.sh sdrpp_soft_fromsource_install # replace to 'sdrpp_soft_install' if you see bugs
2024-05-18 06:43:39 -07:00
RUN ./entrypoint.sh sigdigger_soft_install
RUN ./entrypoint.sh inspection_decoding_tools
RUN ./entrypoint.sh qsstv_soft_install
RUN ./entrypoint.sh ice9_bluetooth_soft_install
2024-06-03 13:52:37 -07:00
RUN ./entrypoint.sh gps_sdr_sim_soft_install
2024-06-03 19:06:24 -07:00
RUN ./entrypoint.sh retrogram_soapysdr_soft_install # enable by uncommenting
RUN ./entrypoint.sh meshtastic_sdr_soft_install
2024-05-18 06:43:39 -07:00
# Installing SA device modules
RUN ./entrypoint.sh kc908_sa_device # Note: Only works on x86_64
RUN ./entrypoint.sh signalhound_sa_device # Note: Only works on x86_64
RUN ./entrypoint.sh harogic_sa_device # working only on x86_64 and aarch64
2024-05-18 06:43:39 -07:00
# Calibration equipements
RUN ./entrypoint.sh leobodnarv1_cal_device
2024-05-18 06:43:39 -07:00
# Tools for RFID
RUN ./entrypoint.sh proxmark3_soft_install
RUN ./entrypoint.sh libnfc_soft_install
RUN ./entrypoint.sh mfoc_soft_install
RUN ./entrypoint.sh mfcuk_soft_install
2024-06-03 13:52:37 -07:00
RUN ./entrypoint.sh mfread_soft_install
2024-05-18 06:43:39 -07:00
2024-05-20 02:25:20 -07:00
# Tools for Wi-Fi
RUN ./entrypoint.sh common_nettools
RUN ./entrypoint.sh aircrack_soft_install
RUN ./entrypoint.sh reaver_soft_install
RUN ./entrypoint.sh bully_soft_install
RUN ./entrypoint.sh pixiewps_soft_install
RUN ./entrypoint.sh Pyrit_soft_install
RUN ./entrypoint.sh eaphammer_soft_install
RUN ./entrypoint.sh airgeddon_soft_install
RUN ./entrypoint.sh wifite2_soft_install
# Installing bettecap tool
RUN ./entrypoint.sh bettercap_soft_install
2024-06-03 13:52:37 -07:00
# Tools for Bluetooth #TODO: more more!
RUN ./entrypoint.sh blueztools_soft_install
# Tools for Bluetooth LE
RUN ./entrypoint.sh mirage_soft_install # TODO: In progress
2024-05-18 06:43:39 -07:00
# Installing extra software
RUN ./entrypoint.sh jupiter_soft_install
2024-06-03 13:52:37 -07:00
RUN ./entrypoint.sh ml_and_dl_soft_install
# Installing reversing software
RUN ./entrypoint.sh kataistruct_soft_install
RUN ./entrypoint.sh unicorn_soft_install
RUN ./entrypoint.sh keystone_soft_install
RUN ./entrypoint.sh radare2_soft_install
RUN ./entrypoint.sh ghidra_soft_install
RUN ./entrypoint.sh binwalk_soft_install
#RUN ./entrypoint.sh cutter_soft_install #TODO: fix install
2024-05-18 06:43:39 -07:00
2024-05-20 13:36:10 -07:00
RUN mkdir -p /sdrtools/
2024-05-18 06:43:39 -07:00
COPY run /sdrtools/run
# Cleaning and quitting
WORKDIR /root/
#RUN rm -rf /root/scripts/
RUN rm -rf /root/rules/
RUN rm -rf /root/thirdparty
RUN apt-fast clean
2024-05-18 13:51:26 -07:00
RUN DEBIAN_FRONTEND=noninteractive rm -rf /var/lib/apt/lists/*