Posts

Showing posts with the label Ubuntu

Inspecting ActiveGPS flash memory

Image
ActiveGPS flashloader shows Flash content + EEPROM content. I removed EEPROM content from the end of the dump (*** EEPROM .....)  and copy-pasted content into txt file  Python code to convert hex to bin file import binascii with open("agps-flash-eeprom.txt") as fd_in, open("agps-fw.bin", "wb") as fd_out:     for line in fd_in:         line = line.strip()         line = line.replace('\n', '')         line = line.replace('\r', '')         line = line[7:]         line = line.replace(' ', '')         chunk = binascii.unhexlify(line)         fd_out.write(chunk) print("Ok") Inspecting the bin file with Ghidra (PIC18)  

Sahara - Huawei E1552 mobile broadband modem

Image
 12.7.2024 Sahara - Huawei E1552 mobile broadband modem Ubuntu 18.04 LTS Huawei E1552. Diag port enabled AT$QCDMG https://github.com/openpst/sahara sudo apt-get install build-essential qt5-default qt5-qmake libboost-dev & https://github.com/openpst/sahara/releases  

SCAT: cheap 4G LTE Wifi modem

Image
 24.6.2024 SCAT: cheap 4G LTE Wifi modem https://github.com/fgsect/scat http://192.168.100.1 - login admin/admin http://192.168.100.1/usbdebug.html -- shows blank screen and activates ADB server/roots the device   scat -t qc -u -a 001:003 -i 3

QCSuper - Huawei E1552 mobile broadband USB stick

Image
 17.5.2024 QCSuper - Huawei E1552 mobile broadband USB stick VirtualBox Ubuntu 22.04 LTS Huawei E1552 mobile broadband HSDPA USB stick works with QCSuper AT$QCDMG - enable Diag Port sudo ./qcsuper.py --usb-modem 12d1:1001 --pcap-dump pc.cap   Wireshark live view started to work after stopping ModemManager sudo systemctl stop ModemManager

Experimenting with QCSuper + Huawei e3276

Image
 7.5.2024 Experimenting with QCSuper + Huawei e3276 https://github.com/P1sec/QCSuper VirtualBox Windows host - Ubuntu 22.04 LTS quest OS Huawei e3276 mobile broadband 2G, 3G and LTE Win 10 driver for the e3276 does not exist. USB sharing to Ubuntu. I selected the Huawei device in Guest OS/VirtualBox, no permanent selected USB device filtering in VBox USB settings. Ubuntu recognizes it as mobile broadband device. e3276 is conneted to USB host with many other devices connected to the same hub. The connection is somewhat unstable in Ubuntu probably because of hub connection. Better to use without USB hub and VirtualBox. In Ubuntu there may be modem manager etc settings to properly set up mobile broadband device. Enable the diag port AT$QCDMG (pip3 install atcom)   sudo ./qcsuper.py --usb-modem /dev/ttyUSB00 --wireshark-live succeeds to start (despite port connection being a bit unstable) and launches Wireshark 4.24. Wireshark founds multiple problems .... maybe it is better to us...

Inspecting AnyTone sw

Image
17.8.2024 Inspecting AnyTone sw AnyTone ATOptions dotPeek. Although ATOptions is VB.NET, dotPeek can reverse engineer quite readable C# code.   D878UVII IDA Free. Copy msvbm60.dll and dao350.dll files into some folder where D878UVII.exe is located.

Installing gr-gsm and re-DECTed on Oracle VM VirtualBox/Ubuntu 18.04

Image
  30.3.2021 Installing gr-gsm and re-DECTed on Oracle VM VirtualBox/Ubuntu 18.04 Oracle VM VirtualBox Ubuntu 18.04 LTS sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7 sudo apt-get update sudo apt install gnuradio sudo apt install -y rtl-sdr librtlsdr-dev osmo-sdr libosmosdr-dev libosmocore libosmocore-dev cmake libboost-all-dev libcppunit-dev swig doxygen liblog4cpp5-dev python-scipy git build-essential autoconf libtool pkg-config libc6-dev gr-osmosdr libcanberra-gtk-module (export PYTHONPATH=/usr/local/lib/python3/dist-packages/:$PYTHONPATH *) cd $HOME mkdir rf cd rf   git clone https://github.com/velichkov/gr-gsm.git cd gr-gsm mkdir build cd build cmake .. mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ make sudo make install sudo ldconfig (sudo cp -r /usr/local/lib/python3/dist-packages/grgsm/ /usr/lib/python3/dist-packages/ *) * not needed to do, try if you encounter problems 2G still quite active re-DECTed git clone https://github.com/znuh/re-DECTed.git sudo apt in...

Installing gr-dect2 on Oracle VM VirtualBox/Ubuntu 20.04

 8.4.2021 Installing gr-dect2 on Oracle VM VirtualBox/Ubuntu 20.04 sudo apt-get update sudo apt install rtl-sdr sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.8 sudo apt install gnuradio sudo apt install gr-osmosdr sudo apt install cmake sudo apt install build-essential sudo apt install swig sudo apt install doxygen sudo apt install git sudo apt-get install libgmp3-dev sudo apt-get install libsndfile1-dev git clone git://github.com/pavelyazev/gr-dect2.git cd gr-dect2 mkdir build cd build cmake .. make sudo make install sudo ldconfig Gnuradio companion should be used to open and run the flow graph dect2.grc from gr-dect/grc

Signal RX-TX with ADALM-PLUTO and GNU Radio

Image
  4.11.2021 Signal RX-TX with ADALM-PLUTO and GNU Radio Oracle VM VirtualBox Ubuntu 18.04 GNU Radio 3.7 ADALM-PLUTO https://wiki.analog.com/resources/tools-software/linux-software/gnuradio RX and save signal (433 MHz wireless doorbell) View recorded signal in GNU Radio TX signal   Error when using variables in sample rate and RF bandwidth properties. OK when using

Replay SDR# baseband recording with ADALM-PLUTO

Image
 8.11.2021 Replay SDR# baseband recording with ADALM-PLUTO Oracle VM VirtualBox Ubuntu 18.04 GNU Radio 3.7 SDR# ADALM-PLUTO SDR# baseband recording, sample rate 1.024 MSPS, format 32 bit IEEE float. DC spike ... GNU Radio DC blocker does not fix it. Gr-correctiq block?

ADALM-PLUTO - 2

Image
 20.8.2021 ADALM-PLUTO - 2 Oracle VM VirtualBox Ubuntu 18.04 GNU Radio 3.7 gr-iio https://wiki.analog.com/resources/tools-software/linux-software/gnuradio PlutoSDR Sink IIO context URI / PlutoSDR Source Device URI ip:pluto.local ERROR: Avahi Resolver: Failed to resolve host 'pluto.local': Timeout reached fix: ip:192.168.2.1 error: from gnuradio import io importerror cannot import name iio fix: gr-iio install cmake -DCMAKE_INSTALL_PREFIX=/usr . Occasionally GNU Radio PlutoSDR Sink stops working. Fix: restart GNU Radio       GNU Radio XMLRPC server - change GNU Radio variable value from XMLRPC client Python 2.7 XMLRPC client code import time import xmlrpclib try:     client = xmlrpclib.Server("http://localhost:8080/")     for n in range(8):         client.set_freq(500)         time.sleep(1.5)         client.set_freq(2000)   ...