Extracting SIP Credentials from Sipgate Satellite

WARNING:

Sipgate have contacted me. They WILL block your account and ban you from Satellite if you connect any other SIP client using these credentials. I only still provide the following because it is interesting from a technical perspective, don’t do it if you depend on your accout.

 

Sipgate Satellite is a VoIP app that allows you to use a German mobile phone number in an app.

But this app requires Google Play Services (though it works with microg) and is not open source and you don’t get the actual SIP credentials to use the SIP account on a normal phone or on your desktop computer.

You can, however, extract the SIP credentials. This is how it works.

Prerequisites

Extracting the Credentials

  1. Open Preferences Manager. It will ask you for root access so it can read the app’s data, confirm that.
  2. Scroll down till you find the app.
  3. Search for “sipCredentialsStorage.xml” and note down the values of the keys “sipCredentialsUsername” and “sipCredentialsPassword”.
  4. Profit!

(SIP server is sipgate.de)

Conclusion

While before you weren’t able to choose a VoIP software of your liking, you can now do so. Now you can even use a physical SIP phone, too.

What I don’t yet know is:
What happens if you set up multiple phones? Will they all ring? Does every installation of the app use the same credentials?
I don’t happen to have a second phone with root access for testing. Drop me a message, if you know about that.

You should note that, since this is not officially supported, it might stop working at any time.

 

edit: It seems to work with more than one client. No idea how reliably, though.

CHIRP on Ubuntu 20.04

Annoyed that you cannot use CHIRP on Ubuntu 20.04 to program your precious radios?

CHIRP is still based on Python 2, which is old. So old in fact that it is no longer part of the Ubuntu repositories. While you can still install Python 2, this is not true for all the dependencies that are needed to run CHIRP.

The CHIRP developers are already working on a Python 3 version that you can install just like any other package, but since it does not exist yet, we cannot use it.

Well, the solution is quite simple: Use flatpak.

Unlike .deb and .rpm packages, flatpak packages contain nearly all libraries, interpreters and data necessary to run an application.

To install CHIRP with flatpak, just make sure that you have flatpak installed.

Download the flatpak package from CHIRP’s download section: https://trac.chirp.danplanet.com/chirp_daily/LATEST/

Then simply install the package:

flatpak install Downloads/chirp-daily-20200909.flatpak

You can then run CHIRP from your application menu.
To run CHIRP from the comman line, run:

flatpak run com.danplanet.chirp

Using Android – but without Google or other proprietary Apps

I didn’t like the fact that Google and maybe some other companies could spy on the activities on my phone, so I decided to remove everything that comes from Google. After some time I also thought it was great to only use open source software where many people usually read the code, making it more secure. If just the company producing it has the code, how can I be sure the App does what is says it does?

I found some great alternatives for every App I use and I want to share what I found good. All apps have been installed via f-droid store.

Amaze – A great file manager. Nothing more to say. Just works.

AntennaPod – Podcatcher. Listen to your favourite podcasts. Supports different podcast directories: Popular iTunes directory, fyyd and gpodder.net. Lets you change the speed to listen faster, import/export subscriptions via OPML, automated downloads and a lot more.

DAVx⁵ – Lets you sync contacts and calender, formerly known as DAVdroid. “DAVdroid is a CalDAV/CardDAV synchronisation adapter for Android 4+ devices. Use it with your own server (like Nextcloud, Baïkal, DAViCal or radiCALe) or with a trusted hoster to keep your contacts and events under your control.”

Dimmer – Maybe you know Twilight? It dimms your screen at night and changes the colour of the screen, making it easier to read the screen in a dark environment or simply while in bed.

Easy xkcd – A simple, but also feature rich viewer for the xkcd online comic. Lets you save your favorites. Can also show you ‘what if?’.

Etar – A calender in material design, fork of the AOSP calender.

F-droid – App store for open source apps. Lets you add alternative app sources.

Firefox – A browser for the phone, features: tabs, sync, private mode, addons, …

FFUpdater – A simple app to download and update Firefox, which isn’t in the F-droid repos.

FoodRestrictions – ” When traveling abroad, are you having a hard time getting your food restrictions across? This app is here to help you ordering food when you are traveling to a country where language barriers can make it difficult to make yourself understood.”

Gallery – View your photos.

K-9 Mail – In my humble opinion the best mail client available. Also supports encrypted emails, multiple accounts and more.

LibreSignal – The great Signal messenger. Only that it is completely open source and doesn’t contain binary blobs as Signal  Update: Now longer developed, as you can now download Signal directly from the developers. https://signal.org/android/apk/

MemeTastic – Lets you create memes. Contains some popular pictures to which you can add text.

Mitzuli – Offline Translator. Great alternative to Google translate.

MuPDF – View PDFs.

Nextcloud Notes – Write notes and sync them to your nextcloud.

NewPipe – Youtube player app which lets you play the video in background.

