Skip to content

Instantly share code, notes, and snippets.

View Heydarchi's full-sized avatar
🎯
Focusing

Mohammad Hossein Heydarchi Heydarchi

🎯
Focusing
View GitHub Profile
@Heydarchi
Heydarchi / AdbCommands
Created November 22, 2022 17:03 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@jrelo
jrelo / gcc-security.txt
Last active November 14, 2024 06:54
GCC security related flags reference.
Source material:
http://security.stackexchange.com/questions/24444/what-is-the-most-hardened-set-of-options-for-gcc-compiling-c-c
https://wiki.gentoo.org/wiki/Hardened_Gentoo
https://wiki.debian.org/Hardening
================================================================================================================>
GCC Security related flags and options:
CFLAGS="-fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-z,now -Wl,-z,relro"