作者归档:superaj

Cloudflare ZeroTrust WARP+ 玩法记录

折腾了一下cf的ZeroTrust零信任,warp两种玩法

方法1.是替换序列号,序列号可以用TG机器人@generatewarpplusbot生成,嫌麻烦也可以直接购买

方法2,开通CF的ZeroTrust零信任,也可以白嫖流量,这里只讨论Cloudflare零信任的玩法.

# 前言

零信任需要从1.1.1.1装一个warp的客户端。

# 原理

cf用自己的cdn节点做代理访问。

# 全局代理配置

客户端直接从https://1.1.1.1/ 这里下载对应平台的软件即可。

需要一个cloudflare账号,最好不要用自己的域名邮箱,用gmail,不然会让验证付款方式。

 

image.png

 

登陆进去点零信任的按钮。进去后会让你填你的组织名,随便填记住就行。套餐选择0元购就行,然后填信用卡的地方跳过(这个地方有风控,最好用老账号)。

然后setting-authentication

 

image.png

 

如下配置

 

image.png

 

App Launcher中是配置谁可以访问主页的地方,点击Rule-Add Rule,选项可以选择Value里面的Email end in (邮件后缀),后面填写你的域名邮箱地址,比如@coolaj.cn

 

image.png

 

然后点击warp client 配置客户端 settings/devices/edit

 

image.png

 

配置谁可以登陆零信任客户端,可以和authentication的一致即可

 

image.png

 

 

image.png

 

然后warp客户端中登陆零信任账户

 

image.png

 

输入你的组织名后会弹一个链接在浏览器

 

image.png

 

这里要输入和你上面warp client规则匹配的邮箱,输入验证码登陆即可。

 

image.png

 

验证成功后让你打开warp客户端,此时warp变成了这个样子

 

image.png

 

直接点链接就可以愉快的玩耍了.

每日更新9月24日羊了个羊修改第二关代码


重新打开小程序即可

{
  "rules" : [
    {
      "action" : "body",
      "matchField" : "",
      "field" : "",
      "value" : ":null,\"levelData",
      "matchValue" : "\\:\\{[\\s\\S]+levelData",
      "destiontion" : "response",
      "isRegex" : true
    }
  ],
  "enabled" : true,
  "name" : "小羊9月24日",
  "description" : "",
  "locations" : [
    {
      "method" : "GET",
      "scheme" : "https",
      "enabled" : true,
      "port" : 443,
      "query" : "",
      "host" : "cat-match-static.easygame2021.com",
      "path" : "\/maps\/b5b742de1506849f1c1cf2fd2d10dfce.txt"
    }
  ]
}

 

 

【优惠活动】Notion绑卡送1750刀

前言

Notion 是一个将笔记、任务管理和知识库相结合的跨平台协作工具,并具有 Markdown 支持,也可以通过大多数浏览器进行访问。Notion 的创始人 Ivan 是一位中国人,他在六七年前创立了 Notion。曾因一个版本的 Notion 不够稳定,解雇了全公司的员工。之后与联合创始人搬去了日本京都从头编程,才有了如今的 Notion。

国外的用户经常用这个公式形容 Notion:Notion = Google docs + Evernote + Trello + Confluence + Github + Wiki + Quip

最新活动

首先不限新老用户,绑定信用卡可获赠500$或者1000刀,并且绑定过程中不扣费!虽然不知道有啥用,但是白嫖啊,bujj已经冲了哈哈

关于卡类型,bujj只能说,预付卡都能过!

开始白嫖

1.登录注册 Notion

2.进入左侧导航栏的 Setting & Members

3.找到 Upgrade ,选择 Personal Pro 套餐更新。什么?你没有Upgrade侧边栏?请直接去第5步

4.绑定信用卡

弹出来的新界面里,首先填写左边的信用卡地址,然后信用卡信息,然后在右侧的 Coupon code 框内填入优惠码:500$码子:ADALOVELACE 或者 【补充:1000刀码子 STARTUP1000P666 可以在第五步里叠加一下,一共是1500$ 】,点击 Apply 按钮,即可在下方看见有 500$ ,然后更新到个人高级版就行了,整个绑定过程不会扣费,大胆撸

