This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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' | |
| # 解密 |
This file contains hidden or 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 my.crypto; | |
| import org.bouncycastle.util.encoders.Hex; | |
| import javax.crypto.BadPaddingException; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.IllegalBlockSizeException; | |
| import javax.crypto.NoSuchPaddingException; | |
| import java.math.BigInteger; | |
| import java.nio.charset.StandardCharsets; |
This file contains hidden or 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
| #include <iostream> | |
| /** | |
| * rc4初始化函数(init) | |
| * @param S | |
| * @param key 密钥key | |
| * @param key_len | |
| */ | |
| void rc4_init(unsigned char *S, unsigned char *key, unsigned long key_len); |
This file contains hidden or 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 my.crypto; | |
| import java.nio.charset.StandardCharsets; | |
| import java.util.Base64; | |
| /** | |
| * @ClassName Base | |
| * @Description Base64自定义加解密示例 | |
| * @Author Palmer | |
| * @Date 2022/2/3 |
This file contains hidden or 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 my.crypto; | |
| import javax.crypto.BadPaddingException; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.IllegalBlockSizeException; | |
| import javax.crypto.NoSuchPaddingException; | |
| import javax.crypto.spec.IvParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.nio.charset.StandardCharsets; |
This file contains hidden or 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 my.crypto; | |
| import javax.crypto.*; | |
| import javax.crypto.spec.DESKeySpec; | |
| import javax.crypto.spec.DESedeKeySpec; | |
| import javax.crypto.spec.IvParameterSpec; | |
| import java.nio.charset.StandardCharsets; | |
| import java.security.InvalidAlgorithmParameterException; | |
| import java.security.InvalidKeyException; | |
| import java.security.NoSuchAlgorithmException; |