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 | |
# 检查是否提供了文件名参数 | |
if [ -z "$1" ]; then | |
echo "请提供证书文件名作为参数!" | |
exit 1 | |
fi | |
# 获取输入文件名和扩展名 | |
input_file="$1" |
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
package utils; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Member; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Modifier; | |
import java.util.*; |
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
echo "[General] | |
D75BD954-8B63-84BA-75B3-019654928EE7=2786127075 | |
E68B43C9-B732-8573-76A8-01AB75B3683A=253686975 | |
F175B8C0-783C-8BA0-7045-014CA847B302=2765028028 | |
F73529D0-8362-B7A9-7B25-01538B3C632A=1689813065 | |
Hidden=false | |
LastDate= | |
Name=Forgo7ten | |
Password=1f93-56ac-c63e-540d-a9ab" > ~/.config/SweetScape/010\ Editor.ini | |
OS=`uname -s` |
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
mixed-port: 7890 | |
allow-lan: false | |
mode: global | |
external-controller: 127.0.0.1:9090 | |
log-level: info |
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 binascii | |
import sys | |
import os.path | |
SV = [0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, 0xf57c0faf, | |
0x4787c62a, 0xa8304613, 0xfd469501, 0x698098d8, 0x8b44f7af, | |
0xffff5bb1, 0x895cd7be, 0x6b901122, 0xfd987193, 0xa679438e, | |
0x49b40821, 0xf61e2562, 0xc040b340, 0x265e5a51, 0xe9b6c7aa, | |
0xd62f105d, 0x2441453, 0xd8a1e681, 0xe7d3fbc8, 0x21e1cde6, | |
0xc33707d6, 0xf4d50d87, 0x455a14ed, 0xa9e3e905, 0xfcefa3f8, |
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
/* | |
* @FileName autoComments.js | |
* @Description 河北师范大学内网学生师德师风评教自动评价(方正教务系统) | |
* @Version 1.0.0 | |
* @Author Forgo7ten | |
* @Date 2020/12/20 | |
*/ | |
var good_btn_classname = "radio-inline input-xspj input-xspj-1"; | |
var better_btn_classname = "radio-inline input-xspj input-xspj-2"; | |
var comment_element_id = "DF16FA9E24666431E0539A01A8C0A321_py"; |
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 | |
# 将p12转换为pem,导入OpenSSL包,单使用pem不用该模块 | |
import OpenSSL | |
# pip install requests pyOpenSSL==22.0.0 | |
url = "https://180.76.60.244:18443/api/app5" | |
body = {"page": 2} | |
header = { | |
"Content-Type": |
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
/** | |
* HOOKonClick函数,打印onClick匿名类 | |
*/ | |
var jclazz = null; | |
var jobj = null; | |
function getObjClassName(obj) { | |
if (!jclazz) { | |
var jclazz = Java.use("java.lang.Class"); | |
} |
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
/** | |
* hook证书密码及导出证书 | |
*/ | |
function hook_KeyStore_load() { | |
Java.perform(function () { | |
var myArray = new Array(1024); | |
var i = 0; | |
for (i = 0; i < myArray.length; i++) { | |
myArray[i] = 0x0; | |
} |
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 pysm4 import encrypt, decrypt | |
# 明文 | |
clear_num = 0x0123456789abcdeffedcba9876543210 | |
# 密钥 | |
mk = 0x0123456789abcdeffedcba9876543210 | |
# 加密 | |
cipher_num = encrypt(clear_num, mk) | |
hex(cipher_num)[2:].replace('L', '') | |
'681edf34d206965e86b3e94f536e4246' | |
# 解密 |
NewerOlder