Skip to content

Instantly share code, notes, and snippets.

@nubpro
nubpro / gist:8e669a1295cf233636fc3e2bb50fbbf5
Created July 2, 2023 10:15
Android ssl certificate pinning bypass script for various methods by Maurizio Siddu
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f [APP_ID] -l frida_multiple_unpinning.js [--no-pause]
*/
setTimeout(function () {
Java.perform(function () {
console.log("");
@nubpro
nubpro / bulk_checkin.py
Last active September 20, 2021 04:52
SnipeIT Bulk Check-in
import requests
# change this
API_ENDPOINT = "https://<YOUR URL>.com/api"
API_TOKEN = "<YOUR API TOKEN>"
# export assets list as JSON
json_from_snipeit = {"header":[["ID","Company","Asset Tag","Model","Category","Status","Checked Out To","Location"]],"data":[{"ID":39,"Company":"","Asset Tag":" testing","Model":"Portal Generators","Category":"Portable Generators","Status":"Ready to Deploy","Checked Out To":"","Location":""},{"ID":"","Company":"","Asset Tag":"","Model":"","Category":"","Status":"","Checked Out To":"","Location":""}]}
assets = json_from_snipeit.get('data')
@nubpro
nubpro / gist:74e90352a3cfcea5a9eed5d385236925
Created January 30, 2021 11:19
Authenticating with APU's CAS
var User = require('../models/user');
var jwt = require('jsonwebtoken');
var config = require('../config/config');
var request = require('request-promise-native');
generateToken = user => {
return jwt.sign(
{ id: user.id, username: user.username },
config.jwtSecret,
{