Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
Terminal shell script faille de sécurité XSS injection code malveillant cat
Voir aussi :
Source https://makandracards.com/makandra/35943-terminal-escape-sequences-the-new-xss-for-linux-sysadmins
$ printf '#!/bin/bash\necho doing something evil!\nexit\n\033[2Aecho doing something very nice!\n' > backdoor.sh $ chmod +x backdoor.sh $ cat backdoor.sh #!/bin/bash echo doing something very nice! $ ./backdoor.sh doing something evil!
Terminal screen
#!/bin/bash qua3=('VBox' 'qua-gdp1.st') qua=('Qua1' 'qua-web1.st') qua2=('Qua2' 'qua-web2.st') rec1=('Rec1' 'rec-web1.st') rec2=('Rec2' 'rec-web2.st') prod1=('Prod1' 'prod-web1.st') prod2=('Prod2' 'prod-web2.st') prod3=('Prod3' 'prod-web3.st') prod4=('Prod4' 'prod-web4.st') gdp1=('Gdp1' 'prod-gdp1.st') gdp2=('Gdp2' 'prod-gdp2.st') fast=('Fast' 'prod-fast1.st') ftp1=('Ftp1' 'prod-ftp1.st') Args="" for platforme in prod1 prod2 prod3 prod4 gdp1 rec1 rec2 fast ftp1 qua qua2 qua3 do Args="$Args --tab -t \"$(eval echo \${$platforme[0]})\" -e \"ssh -t $(eval echo \${$platforme[1]}) screen -x\"" done echo $Args | xargs gnome-terminal
Température matériel CPU carte mère Debian lm-sensors
Voir nouvelle_install_debian_configuration_optimisation
Voir aussi : https://github.com/cyring/CoreFreq
apt-get install lm-sensors sensors-detect --auto sensors
# acpi -t Thermal 0: ok, 29.8 degrees C Thermal 1: ok, 27.8 degrees C
Température du disque
# smartctl -A /dev/sda | egrep -i "ATTRIBUTE_NAME|temperature" ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 194 Temperature_Celsius 0x0022 105 099 000 Old_age Always - 42
Ici le disque est à 42°C. Sur une échelle de 0 (Très chaud) à 255 (très froid) il est à 105. Il a déjà connu pire, une fois à 99.
Pour afficher les températures et leurs historiques
smartctl -x /dev/sda
Telnet vieux Unix console delete backspace
Pour faire backspace
[CTRL] + [H]
Ou pour avoir un terminal “normal”
bash
Téléphone portable Android connexion PC sous GNU/Linux
Voir aussi :
Notes adb
Voir :
Préreq :
- le mode debug USB doit être activé
- le debug doit être autorisé. Si pas le cas passez en “Photo transfer (PTP) mode”
Install
apt-get install android-tools-adb
Autre outils ?
apt-cache search android-tools
android-tools-adb - Android Debug Bridge CLI tool android-tools-fsutils - Android ext4 utilities with sparse support android-tools-fastboot - outil en ligne de commande pour le protocole Fastboot d'Android
Connexion
adb start-server
adb devices
lsusb
Bus 002 Device 005: ID 0e8d:201d MediaTek Inc
~/.android/adb_usb.ini
# 0xidVendorHere 0x0e8d
ou
export ADB_VENDOR_KEYS=0x0e8d
Redémarrage d'adb pour le prise en compte de la modif
adb start-server adb kill-server
Copie
adb push plop.txt /sdcard/
App
Dépôts alternatifs
Voir aussi :
- Obtainium
Install de F-Droid un dépôt de Logiciel Libre
wget https://f-droid.org/FDroid.apk adb install FDroid.apk
Mise à jour
adb install -r cartes-gps-navigation-osmand.apk
Liste des applis installées
adb shell 'pm list packages -f'
Exemple sauvegarde
#adb backup -apk -shared -all -f backup.ab adb backup '-apk -shared -all -f backup.ab'
Tar du fichier de sauvegarde
tail -n +5 backup.ab | pigz -d -z > backup.tar dd if=backup.ab bs=24 skip=1 | pigz -d -z > backup.tar
Notes fastboot
Voir :
Prerequisites:
- unlocked bootloader
- adb and fastboot installed on your computer
adb reboot bootloader #fastboot flash recovery twrp-2.8.x.x-xxx.img fastboot flash system <ROM file here> fastboot reboot
Source : https://www.thecustomdroid.com/how-to-unlock-bootloader-on-huawei-devices/
adb reboot bootloader
fastboot devices
fastboot oem unlock 2155388422526005
fastboot getvar unlocked
fastboot reboot
Source : https://www.kingoapp.com/root-tutorials/how-to-unlock-bootloader-android-device.htm
apt-get install android-tools-fastboot fastboot devices fastboot oem unlock # Après confirmation sur le téléphone : fastboot reboot
Recovery Fastboot https://www.androidpit.com/forum/731450/wiko-sunny-how-to-get-twrp-recovery-installed
fastboot devices fastboot oem unlock fastboot flash recovery recovery.img fastbook
fastboot oem unlock < waiting for device >
Partage de fichier - montage lecteur
Partage MTP (Transfère de fichiers)
apt-get install mtp-tools jmtpfs mtpfs
avec interface graphique
apt-get install gmtp
mkdir ~/mnt/mtp/ jmtpfs ~/mnt/mtp/ rsync -ax /media/cdrom/ mnt/mtp/Carte\ SD/plop/ fusermount ~/mnt/mtp/
Partage PTP (Transfère de photos)
Pb
$ adb install cartes-gps-navigation-osmand.apk
4529 KB/s (18980364 bytes in 4.092s)
pkg: /data/local/tmp/cartes-gps-navigation-osmand.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
$ adb install -r cartes-gps-navigation-osmand.apk
4861 KB/s (18980364 bytes in 3.812s)
pkg: /data/local/tmp/cartes-gps-navigation-osmand.apk
Success
Autres
Logs
adb logcat | grep $(adb shell ps | grep org.smssecure.smssecure | cut -c10-15)
logcat -C -b crash,system,main 'bash:S logcat:S mali_winsys:S *:I'
Droits appli
adb shell pm grant uk.co.richyhbm.monochromatic android.permission.WRITE_SECURE_SETTINGS
root access
https://f-droid.org/wiki/page/Should_I_root_my_device%3F
debian
https://www.debian-fr.org/t/debian-kit-debian-en-parallele-dandroid-sans-chroot/59967
Sécurité Sources inconnues Autoriser l'installation d'application issue de sources inconnues
wget http://download.clockworkmod.com/superuser/superuser.zip mkdir plop cd plop unzip ../superuser.zip adb kill-server
$ adb root adbd cannot run as root in production builds
Note root wiko
SuperSU TWRP ( Team Win Recovery Project)
wipe dalvik/cache
Changer son IMEI ? https://play.google.com/store/apps/details?id=com.cryptotel.chamelephon
adb shell getprop ro.build.version.release adb shell getprop | grep ro.build.version.release
Autres
Désinstaller une application système
adb shell pm uninstall -k --user 0 foundation.e.mail
