Original: http://www.shadowandy.net/2012/03/asus-rt-n66u-tomatousb-firmware-flashing-guide.htm
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 javax.crypto.Cipher; | |
import javax.crypto.SecretKey; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.spec.PBEKeySpec; | |
import javax.crypto.spec.PBEParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; |
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
// ### About this Flow ### | |
// Using Custom Auth Flow through Amazon Cognito User Pools with Lambda Triggers to complete a 'CUSTOM_CHALLENGE'. This is the same flow as one-time passcode generated and sent via SMS or Email. | |
// Instead, the service and user share a secret that was created during registration and both generate a 6-digit code based on the shared secret. | |
// If the two codes (typically only good for 30 seconds) match, the user is authenticated. | |
// | |
// ### About this function ### | |
// This DefineAuthChallengeCustom function (1st and 4th of 4 triggers) defines the type of challenge-response required for authentication. | |
// For HOTP, TOTP, U2F, or WebAuthn flows, we'll always use 'CUSTOM_CHALLENGE' and this function code won't change between the various auth methods. | |
// ### Next steps ### |
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
#!/usr/bin/python3 | |
# Author: ceres-c 2019-12-29 | |
# Authenticate to ICODE SLI tags | |
import hid | |
# Global defines & commands | |
password = [0x00, 0x00, 0x00, 0x00] # You have to find it yourself, try to search online in german ;-) |
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
#!/bin/bash | |
echo "> Building VMware modules..." | |
systemctl stop vmware.service | |
vmware-modconfig --console --install-all | |
echo "> Signing modules ..." | |
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /root/module_sign/MOK.priv /root/module_sign/MOK.der $(modinfo -n vmmon) | |
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /root/module_sign/MOK.priv /root/module_sign/MOK.der $(modinfo -n vmnet) |
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
#!/bin/bash | |
# Extract data from nandroid backup of Google Authenticator 2 | |
# > /data/data/com.google.android.apps.authenticator2/databases/databases | |
# require: sqlite3 + qrencode | |
sqlite3 databases <<! | |
.headers off | |
.mode csv | |
.output codes.csv | |
select printf("otpauth://totp/%s?secret=%s&issuer=%s",email,secret,issuer) from accounts; |
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 java.io.IOException; | |
import java.io.InputStream; | |
import java.lang.ref.WeakReference; | |
import java.security.cert.CertificateEncodingException; | |
import java.util.Enumeration; | |
import java.util.jar.JarEntry; | |
import java.util.jar.JarFile; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; |
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
* Install Virtual Box (https://www.virtualbox.org) | |
* Install Oracle VM VirtualBox Extension Pack (https://www.virtualbox.org) | |
* Install Vagrant | |
mkdir osxvm | |
cd osxvm | |
vagrant init jhcook/osx-elcapitan-10.11 | |
* Edit Vagrantfile |
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
from java.awt import Font | |
from javax.swing import JScrollPane, JTextPane | |
from javax.swing.text import SimpleAttributeSet | |
from burp import IBurpExtender, IExtensionStateListener, IHttpListener, ITab | |
import base64 | |
import traceback | |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
############################################################## | |
# Lempel-Ziv-Stac decompression | |
# BitReader and RingList classes | |
# | |
# Copyright (C) 2011 Filippo Valsorda - FiloSottile | |
# filosottile.wiki gmail.com - www.pytux.it | |
# |
NewerOlder