From df64244d3ac4a15e6e23b100a976169ad0bdd497 Mon Sep 17 00:00:00 2001 From: server Date: Thu, 20 Jan 2022 19:04:24 -0700 Subject: [PATCH] backup extsd scriptlet, net notes --- NET.md | 10 ++++++++++ SEC.md | 25 +++++++++++++++++++++++++ scripts/pysalx-backup-extsd | 12 ++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 NET.md create mode 100755 scripts/pysalx-backup-extsd diff --git a/NET.md b/NET.md new file mode 100644 index 0000000..fbc7275 --- /dev/null +++ b/NET.md @@ -0,0 +1,10 @@ +# Network + +``` +# from lsof: +/system/bin/tftp_server + +root@ngl:/ # netstat +Proto Recv-Q Send-Q Local Address Foreign Address State + tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN +``` diff --git a/SEC.md b/SEC.md index f7b2418..d451fb2 100644 --- a/SEC.md +++ b/SEC.md @@ -15,3 +15,28 @@ root 2528 1 5868 368 ffffffff 00434a84 S /sbin/adbd u0_a70 4397 302 1257352 23972 ffffffff a66719c0 S com.android.smspush ``` +Not sure this is necessary... (?) + +``` +# from lsof +/system/priv-app/Telecom/Telecom.apk +/system/priv-app/TelephonyProvider/TelephonyProvider.apk +/data/data/com.android.providers.telephony/databases/cdmacalloption.db +/data/data/com.android.providers.telephony/databases/HbpcdLookup.db +/system/app/PhoneFeatures/PhoneFeatures.apk +/system/framework/qcrilhook.jar +/data/data/com.android.providers.telephony/databases/telephony.db +/data/data/com.android.providers.telephony/databases/mmssms.db +# Ok, so it has pretty much everything enabled/running apparently... +/system/app/Email/Email.apk +``` + +``` +# Don't think it has hardware GPS (?). +# Perhaps for use with paired GPS (e.g. android phone). +/system/priv-app/com.qualcomm.location/com.qualcomm.location.apk +/system/framework/com.android.location.provider.jar +``` + +Uses SELinux kernel. + diff --git a/scripts/pysalx-backup-extsd b/scripts/pysalx-backup-extsd new file mode 100755 index 0000000..3c1c0e8 --- /dev/null +++ b/scripts/pysalx-backup-extsd @@ -0,0 +1,12 @@ +#!/bin/bash +# Script to backup the extsdcard on the analyzer. +# It will create a timestamped directory. + +set -x + +NOW=`date +%Y%m%d%H%M%S` + +mkdir -p "./$NOW" + +adb pull -a /storage/extsdcard/ "./$NOW" +