5.老用户直接享受1500$

呐,因为你之前就升级了啊,不用在升级时候从赠金里扣费了,就是到 billing  里,有个Apply coupon  点进去应用优惠码即可

6.领完$1500刀后,升级Team,再吃一个码子 HAPPYHOUR250刀,然后降级即可

利用宝塔搭建一个反代telegraph的图床

1.下载 pic

2.解压部署到你的网站

3.修改API.php

#17行替换pic.coolaj.cn为你的网址
#30行替换pic.coolaj.cn为你的网址

4.添加nginx反向代理

    location /upload {
                add_header Access-Control-Allow-Origin *;
                add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
                add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
                if ($request_method = 'OPTIONS') {
                	return 204;}
                proxy_pass https://telegra.ph/upload;
    }
    location /file {
                proxy_pass https://telegra.ph/file;
    }
    client_max_body_size 5m;

 

5.Enjoy it!

Oracle甲骨文重装系统出现Error, Not found interfaces config.解决办法

#先切换到root权限
sudo -i
运行:
#Debian/Ubuntu:
apt-get update
#RedHat/CentOS:
yum update
#确保安装了所需软件:
#Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file
#RedHat/CentOS:
yum install -y xz openssl gawk file

DD发现错误,出现 Error, Not found interfaces config

#ssh运行下面 两个命令就可以dd了
#命令1
mkdir /etc/network/interfaces.d
#命令2
echo "# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens3
iface ens3 inet dhcp

" > /etc/network/interfaces

 

附DD脚本:

# DD Windows7 sp1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win7_sp1_64_Administrator_nat.ee.gz'

# DD Windows8.1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win8.1_64_Administrator_nat.ee.gz'

# DD Windows10 2016LTSB 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win10_2016LTSB_64_Administrator_nat.ee.gz'

# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'

# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2012R2_64_Administrator_nat.ee.gz'

 

Get.online 免费注册一年.online后缀域名

本次活动由Blogosphere社区联合Get.online举办,为Blogosphere 社区的成员提供一年免费.online域名!

无需验证信用卡,无需验证电话号码!目前来看没有出现风控!续费原价!

注册地址
https://get.online/

折扣码
BLOGOSPHERE

操作步骤
Ⅰ. 选择自己心仪的域名,添加购物车,然后去结算!

Ⅱ. 结算时移除域名隐私保护,添加折扣码:BLOGOSPHERE

Ⅲ. 注册账号。然后即可购买!

管理域名
域名管理面板:https://manage.get.online/servlet/ListAllOrdersServlet?formaction=listOrders

Debian10给VPS添加IPV6访问可解锁Netflix以及解除google验证码(内核级)

——————————— debian初始化——————————— 

wget http://coolaj.cn/tools/Debian10.list

sudo mv Debian10.list /etc/apt/sources.list

sudo apt update && sudo apt upgrade -y

apt install libgd3 libgd-dev -y

apt install gcc automake autoconf libtool make -y

 

——————————— WGCF安装——————————— 

#弄个文件夹方便管理相关文件

mkdir wgcf

cd wgcf

#下载对应程序

wget -O wgcf https://github.com/ViRb3/wgcf/releases/download/v2.1.4/wgcf_2.1.4_linux_amd64

#添加执行权限

chmod +x wgcf

#注册WARP账户

./wgcf register

#生成WireGuard配置文件

./wgcf generate

sed -i "s/AllowedIPs = 0.0.0.0\/0//" wgcf-profile.conf

———————————  WGCF加载———————————

apt-get install sudo net-tools openresolv -y
#Debian添加unstable源
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' > /etc/apt/preferences.d/limit-unstable
#debian更新源并安装
apt-get update
apt-get install wireguard-dkms wireguard-tools
#加载内核模块
modprobe wireguard
#检查WG模块加载是否正常
lsmod | grep wireguard
cat wgcf-profile.conf >/etc/wireguard/wgcf.conf
#开启隧道
sudo wg-quick up wgcf
#关闭隧道
sudo wg-quick down wgcf
#查看是否显示V6IP
ifconfig

V2配置参考下方文章的六

