Skip to content

Instantly share code, notes, and snippets.

View adamff-dev's full-sized avatar

Adam adamff-dev

View GitHub Profile
@luciopaiva
luciopaiva / android-apk-user-certificates.md
Last active June 2, 2025 18:26
Android APK HTTPS user certificates how-to

Android APK HTTPS user certificates how-to

Starting with Android Nougat, Google changed the way apps handle user certificates:

Apps that target API Level 24 and above no longer trust user or admin-added CAs for secure connections, by default.

This means that certificates issued by applications like [Charles][charles] or [mitmproxy][mitmproxy] are no longer accepted, so these proxies won't work for HTTPS traffic.

This tutorial explains what needs to be done to overcome that restriction and be able to sniff any Android app's HTTPS requests.

@ewpratten
ewpratten / hosts-yt-ads
Last active March 21, 2025 10:23
youtube ads hosts file
This project has been moved to a GitHub repository to allow Pull Requests.
See: https://github.com/Ewpratten/youtube_ad_blocklist
@dadhi
dadhi / increment-count.bat
Created June 17, 2014 06:14
Batch script for persistent counter. Could be used for implementing state machine or suffixing backup files, etc. Uses "count file" to store counter between script executions.
@echo off
if [%1]==[] (echo error: Please specify countfile as command line argument. Could be count.txt or similar. && exit /B 1)
set COUNTFILE=%1
(set /P COUNT=<%COUNTFILE%)2>nul || set COUNT=0
set /A COUNT+=1
echo:%COUNT%>%COUNTFILE%