调查目的:了解当前各基于TLS的协议方案中ClientHello的指纹独特性。理论背景见 https://arxiv.org/abs/1607.01639 。
指纹数据库:
(利益相关:我是这个的作者)
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
127.0.0.1 ocsp-lb.apple.com.akadns.net | |
127.0.0.1 ocsp-cn-lb.apple.com.akadns.net | |
127.0.0.1 ocsp.apple.com.download.ks-cdn.com | |
127.0.0.1 k128-mzstatic.gslb.ksyuncdn.com | |
127.0.0.1 ocsp.apple.com.cdn20.com | |
127.0.0.1 ocsp.g.aaplimg.com | |
127.0.0.1 ocsp.apple.com | |
127.0.0.1 ocsp.digicert.com |
调查目的:了解当前各基于TLS的协议方案中ClientHello的指纹独特性。理论背景见 https://arxiv.org/abs/1607.01639 。
指纹数据库:
(利益相关:我是这个的作者)
If you have more you can still use this method (3 accounts per instance)
⚠ This guide is for the app available here: https://desktop.telegram.org/ not the one in the Mac/Windows App Store. For the Mac App Store app this should work: https://gist.github.com/Nachtalb/ec590dc974f6ba4674972d4937b230be/#gistcomment-3611415 ⚠
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
#!/usr/bin/env bash | |
# Brew | |
echo "Installing 🍺 Brew!" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo "eval $(/opt/homebrew/bin/brew shellenv)" >> ~/.zshrc | |
# Disable brew analytics | |
brew analytics off |
According to 12 factor app, the best way to configure things for deployment is through environment variables, not necessarily environment variable files, but just any environment variables. The problem is how to get environment variables into PHP. It is quite complicated depending on what you're doing.
The first step is to make sure you're using getenv
in PHP for environment variables as the $_ENV
array may not be set unless you set variables_order=EGPCS
in the INI settings. This is enough for command line PHP applications including the command line PHP server.
If you're running PHP through Apache either via mod_php or CGI, the only way is to use an .htaccess
file along the path from the index.php
to the document root and to use SetEnv NAME Value
directives. Or you put them into the Virtual Host block inside Apache configuration.
If you're using NGINX + PHP-FPM. You have 3 options:
""" | |
The most simple DNS client written for Python with asyncio: | |
* Only A record is support (no CNAME, no AAAA, no MX, etc.) | |
* Almost no error handling | |
* Doesn't support fragmented UDP packets (is it possible?) | |
""" | |
import asyncio | |
import logging |
/** | |
* Hash based KDF | |
* Implements RFC 5869 :: https://tools.ietf.org/html/rfc5869 | |
*/ | |
public class HKDF | |
{ | |
/** | |
* The HMAC algorithm provider | |
* @var MacAlgoritimProvider provided | |
*/ |
# Getting a random free tcp port in python using sockets | |
def get_free_tcp_port(): | |
tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
tcp.bind(('', 0)) | |
addr, port = tcp.getsockname() | |
tcp.close() | |
return port | |