This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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(""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
{ |