Skip to content

Instantly share code, notes, and snippets.

View andreroggeri's full-sized avatar

André Roggeri Campos andreroggeri

View GitHub Profile
@andreroggeri
andreroggeri / frida.js
Created August 24, 2020 21:56
Frida simple bypass cert pinning
Java.perform(function () {
const ArrayList = Java.use("java.util.ArrayList");
const TrustManager = Java.use("com.android.org.conscrypt.TrustManagerImpl");
TrustManager.checkTrustedRecursive.implementation = function () {
console.log("Bypassing Cert Pinning");
return ArrayList.$new();
}
}, 0);
@andreroggeri
andreroggeri / cert_pinning_disable.js
Created July 25, 2020 02:18
Basic script to override Android certificate validation with frida
Java.perform(function () {
const ArrayList = Java.use("java.util.ArrayList");
const TrustManager = Java.use("com.android.org.conscrypt.TrustManagerImpl");
TrustManager.checkTrustedRecursive.implementation = function () {
console.log("Bypassing Cert Pinning");
return ArrayList.$new();
}
}, 0);
@andreroggeri
andreroggeri / Dockerfile
Created October 9, 2019 00:08
Dockerfile for running angular unit tests
FROM node:10
# Install Chromium.
RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y google-chrome-stable && \
rm -rf /var/lib/apt/lists/*
@andreroggeri
andreroggeri / angular-stability-check.js
Last active October 21, 2021 07:23
Checks the Angular stability and logs on the console. Useful for debugging long protractor waits
/**
* Copy and paste the code below on your browser console
* It will log the stable changes and how long it took to become stable
*/
let currentStatus = undefined;
let root = $('app-root'); // Change this selector to the component that you'll be watching (Usually the root component)
let startTime = new Date();
let stabilityChecker = setInterval(() => {
let newStatus = window.getAngularTestability(root).isStable();
if (currentStatus !== newStatus) {
@andreroggeri
andreroggeri / gist:8fe72c5f22fcbf295973d5d5e0762674
Created October 27, 2018 14:00
Checks the Angular stability and logs on the console.
currentStatus = undefined;
root = $('app-root');
setInterval(() => {
newStatus = window.getAngularTestability(root).isStable();
if(currentStatus !== newStatus){
currentStatus = newStatus;
console.log(`Stable status changed to => ${currentStatus}`);
}
}, 100);
this.isEnabled = false; // App State
this.currentElement = null;
this.lockedElement = null;
function createRect(lineColor) {
const hoverElement = {
left: document.createElement('div'),
leftContinuous: document.createElement('div'),
right: document.createElement('div'),
rightContinuous: document.createElement('div'),
@andreroggeri
andreroggeri / cloudSettings
Created July 3, 2017 14:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-07-03T14:20:25.240Z","extensionVersion":"v2.8.2"}