Skip to content
forked from ptpt52/hstshack

HSTS Hack for fast bypass http to https

Notifications You must be signed in to change notification settings

Yuanyiis/hstshack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hstshack

HSTS Hack for fast bypass http to https

没有备案的主机,在阿里云腾讯云上发布web服务,会被云服务商防火墙劫持;这个模块帮助您突破这种劫持,直接把HTTP 80 请求重定向到HTTPS 443。

Install && Run

Install essential packages

sudo apt-get install build-essential
sudo apt-get build-dep linux-image-`uname -r`

Get the source code

git clone https://github.com/ptpt52/hstshack.git

Build and run

cd hstshack
make
sudo insmod ./hstshack.ko

By default it redirect via html javascript, if you want to redirect via hsts, please run:

echo hsts_host=example.com | sudo tee /dev/hstshack_ctl

更新:

2019-05 腾讯云已经更新了拦截方式,这个方法已经失效,其他云没有测试过,悉知。

About

HSTS Hack for fast bypass http to https

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.0%
  • Makefile 3.0%