Skip to content

Instantly share code, notes, and snippets.

View borgle's full-sized avatar

波哥 borgle

View GitHub Profile
@borgle
borgle / X-Apple-I-FD-Client-Info.js
Last active October 4, 2023 02:27
在访问 https://appleid.apple.com/account?&localang=CN-ZH 这个页面的时候,页面会ajax一个特殊的header请求,其中的X-Apple-I-FD-Client-Info信息是一个json对象,本gist是整理后的F值获取方式源码。
(function(m) {
function g(e) {
try {
if (navigator.plugins && navigator.plugins.length)
for (var t = 0; t < navigator.plugins.length; t++) {
var n = navigator.plugins[t];
if (n.name.indexOf(e) >= 0)
return n.name + (n.description ? "|" + n.description : "")
}
} catch (r) {}
<?php
namespace FatSmallTools;
class NavicatPassword
{
protected $version = 0;
protected $aesKey = 'libcckeylibcckey';
protected $aesIv = 'libcciv libcciv ';
protected $blowString = '3DC5CA39';
@borgle
borgle / ReadChromeCookies.py
Created April 20, 2022 11:24
读取 chrome 记录在 sqlite 里面的 cookie 记录
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" ReadChromeCookies.py: chrome cookie读取工具
__email__ = "wu@borgle.io"
__date__ = "2022-04-20"
__version__ = "1.0.0"
"""
import base64
@borgle
borgle / utils.py
Created March 9, 2022 06:02
交易日工具类
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""utils.py: 交易日工具
__email__ = "wu@borgle.io"
__date__ = "2021-12-21"
__version__ = "1.0.0"
"""
isolation.tools.getPtrLocation.disable = "TRUE"
isolation.tools.setPtrLocation.disable = "TRUE"
isolation.tools.setVersion.disable = "TRUE"
isolation.tools.getVersion.disable = "TRUE"
monitor_control.disable_directexec = "TRUE"
monitor_control.disable_chksimd = "TRUE"
monitor_control.disable_ntreloc = "TRUE"
monitor_control.disable_selfmod = "TRUE"
monitor_control.disable_reloc = "TRUE"
monitor_control.disable_btinout = "TRUE"
@borgle
borgle / check.bat
Created October 4, 2020 01:32 — forked from zu1k/check.bat
KMS脚本
@echo off
::配置BAT对话框样式
title KMS服务器检查脚本
MODE con: COLS=42 lines=8
color 0a
::检测vlmcs.exe
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
git branch --track ${branch##*/} $branch
done
git fetch --all
git pull --all
@borgle
borgle / centos7-pptp.sh
Last active August 23, 2018 06:40 — forked from yyang/centos7.sh
centos 7 pptpd firewalld
#!/bin/sh
#
# pptpd installation script on my own CentOS 7 box.
# inspired by: https://www.digitalocean.com/community/questions/how-to-install-pptp-vpn-on-centos-7
# and http://unix.stackexchange.com/questions/150837/redhat-centos-7-firewalld-best-practice-for-pptp-or-l2tp-ipsec-rules
#
# Author: 2015 Steve Yang <me@iyyang.com>
# The script comes with ABSOLUTELY NO WARRANTY.
@borgle
borgle / init_private_network.sh
Created April 6, 2018 08:18
A shell for vultr private network
#!/bin/bash
private_network() {
local PRIVATE_IP=$1
if [ -f '/etc/sysconfig/network-scripts/ifcfg-eth1' ]
then
ifdown eth1 > /dev/null 2>&1
fi
cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
@borgle
borgle / extract-jdk-from-installer.cmd
Last active December 25, 2017 07:41
从jdk安装文件中提取文件的批处理脚本,只需要一个额外的 7z.exe 就可以了。
@echo off
rem ---------------------------------------------------------------------------
rem name : extract script for the jdk installer
rem author : yoker.wu@gmail.com
rem date : 2017/12/21
rem ---------------------------------------------------------------------------
set CURDIR=%cd%
set BIN7Z=%CURDIR%\7z\7z.exe