原创 python 函數庫記錄

from binascii import b2a_hex, a2b_hex a2b_hex     hex 轉bytes b2a_hex     bytes 轉hex   from Crypto.Cipher import AES

原创 EWS 接口SSL多版本支持

在程序中添加如下代碼即可: System.Net.ServicePointerManager.SecurityProtocol = SecurityProtocolType.Tls |         SecurityProtocol

原创 TCP 代理接收數據阻塞問題解決方案

TCP 代理轉發數據示意圖如下:                  Client <--------------------------->TCP Proxy <---------------------------->Server Cl

原创 python 中 cx_Oracle 的使用

1. pip install cx_Oracle 2. 安裝oracle instantclient https://www.oracle.com/database/technologies/instant-client/download

原创 關於kali-linux-2019.4 VMWare 安裝和亂碼問題

  1. 安裝可以參考文章: https://blog.csdn.net/David_Tang0617/article/details/104250743 2. 亂碼問題可以參考: https://www.cnblogs.com/hign

原创 使用Github作爲遠程倉庫(基於SSH)

1. 先在本地生成.SSH key:    CMD 切換到路徑 c:\users\xxx\.ssh\  => ssh-kegen -o        這裏建議不要設置passphrase, 否則每次推送拉取都需要輸入密碼,太麻煩,當然如果

原创 rundll32 調用帶字符串指針的函數

rundll32調用函數的規則爲: rundll32    dll_path,func_xxx param_1 param_2 param_3 ... 假設param_1 是一個字符串指針, 首先 rundll32會去尋找名稱是func_

原创 右鍵添加打開命令行窗口,管理員命令行窗口

Windows Registry Editor Version 5.00 ; 將此內容保存爲xxx.reg,UNICODE編碼(BIN以FF FE打頭) ; 若原先有,先刪除原來的 [-HKEY_CLASSES_ROOT\Director

原创 spring boot 開啓 HTTPS

step 1: 創建一個證書: keytool -genkey -alias tomcat -keyalg RSA -keystore  /root_dir_of_project/***/****/server.keystore 會要求

原创 JAVA AES 解密 出現密鑰長度非法

該問題是由於美國對軟件出口有限制,默認只支持128bit的密鑰。 解除該限制的方法如下: 下載https://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2

原创 pyinstaller 和python 3.8 不兼容

用Pyinstaller 打包程序時出現錯誤: Building PYZ because PYZ-00.toc is non existent .... TypeError: an integer is required (got typ

原创 Windows python3.7 下無法安裝pycrypto

在windows 下使用pip 安裝pycrypto 時報錯: warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. error:

原创 Ubuntu/Kali 更新源

Ubuntu: 參考 https://blog.csdn.net/qq_35451572/article/details/79516563 1. sudo cp /etc/apt/sources.list /etc/apt/sources

原创 讓vc項目 支持.asm類型並指定編譯器爲Microsoft Micro assembler

VC 在x64項目中不支持_asm 內嵌彙編,可以使用混合編譯。將要實現的函數用匯編編寫,指定後綴.asm。 右擊項目,點擊Build Customizations..., 勾選masm。 右擊.asm 文件,指定文件的類型爲Micros

原创 maven 打包 marshalsec 出現的相關錯誤解決辦法

1. 報錯 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on proje