Notepad – Just a simple notes app.

ObscuraCam – Helps you to obscure people from photos. (Just add the package source to f-droid, if you want it: https://guardianproject.info/fdroid/repo )

OCReader – A great alternative to feedly. Uses the nextcloud app ‘News’ to sync rss feeds and always have the same news list – including read and saved – across devices.

Offi Directions / Öffis – Navigation using public transport

OpenCamera – Lets you take photos.

OpenVPN for Android – Connect to OpenVPN servers.

OsmAnd+ – Map and navigation based on Open Street Map

Plumble – Connect to mumble servers. Speak with people via internet.

Calculator – Calculator which lets you also use pi, log, sin, cos, tan and ().

Slide – App for Reddit. Many features, easy to use.

Sound Recorder – Record audio.

StreetComplete – “Help to improve the OpenStreetMap with StreetComplete! This app finds incomplete and extendable data in your vicinity and displays it on a map as markers. Each of those is solvable by answering a simple question to complete the info on site. The info you enter is then directly added to the OpenStreetMap in your name, without the need to use another editor.”

Suntimes – Useful if you want to when the sun rises or sets. Also has the nautical times.

Survival Manual – Survival Manual based on the US Army Field Manual 21-76, works offline.

Transistor – Save URLs and listen to radio stations. Very simple, does not do more than that.

Telegram (f-droid version) – It is just like the Play store version, but competely open source. Does not include Google stuff.

Twidere – A client for twitter, Mastodon, Fanfou and StatusNet.

VLC – The well known video and audio player with many features. UPDATE: App hasn’t been updated in f-droid for some time. Maybe get it here: https://www.videolan.org/vlc/download-android.html

WiFiAnalyzer – “Optimize your WiFi network by examining surrounding WiFi networks, measuring their signal strength as well as identifying crowded channels.”

Yalp Store – Download apps from play store, but without any code from Google running on your phone. Be aware that many apps still connect to Google.

ZANavi – Navigation app. Mainly for cars.

 

Syncing data without Google:

For that task I use my own nextcloud server. Contacts and Calender are synced using DAVdroid. Notes are synced with nextcloud app ‘notes’ using android apps ‘Notes’.

 

Updating Gpredict from more than one source without destroying it’s config

I wanted to track satellites from more than one TLE source using Gpredict, so I used UpdateTLE for that. The script works, but if Gpredict is running while you run the script, you will destroy your configuration and have to setup Gpredict again.

For that reason I made a script that first checks if gpredict is running. Then it checks if one of the update scripts is running. If none of the scripts runs, it will continue and update TLE and also TRSP data (freuquencies of the satellites). If you do that Gpredict won’t know that the data is up-to-date, so it warns you. For that reason my script also changes the UNIX time value in gpredict.cfg (located at ~/.config/Gpredict/) to the current UNIX time.

The script informs you via notify-send with notification bubbles about what it does.

That makes updating TLE and TRSP in Gpredict a lot easier.

Download: start-tle-and-trsp-update.sh

 

Thanks to DH5GH for helping me a lot with it.

 

I will post updates here if something changes.

How to use every bluetooth CAT dongle with RepeaterBook – now without root!

Last time I showed you how you can use any bluetooth CAT dongle with RepeaterBook. This time I show you how to do the same but without the need to get root access. Everything is the same except how we get to that file and get it back to the device.

Prerequisites

  • You have ADB (Android Debug Bridge) installed
  • You have a USB cable for your phone
  • You have enabled ADB debugging for your phone (if not: just google it)
  • You have Android Backup Extractor on you Computer Get it HERE.

Extracting the file

First of all we need to get the file com.zbm2.repeaterbook_preferences.xml from the device.
To do that we just type in a command line: adb backup -noapk com.zbm2.repeaterbook

Confirm to backup on your device. You mustn’t use a password in order to follow my tutorial.

You will find a file called backup.ab in your current folder. We need to get a backup.tar file out of it.
Now we type: java -jar abe.jar unpack ~/backup.ab backup.tar

After that you will find a file called backup.tar. You will find the file we are looking for under the subfolder apps. Open the file and edit it as I explained in an earlier post. Save it and update the .tar archive. The exact way depends on the Software you use. Try googling it if you have now idea.

Getting the changed file to the device

First we need to get a new .ab file from the .tar file. To accomplish that we type: java -jar abe.jar pack backup.tar backup-new.ab 

Restore the file to your device: adb restore backup-new.ab

 

Just confirm that you want to restore. That’s it.

 

If you have difficulties following these steps: Write a comment and wait. A will write it in a more clean way the next days.

Just the usual note: I take NO responsibility if you are a not capable of using your brain and/or your computer and then damage something. Following this tutorial could kill cat babies if used wrong and without caution.

How to use every bluetooth CAT dongle with RepeaterBook

By default RepeaterBook only works with CAT dongles that have a specific MAC address. I bought a cheap dongle from ebay, but the Android App RepeaterBook didn’t recognize it. So I decided to look into the apps files. I found a file containing settings of the app. There I could set the MAC address:

<?xml version=’1.0′ encoding=’utf-8′ standalone=’yes’ ?>
<map>
<boolean name=”PREF_DISPLAY_5GHz” value=”false” />
<boolean name=”PREF_DISPLAY_APCO25″ value=”false” />
<boolean name=”PREF_DISPLAY_WIDE_VER2″ value=”false” />
<string name=”PREF_DISPLAY”>1</string>
<string name=”PREF_LAST_MAC_ADDRESS”>20:16:05:19:36:33</string>
<boolean name=”PREF_DISPLAY_2M” value=”true” />
<boolean name=”PREF_DISPLAY_23CM” value=”false” />
<string name=”PREF_MILE_KILOMETRE”>km</string>
<boolean name=”PREF_ENABLE_AUTOCONNECT” value=”true” />
<boolean name=”PREF_DISPLAY_TV” value=”false” />
<string name=”PREF_MANUAL_LOCATION”>JO41BN</string>
<boolean name=”PREF_DISPLAY_1_25m” value=”false” />
<boolean name=”PREF_DISPLAY_6M” value=”false” />
<boolean name=”PREF_DISPLAY_33CM” value=”false” />
<boolean name=”PREF_DISPLAY_DMR” value=”true” />
<boolean name=”PREF_DISPLAY_10M” value=”true” />
<boolean name=”PREF_DISPLAY_ECHOLINK” value=”false” />
<boolean name=”PREF_DISPLAY_ANALOG” value=”true” />
<boolean name=”PREF_DISPLAY_ALLSTAR” value=”false” />
<string name=”PREF_MAX_DISTANCE_VER2″>500</string>
<boolean name=”PREF_DISPLAY_DSTAR” value=”false” />
<string name=”PREF_SORT_BY_VER3″>35</string>
<boolean name=”PREF_ENABLE_SCREENON” value=”false” />
<boolean name=”PREF_DISPLAY_WIRES” value=”false” />
<boolean name=”PREF_DISPLAY_24GHz” value=”false” />
<boolean name=”PREF_DISPLAY_4M” value=”false” />
<string name=”PREF_BLUECAT_RADIO”>1</string>
<boolean name=”PREF_DISPLAY_IRLP” value=”false” />
<boolean name=”PREF_DISPLAY_YSF_VER2″ value=”false” />
<boolean name=”PREF_DISPLAY_13CM” value=”false” />
<boolean name=”PREF_DISPLAY_WIRES_X” value=”false” />
<boolean name=”PREF_DISPLAY_70CM” value=”true” />
<boolean name=”PREF_DISPLAY_9CM” value=”false” />
<boolean name=”PREF_DISPLAY_10GHz” value=”false” />
<boolean name=”PREF_AUTO_LOCATION” value=”false” />
</map>

As you can see, <string name=”PREF_LAST_MAC_ADDRESS”>20:16:05:19:36:33</string> contains the MAC address. Just get the MAC address of your devices using apps like “Bluetooth Viewer LITE” and put it into the file. You need root access to edit that file. The file is located under: /data/data/com.zbm2.repeaterbook/shared_prefs/com.zbm2.repeaterbook_preferences.xml

Now I can finally set my FT-857D’s frequency using my smartphone. 😀

How to automatically remove all EXIF information from photos inside a folder

I just found a few photos I’d like to use on the Internet and I wanted to remove all the EXIF information from it.

EXIF information contains the camera used and some of the settings and even where you made the photo on cameras with GPS.

I didn’t want to remove it from every single photo, so I made a script for it:


#!/bin/bash
#This script deletes all EXIF information from any .JPG or .jpg photo in a folder. It is needed to install ImageMagick to use the mogrify command.
#NOTE: YOUR EXIF WILL BE LOST! DO A BACKUP IF YOU NEED IT!
# This program comes with absolutely no warranty, to the extent permitted by applicable law.
cd ~/YOUR_PICTURE_FOLDER/
clear
echo Now locating pictures and deleting EXIF information
find ./*/ -name '*.JPG' | xargs mogrify -strip
clear
echo step 1 of 4 done...
find ./*/ -name '*.JPG~' | xargs rm
clear
echo step 2 of 4...
find ./*/ -name '*.jpg' | xargs mogrify -strip
clear
echo step 3 of 4...
find ./*/ -name '*.jpg~' | xargs rm
clear
echo step 4 of 4...
#The above lines containing 'rm' remove the .JPG~ or .jpg~ files, which you get when you close the program before finishing. Just run it again to get rid of them.
echo 'We are done! You can now use your photos on the Internet! Press any key to continue.. :)'
read -n 1
echo
exit

This simple script needs the program ImageMagick installed to have the mogrify command available.

Use it at your own risk.