Skip to content

Instantly share code, notes, and snippets.

View aancw's full-sized avatar
🏠
Working from home

Aan aancw

🏠
Working from home
View GitHub Profile
@aancw
aancw / kitty.conf
Created March 19, 2026 10:07
Kitty conf to make it look like ghostty
# BEGIN_KITTY_THEME
# Catppuccin-Frappe
include current-theme.conf
# END_KITTY_THEME
# =========================
# Window / Appearance
# =========================
background_opacity 1.0
@aancw
aancw / ssl-error.js
Created August 26, 2022 18:39
ssl frida error
Java.perform(function () {
const UnverifiedCertError = Java.use('javax.net.ssl.SSLPeerUnverifiedException');
UnverifiedCertError.$init.implementation = function (str) {
const stackTrace = Java.use('java.lang.Thread').currentThread().getStackTrace();
const exceptionStackIndex = stackTrace.findIndex(stack =>
stack.getClassName() === "javax.net.ssl.SSLPeerUnverifiedException"
);
const callingFunctionStack = stackTrace[exceptionStackIndex + 1];
const className = callingFunctionStack.getClassName();
const methodName = callingFunctionStack.getMethodName();
@aancw
aancw / debug-ssl-error.js
Last active August 26, 2022 18:37
debug ssl error frida
Java.perform(function () {
const UnverifiedCertError = Java.use('javax.net.ssl.SSLPeerUnverifiedException');
UnverifiedCertError.$init.implementation = function (str) {
const stackTrace = Java.use('java.lang.Thread').currentThread().getStackTrace();
const exceptionStackIndex = stackTrace.findIndex(stack =>
stack.getClassName() === "javax.net.ssl.SSLPeerUnverifiedException"
);
const callingFunctionStack = stackTrace[exceptionStackIndex + 1];
const className = callingFunctionStack.getClassName();
const methodName = callingFunctionStack.getMethodName();
@aancw
aancw / okhttp-bypass.js
Last active August 26, 2022 18:35
Debugging OkHTTP bypass for objection
Java.perform(function () {
const UnverifiedCertError = Java.use('javax.net.ssl.SSLPeerUnverifiedException');
UnverifiedCertError.$init.implementation = function (str) {
const stackTrace = Java.use('java.lang.Thread').currentThread().getStackTrace();
const exceptionStackIndex = stackTrace.findIndex(stack =>
stack.getClassName() === "javax.net.ssl.SSLPeerUnverifiedException"
);
const callingFunctionStack = stackTrace[exceptionStackIndex + 1];
@aancw
aancw / obsidian-web-clipper.js
Created August 20, 2022 09:24 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@aancw
aancw / debug_requests.py
Created August 17, 2022 17:21 — forked from Daenyth/debug_requests.py
Enable debug logging for python requests
import requests
import logging
import httplib
# Debug logging
httplib.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
req_log = logging.getLogger('requests.packages.urllib3')
req_log.setLevel(logging.DEBUG)
alert(document.cookie);
@aancw
aancw / angular.sandbox.escapes.md
Created August 10, 2017 07:41 — forked from jeremybuis/angular.sandbox.escapes.md
Angular Sandbox Escape Cheatsheet
@aancw
aancw / Silabus-Belajar-Javascript-Ubuntu-Indonesia.md
Last active July 3, 2020 14:02
Silabus Belajar Javascript Ubuntu Indonesia

Silabus Belajar Javascript Ubuntu Indonesia

Bismillahirrahmanirrahim - بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم

Belajar Bersama Komunitas Kanal #ubuntu-indonesia

INFO server : irc.freenode.net >port : 6667

@aancw
aancw / keybase.md
Created September 9, 2016 03:13
keybase.md

Keybase proof

I hereby claim:

  • I am aancw on github.
  • I am petruknisme (https://keybase.io/petruknisme) on keybase.
  • I have a public key ASDgxMWmzDxx7Wd869O6Iyzuf6yNaIz45Sn6SzFqj3m4VQo

To claim this, I am signing this object: