mercredi 30 décembre 2020

How to sign an Android app for it to be seen as a system app ?

 I've just read the following topic on StackOverflow and I think that it can be very useful to replicate the procedure here.

  1. Add to manifest android:sharedUserId="android.uid.system"

  2. Download System signatures files: platform.x509.pem platform.pk8

        link: https://android.googlesource.com/platform/build/+/android-8.0.0_r17/target/product/security/

  1. Sign app through terminal (java -jar signapk.jar platform.x509.pem platform.pk8 unsigned.apk signed.apk) (first you must put all files to one folder), or make certificate with keytool-importkeypair to make google_certificate.keystore and then

        link for keytool-importkeypair download and explanation:

              https://github.com/getfatday/keytool-importkeypair

  1. After that steps install your signed system app to your device.


vendredi 27 novembre 2020

mardi 24 novembre 2020

Adb shell on Android 10 : How to view IP address ?

If you have error "ifconfig: ioctl 8927: Permission denied" when trying to use "ifconfig" then you can use the following command :

ip -f inet addr show


Sample output :

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1

    inet 127.0.0.1/8 scope host lo

       valid_lft forever preferred_lft forever

11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 3000

    inet 192.168.1.24/24 brd 192.168.1.255 scope global wlan0

       valid_lft forever preferred_lft forever



lundi 23 novembre 2020

Changer d'adresse IP avec netsh sur Windows

Pour obtenir une adresse IP statique :

netsh interface ip set address "Connexion au réseau local" static 192.168.1.251 255.255.255.0 192.168.1.1 1

Ici, la gateway est 192.168.1.251 et l'adresse IP statique est 192.168.1.1


Pour obtenir une adresse IP dynamique (DHCP) :

netsh interface ip set address "Connexion au réseau local" dhcp



Transférer une base de données depuis Android vers PC en ligne de commande avec adb.

 Voici comment transférer une base de données SQLite depuis un Android vers le PC en ligne de commande. Ceci fonctionne aussi bien sur Windows que sur Linux :

cd C:\Users\UserName\AppData\Local\Android\Sdk\platform-tools

adb exec-out run-as com.activity.myapplication cat /data/data/com.activity.myapplication/databases/DataBase.db > C:\Users\UserName\DataBase.db

adb exec-out run-as com.activity.myapplication cat /data/data/com.activity.myapplication/databases/DataBase.db-shm > C:\Users\UserName\DataBase.db-shm

adb exec-out run-as com.activity.myapplication cat /data/data/com.activity.myapplication/databases/DataBase.db-wal > C:\Users\UserName\DataBase.db-wal

Bien sûr vous devez modifier le nom du package par le vôtre, ainsi que le nom de la base de données et le répertoire de destination sur le PC.



jeudi 19 novembre 2020

Tools for downloading Youtube videos to your computer

 Here are some links that will be useful to do that :


