Widespread Augmented Reality

Widespread Augmented Reality
Click on the image to get the Android Augmented Reality Heads up Display

Saturday, September 11, 2021

Android Pyroid3, Kick Web Server with MySQL - Unknown character set: utf8mb4

In Pyroid3, I re-installed mysql-connector-python so I could write python scripts that read MySQL tables.
Upon running a python script that worked a year ago, I now get "Unknown character set: utf8mb4"

Apparently this error occurs when your MySQL version is less than 5.5.3.

Kick Web Server is running 5.1.62.

Resolved error by specifying the charset in the python script's mysql connection.

Wednesday, September 8, 2021

Kali Linux - Cubic SDR and DSD Plus

The overall goal here is to connect a Nooelec USB antenna to Kali linux and listen to police frequencies that are digital and trunked. You will use the Cubic SDR frequency tuner and a virtual audio feed while DSDPlus decodes a digital signal to analog audio. The flow is as follows: antenna -> digital signal input -> Cubic SDR -> DSDPlus -> analog audio out.

Download DSD Plus v1.101 and v1.101 DLL and put all extracted files into the same folder. https://www.dsdplus.com/download-2/

sudo apt-get install cubicsdr

From the command line, temporarily set up virtual audio sink with:

pacmd load-module module-null-sink sink_name=Virtual_Sink sink_properties=device.description=Virtual_Sink

Click volume control to see a Virtual Sink in the pulse audio i/o devices.

If not, then try restarting pulse audio with killall pulseaudio, systemctl --user restart pulseaudio.service

To make the virtual sink option permanent, open the configuration file (sudo gedit /etc/pulse/default.pa) and add the following line at the bottom of file)

load-module module-null-sink sink_name=Virtual_Sink sink_properties=device.description=Virtual_Sink

If wine is not already installed then,

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine:i386
sudo apt-get install wine32

From your DSDPlus directory run wine DSDPlus.exe

At first I got an error: wine_process_init L"C:\\windows\\system32\\-h.exe" not found,
so I deleted the /HOME/.wine directory
and ran regedit to recreate the .wine directory.
Then I ran wine winecfg and selected auto detect drives.
Finally, I was able to run wine DSDPlus.exe successfully.

Start CubicSDR, which should be in the Kali Linux Menu

Tune to desired frequencies. Both Cubic SDR and DSDplus should display wave activity.

This is what volume control playback should look like:

These are Los Angeles Police frequencies: 506.937MHz and 507.212Mhz

Tuesday, September 7, 2021

GRGSM_LIVEMON - segmentation fault

Rather than track down why I can't build grgsm_livemon on this particular Kali linux machine, I opted to build it from scratch in GNURadio-Companion, storing a WIP called mygrgsm_livemon on Google Drive. Let me just think out loud that it might be how I installed gnuradio on Kali linux. I may have used sudo apt-get install gnuradio instead of downloading from source and building. Anyway, I have it working on a virtual machine running Kali Linux, so I'll let it go for now.

Monday, September 6, 2021

Kali Linux - inRelease is not valid yet

sudo apt update inRelease is not valid yet Problem with local device's system clock sudo timedatectl status sudo systemctl restart ntp.service sudo ntpq -p Source: https://www.how2shout.com/linux/solve-kali-error-inrelease-is-not-valid-yet-invalid-for-another-xh-xmin-xs/

Wednesday, September 1, 2021

GRGSM_LIVEMON - Warning: failed to XInitThreads()

sudo apt-get install libx11-dev

sudo apt-get install xauth dbus-x11

Run grgsm_livemon and now no warning message

GRGSM_LIVEMON and [ERROR] avahi_service_browser_new() failed: Bad state

I am running Kali Linux in Oracle VM Virtual Box on a Windows 10 machine.

I mostly followed the instructions at Pentesting to get GRGSM_LIVEMON and the HackRF installed.

There are many resources that provide instructions on how to install the HackRF so that hackrf_info on the command line will list the device.

What I want to address here is this error when running grgsm_livemon:

[ERROR] avahi_service_browser_new() failed: Bad state

The frequency sink still shows but the error troubled me so I did the following:

sudo apt-get install avahi-daemon

sudo apt-get install avahi-discover

sudo apt-get install -y avahi-utils

Switch to directory kali@kali:/etc/init.d$ 

./avahi-daemon stop

kali@kali:/etc/init.d$ ./avahi-daemon status

kali@kali:/etc/init.d$ ./avahi-daemon start

grgsm_livemon  

!!!!! Ran with no Avahi Bad state error !!!!