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 <Windows.h> | |
| #include <iostream> | |
| #include <TlHelp32.h> | |
| #include <string> | |
| WCHAR module_path[MAX_PATH + 1]; | |
| // case insensitive | |
| DWORD GetPIDByName(LPCWSTR name) | |
| { |
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 io | |
| import typing | |
| # from . import convention | |
| class convention: | |
| pass | |
| convention.i32 = 0x7f | |
| convention.i64 = 0x7e | |
| convention.f32 = 0x7d |
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 multiprocessing import Pool, Manager | |
| import os | |
| import subprocess | |
| import pickle | |
| import signal | |
| def big_query_info_analysis(arg): | |
| res_list, result_queue = arg | |
| for res in res_list: | |
| key, value = do_something() |
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
| PROGRESS_FILENAME = f"{BRAND}.progress" | |
| # 全局状态,通过pickel实现持久化 | |
| GLOBAL_STATE = { | |
| 'progress': set(), # filenames that finished analyzing | |
| 'stats': dict() # 从文件名映射到一个Tuple,依次是分析时间,返回值 | |
| } | |
| def set_exc_hook(path): | |
| import sys | |
| def my_except_hook(exctype, value, traceback): |
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
| # /etc/systemd/system/frpc.service | |
| [Unit] | |
| # 服务名称,可自定义 | |
| Description = frp client | |
| After = network.target syslog.target | |
| Wants = network.target | |
| StartLimitIntervalSec=0 | |
| [Service] | |
| Type = simple |
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
| #!/bin/bash | |
| # creates a symbolic link from bin-x.x to bin | |
| # This just strips off last 3 characters when creating a link | |
| LLVMFILES=/usr/bin/llvm* | |
| CLANGFILES=/usr/bin/clang* | |
| LLC=/usr/bin/llc-17 | |
| OPT=/usr/bin/opt-17 | |
| LLD=/usr/bin/lld-17 |
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 struct | |
| import sys | |
| def parse_hex_data(file_path): | |
| entries = [] | |
| try: | |
| with open(file_path, 'rb') as f: | |
| data = f.read() | |
| if len(data) < 4: |
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
| #!/bin/bash | |
| export HTTP_PROXY=http://10.12.190.56:8010 | |
| export HTTPS_PROXY=http://10.12.190.56:8010 | |
| if [ $# -ne 1 ]; then | |
| echo "用法: $0 <image_name[:tag]>" | |
| exit 1 | |
| fi |
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
| #!/bin/bash | |
| cd /tmp | |
| # argument 1 local url | |
| # argument 2 port | |
| if [ -z "$1" ]; then | |
| echo "Please give the script first argument: IP:port to the http site. Do not add http:// prefix. For example: ./wrap-https.sh 127.0.0.1:7865 5002" | |
| exit -1 | |
| fi |
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
| #!/bin/bash | |
| set -e | |
| # 每3分钟循环检测 | |
| while true; do | |
| running_containers=$(docker ps -q) # 获取所有正在运行的容器ID | |
| if [ -z "$running_containers" ]; then | |
| echo "没有正在运行的容器,跳出循环" |
OlderNewer