Youtube-dl documentation (don't download the tool from there) :

https://github.com/ytdl-org/youtube-dl


Youtube-dl .EXE download (get the latest one) :

https://github.com/ytdl-org/youtube-dl/releases/tag/2020.11.12


FFMPEG download (put the ffmpeg.exe file next to the youtube-dl.exe file) :

https://www.gyan.dev/ffmpeg/builds/


A small example to download to a MP3 file :

youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=fd0qV2LErzA


Another example that downloads to a MP3 file on a F: drive (USB) :

youtube-dl --extract-audio --audio-format mp3 -o 'F:\%(title)s.%(ext)s' https://www.youtube.com/watch?v=fd0qV2LErzA


Another example for downloading 10 MP3 from a search about "sizzla 2020" :

youtube-dl --extract-audio --audio-format mp3 -o "F:\%(title)s.%(ext)s" "ytsearch10:sizzla 2020"


Have fun with all that !


mardi 17 novembre 2020

Where are stored the images of devices created with Android Virtual Device Manager (AVD Manager) ?

 The images of devices created with AVD Manager are stored in the following folder on a Windows 10 computer :

C:\Users\[Your Username]\.android\avd\

This can be useful because sometimes you need to delete an image created with AVD Manager and deleting it from AVD Manager can fail, so by browsing to the good folder you can then remove the folder manually.


vendredi 13 novembre 2020

Rechercher des fichiers en ligne de commandes sous Windows

 Pour rechercher par exemple tous les fichiers .LOG présents sur le lecteur C:\, en ligne de commande faire :

C:\dir *.LOG /s

Ceci provoquera la recherche de tous les fichiers .LOG dans tous les répertoires et sous-répertoires sur le lecteur C:

Encore mieux, utilisez l'option /b pour réduire les informations affichées à l'écran, exemple :

C:\dir *.APK /s /b

Ceci effectuera une recherche de tous les fichiers .APK présents sur le disque C: !

Très puissant, rapide et efficace !

vendredi 30 octobre 2020

Do While in Powershell

 $i = 1

Do { Start-Job -ScriptBlock { // YOUR SCRIPT TO START AS A JOB HERE } } $i++ } While ($i -ne 100)

Start a thread in Powershell

 Start-Job -ScriptBlock { SCRIPT TO EXECUTE HERE }


Documentation at Microsoft

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/start-job?view=powershell-7


Execute a powershell script as Administrator (from inside the script)

 Add the following lines at the beginning of your script :


if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))  

{  

  $arguments = "& '" +$myinvocation.mycommand.definition + "'"

  Start-Process powershell -Verb runAs -ArgumentList $arguments

  Break

}


Android, filtrer les logs adb logcat par id de processus

Suivre la procédure suivante pour visualiser les logs d'un processus sur un périphérique Android, en ligne de commande (windows ou linux) :


Entrer les commandes suivantes :

adb shell

ps|grep NOM DU PROCESSUS (ou partie du nom)


Une ligne telle que la suivante s'affiche :

u0_a221   9448  2237  2328828 93952 SyS_epoll_ 0000000000 S com.canalyzer.renault.go


Le PID du processus concerné est donc ici le 9448.

Entrer alors la commande suivante (en remplaçant 9448 par le PID que vous aurez identifié) :

logcat --pid=9448


Connaître son IP publique et voir les headers envoyés par votre navigateur internet

https://ifconfig.me/


vendredi 23 octobre 2020

Importer scan Masscan vers Metasploit

Scanner depuis Masscan :

 proxychains masscan -p3389 xxx.yyy.zzz.0/24 -oX masscan.xml


Puis dans msfconsole :

systemctl start postgresql

db_connect -y /usr/share/metasploit-framework/config/database.yml

db_import masscan.xml

use auxiliary/scanner/rdp/cve_2019_0708_bluekeep

services -p 3389 -R

exploit


Et petit plus pour proxychainer msfconsole il faut ajouter cette ligne dans proxychains.conf :

localnet 127.0.0.1 000 255.255.255.255


Challenge Brigitte Friang (cybersécurité)

 https://www.challengecybersec.fr/


jeudi 22 octobre 2020

Emsisoft Emergency Kit (Malware/Viruses...)

 https://www.emsisoft.com/en/home/emergencykit/

Quoted in the description of the following Youtube vidéo : https://www.youtube.com/watch?v=Wh_DJTaDq6U

"A scanner that can be used without installation to scan and clean infected computers".

dimanche 5 juillet 2020

How to use Google OBOE to record audio mic on an Android device and write to .WAV file ?

Here is a new project hosted on Github that uses Android C++ NDK to record the audio mic and save the data to a .wav file on the Android device.

You can start the recording, then leave the app (let it in background) and it will keep on recording the input in background.

You can also record a phone conversation by activating the loud speaker when someone calls you (the loud speaker is then recorded by the audio mic input).

This application will soon be available on Google Play Store but for now is in development phase. You can clone it or fork it on GitHub and compile it to use it on your Android phone or tablet.

Click here to go to OboeAudioRecorder project on GitHub.

Click here to go to OboeAudioRecorder main .CPP file that contains the most relevant code for recording the mic input and writing to the .wav file on the Android device.

mardi 18 février 2020

Nouvelle Application Humoristes Android

Une nouvelle application Android recensant les vidéos d'humoristes francophones est sortie cette semaine sur le Google Play Store. Vous aurez accès à des centaines de vidéos d'humoristes, et cette liste est régulièrement mise à jour.


mardi 14 janvier 2020

Nouvelle version Ichimoku Ultimate Scanner EA 2020

Ichimoku Ultimate Scanner EA 2020 est une nouvelle version de notre scanneur basé sur les critères Ichimoku Kinko Hyo.

Pour avoir une description et les liens de téléchargement (gratuit), les liens sont ci-après :

Ichimoku Ultimate Scanner EA 2020 Version Kijun Sen Scanner

Ichimoku Ultimate Scanner EA 2020 Version Kumo Chikou Scanner

Un site entièrement dédié aux détections réalisées par nos scanneurs est disponible sur l'adresse suivante :

Cliquez ici pour vous rendre sur le site Ichimoku Scanner for Professionals

vendredi 10 janvier 2020

How to create a PDF file on Android (in Kotlin)

If you need to create a PDF file from your application on Android, here is a piece of code that will show you how to easily do that, with unlimited number of lines that you can write to the PDF :

https://gist.github.com/reuniware/a89b505197f41a28ab334aa1049b989b#file-pdfwriter-kt