CentOS7给VPS添加IPV6访问可解锁Netflix以及解除google验证码

CentOS7给VPS添加IPV6访问可解锁Netflix以及解除google验证码

一、安装wireguard-go

Github地址:https://github.com/WireGuard/wireguard-go

编译安装

一些需要的软件yum install -y wget git make

如果是debian/ubuntu:apt install -y wget git make

1.安装golang1.16

wget https://golang.org/dl/go1.16.1.linux-amd64.tar.gz

tar xvf go1.16.1.linux-amd64.tar.gz -C /usr/local

cat <<EOF >> /etc/profile

#golang env config

export GO111MODULE=on

export GOROOT=/usr/local/go 

export GOPATH=~/gopath

export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

EOF

source /etc/profile

 

2.拉取代码并编译

git clone https://git.zx2c4.com/wireguard-go.git

git checkout 0.0.20201118

cd wireguard-go

make

mv wireguard-go /usr/local/sbin

#下载编译好的二进制文件安装

#一些需要的软件yum install -y wget

#如果是debian/ubuntu:apt install -y wget

wget https://github.com/peng4740/wireguard-go-builder/releases/download/0.0.20201118/wireguard-go-linux-amd64.tar.gz

tar zxf wireguard-go-linux-amd64.tar.gz

mv wireguard-go /usr/local/sbin

rm -f wireguard-go-linux-amd64.tar.gz

 

二、安装wgcf

这个是用来生成warp配置的

Github地址:https://github.com/ViRb3/wgcf

安装

wget https://github.com/ViRb3/wgcf/releases/download/v2.2.2/wgcf_2.2.2_linux_amd64 -O /usr/local/sbin/wgcf

chmod +x /usr/local/sbin/wgcf

 

三、用wgcf生成配置

echo|wgcf register

wgcf generate

sed -i '/0\.0\.0\.0\/0/d' wgcf-profile.conf

#sed -i '/\:\:\/0/d' wgcf-profile.conf # 如果是IPV6VPS要添加IPV4则改用这个,上一条不要执行

mkdir -p /etc/wireguard

cp -f wgcf-profile.conf /etc/wireguard/wgcf.conf

 

安装wireguard-tools

CentOS7:yum install -y wireguard-tools

如果提示找不到包安装失败了可能是没有epel源,先安装yum install epel-release -y

其他系统其实也是差不多的

Debian、Ubuntu:apt install wireguard

没说到系统可参考官网教程:https://www.wireguard.com/install/

四、运行测试

1.启动

wg-quick up wgcf

#如果运行完就失联了(VPS的SSH终端没反应了)。先重启VPS,检查一下配置有没有问题。

#提示没有权限解决方案

vi /etc/sysctl.conf 

#修改disable_ipv6的所有变成0

#然后

/sbin/sysctl -p

 

当然,也不用太担心,如果你没漏掉什么步骤,一般是不会有事的。

2.测试

curl ipv6.ip.sb

 

如果能正常显示ip就正常

五、配置开机自启(务必要运行测试过后再配置)

systemctl enable wg-quick@wgcf

六、配置V2,增加ipv6的解析

1. "outbounds": 
2.         [
3.                 {"protocol": "freedom","tag": "direct","settings": {}},
4.                 {"protocol": "freedom","tag": "directv6","settings": {"domainStrategy": "UseIPv6"}},
5.                 {"protocol": "blackhole","tag": "blocked","settings": {}},
6.                 {"protocol": "freedom","tag": "twotag","streamSettings": {"network": "domainsocket","dsSettings": {"path": "/usr/local/etc/xray/ss","abstract": true}}}
7.         ],
8. 
9.         "routing": 
10.         {
11.                 "rules": 
12.                 [
13.                         {"type": "field","outboundTag": "directv6","domain": ["geosite:netflix","geosite:google"]},
14.                         {"type": "field","inboundTag": ["onetag"],"outboundTag": "twotag"},
15.                         {"type": "field","outboundTag": "blocked","ip": ["geoip:private"]},
16.                         {"type": "field","outboundTag": "blocked","domain": ["geosite:private","geosite:category-ads-all"]}
17.                 ]
18.         }