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 / ssl-error.js
Created August 26, 2022 18:39
ssl frida error
View ssl-error.js
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
View debug-ssl-error.js
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
View okhttp-bypass.js
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)
View obsidian-web-clipper.js
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
View debug_requests.py
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)
View sj.js
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
View angular.sandbox.escapes.md
@aancw
aancw / Silabus-Belajar-Javascript-Ubuntu-Indonesia.md
Last active July 3, 2020 14:02
Silabus Belajar Javascript Ubuntu Indonesia
View Silabus-Belajar-Javascript-Ubuntu-Indonesia.md

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
View 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:

@aancw
aancw / Sinau Development.txt
Last active July 4, 2016 16:00
Sinau Development
View Sinau Development.txt
Sinau Development : Mari Belajar Bersama
Beberapa bulan silam saya berdiskusi dengan teman lama yang mana kita adalah anggota dari salah satu komunitas yang sama ( yang sekarang sudah tidak aktif ). Obrolan dimulai dari perencanaan untuk mengaktifkan kembali forum atau komunitas yang sudah vakum tersebut. Namun, terkendala dengan anggota yang sudah menyebar dan tidak aktif lagi. Alhasil, saya mengusulkan untuk membuat komunitas baru dengan nama 'SinauDevelopment' yang bertujuan untuk sarana belajar bersama berkaitan dengan development yang ada pada komputer. Semisal, untuk development aplikasi desktop, android, development server dan lain-lain.
Dengan tercipta nya wadah tersebut diharapkan bisa menjadikan tempat untuk bertukar pikiran dan berbagi ilmu. Harus kita akui bahwa Indonesia masih minim untuk sarana pendidikan dengan anggaran biaya yang rendah. Dalam Sinau Development sendiri, semua orang boleh dan harus menjadi pemateri sekalipun hanya untuk dirinya sendiri. Tidak ada keterikatan seperti strata ya