Skip to content

Instantly share code, notes, and snippets.

View onewayticket255's full-sized avatar
🎯
Focusing

onewayticket255

🎯
Focusing
View GitHub Profile
@onewayticket255
onewayticket255 / dylib.mm
Created January 2, 2020 14:21
Hook URLSession SSL Pinning
%hook URLSessionManager
-(void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler {
NSLog(@"Enter Into");
NSURLCredential *credential = [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust];
completionHandler(NSURLSessionAuthChallengeUseCredential, credential);
}
@onewayticket255
onewayticket255 / RSS
Last active October 30, 2020 00:08
Tiny RSS Dashboard
某科学的最后之作: /2019/11/16/2019/Linux IO多路复用/
Slanterns blog: /Subtyping-Variance-Cell-UnsafeCell/
卖萌凉: iOS 14 -[UIInputResponderController prepareToMoveKeyboardForInputViewSet:animationStyle:] crash 解决
Update: UTC+8 2020-10-30 08:08
@onewayticket255
onewayticket255 / SSL Pinning.x
Last active February 20, 2020 04:39
Bypass Twitter's link analysis
#import <dlfcn.h>
#import "substrate.h"
int custom_verify_callback_that_does_not_validate(void *ssl, uint8_t *out_alert){
return 0;
}
void (*original_SSL_set_custom_verify)(void *ssl, int mode, int (*callback)(void *ssl, uint8_t *out_alert));
void replaced_SSL_set_custom_verify(void *ssl, int mode, int (*callback)(void *ssl, uint8_t *out_alert)){
#!bin/sh
prerequisite(){
sudo -i
pacman -Syu aria2 nginx shadowsocks-libev simple-obfs node jq unzip
cd /
mkdir /sync
curl -L -o /sync/arch.sh https://gist.githubusercontent.com/onewayticket255/d81f7230cdd95dbbf7e00787157f939c/raw/arch.sh
chmod 777 /sync/arch.sh
/sync/arch.sh
}
@onewayticket255
onewayticket255 / disable-ssl-pin.js
Created May 15, 2020 09:54 — forked from azenla/disable-ssl-pin.js
This Frida script disables SSL pinning and verification on any target macOS Catalina process.
var SecTrustEvaluate_handle =
Module.findExportByName('Security', 'SecTrustEvaluate');
var SecTrustEvaluateWithError_handle =
Module.findExportByName('Security', 'SecTrustEvaluateWithError');
var SSL_CTX_set_custom_verify_handle =
Module.findExportByName('libboringssl.dylib', 'SSL_CTX_set_custom_verify');
var SSL_get_psk_identity_handle =
Module.findExportByName('libboringssl.dylib', 'SSL_get_psk_identity');
var boringssl_context_set_verify_mode_handle = Module.findExportByName(
'libboringssl.dylib', 'boringssl_context_set_verify_mode');