Giter Site home page Giter Site logo

fscarmen / warp_unlock Goto Github PK

View Code? Open in Web Editor NEW
676.0 7.0 170.0 181 KB

WARP unlock stream media one-click script. Support IPv4, IPv6 or dual-stack CloudFlare WARP network interface and Socks5 proxy . WARP 解锁流媒体一键脚本

Shell 98.38% Dockerfile 1.62%
warp socks5 netflix disneyplus crontab warpscript unlock docker wgcf telegram

warp_unlock's Introduction

【刷 WARP IP】 - 为 WARP 解锁流媒体而生

Born to make stream media unlock by WARP


目录


更新信息

2023.7.4 1.13 Wireguard-go-reserved supports changing IP; Wireguard-go-reserved 支持更换 IP

2023.6.28 1.12 Wireproxy dual-stack supports changing IP; Wireproxy 模式双栈支持更换 IP

2023.6.26 1.11 1. Warp-go uses the official api to register and cancel accounts; 2. Client proxy mode dual-stack supports changing IP; 3. Client warp mode dual-stack supports changing IP 1. warp-go 使用官方 api 注册和注销账户; 2. Client proxy 模式双栈支持更换 IP; 3. Client warp 模式双栈支持更换 IP

历史更新 history(点击即可展开或收起)

2023.3.26 1.10 Upgrade the Netflix unlocking section; 升级解锁奈飞的部分

2022.9.16 1.09 Support change IP for warp-go mode; 支持 warp-go 模式下更换 IP

2022.4.9 1.08 Support change IP for Client WARP mode; 支持 Client WRAP 模式下更换 IP

2022.4.2 1.07 1. Support change IP for WireProxy; 2. Add Misaka one-key warp. 1. 支持 WireProxy 更换 IP; 2. 新增 Misaka WARP 一键脚本

2022.2.23 1.06 1. Add two modes to unlock: systemd service and pm2 daemon; 1. 增加两个解锁模式: systemd 服务和 pm2 进程守护

2022.2.20 AC 交叉编译(cross-compilation)上传镜像,支持 AMD64、 ARM64 和 s390x

2022.2.15 Happy Lantern Festival. Bring you a new experience of docker unlock, another way to unlock Netflix. Project based on alpine. Content wgcf and unblocking Netflix scripts. Change unlock warp ip automatically. Provide a socks5 proxy for the host. Thanks Oreo ,Coia Prant and Brother Big B
元宵节快乐。为大家带来个 docker 解锁的全新体验,换个姿势解锁 Netflix。项目以 alpine 为基础系统,内含 wgcf 和解锁 Netflix 脚本,自动切换解锁 WARP IP,为宿主机提供 socks5 代理,感谢 "猫佬"、"Coia Prant"和"大B哥"

2022.2.2 1.05 1. Support switch unlock modes and stream media freely; 2. Remove ASN information. Add icon in TG push; 3. Limit the log to 1000 lines; 1. 轻松地切换解锁模式和流媒体平台; 2. 去掉日志里的线路供应商信息,在 TG push 里加入icon; 3. 限制日志在1000行

2022.1.31 1.04 1. Support push the logs to Telegram. 1. 日志结果输出到 Telegram.

2022.1.30 1.03 1. Suppport pass parameter. You can run like this:bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -E -A us -4 -N nd -M 2; 2. Improve log details

  1. 支持传参,你可以这样运行脚本: bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -E -A us -4 -N nd -M 2; 2. 日志显示更详细

2022.1.29 1.02 1. Support Disney+ 1. 支持 Disney+

2022.1.28 1.01 1. Add two ways to unlock; 2. Add running logs file 1. 增加两种解锁方式; 2. 加入运行日志

2022-01-31 21:27:35.    IP: 8.37.43.216         Country: Japan        Script runs.
2022-01-31 21:27:35.    IP: 8.37.43.216         Country: Japan        Netflix: No.
2022-01-31 21:27:56.    IP: 8.37.43.188         Country: Japan        Netflix: No.
2022-01-31 21:28:15.    IP: 8.37.43.192         Country: Japan        Netflix: No.
2022-01-31 21:28:38.    IP: 8.37.43.229         Country: Japan        Netflix: Yes.
2022-01-31 22:28:40.    IP: 8.37.43.229         Country: Japan        Script runs.
2022-01-31 22:28:42.    IP: 8.37.43.229         Country: Japan        Netflix: Yes.

beta 2022.1.26 Media unlock daemon. Check it every 5 minutes. If unlocked, the scheduled task exits immediately. If it is not unlocked, it will be swiped successfully in the background. Advantages: Minimized use of system resources. Disadvantage: Can't see the results as intuitively as screen

脚本特点

  • 支持多种主流串流影视检测,可以单选或多选

  • 支持 warp socks5 / interface 检测和更换 IP

  • 日志输出

  • 多种方式解锁: 1.crontab 每 5 分钟检测一次状态; 2. screen 后台运行; 3. nohup & 后台运行; 4. systemd service 进程守护; 5. pm2 daemon 进程守护

    Mode
    模式
    Dependencies
    依赖
    Resident Process
    常驻进程
    Maximum detection interval time
    最大检测间隔时长
    recommendation
    推荐度
    1 crontab 5 min ⭐⭐⭐⭐⭐
    2 systemd 60 min ⭐⭐⭐⭐
    3 nohup 60 min ⭐⭐⭐⭐
    4 screen screen 60 min ⭐⭐⭐
    5 pm2 node npm pm2 60 min ⭐⭐

VPS 运行脚本

1.菜单方式 (menu)

bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh)

2.带参数 (pass parameter)

paremeter 参数 value 值 describe 具体动作说明
-E English 英文
-C Chinese 中文
-U Uninstall 卸载
-M 1 Mode 1: detect every 5 minute 每5分钟检测
-M 2 Mode 2: run by systemd 以 systemd 方式运行
-M 3 Mode 3: run by nohup & 以 hup & 方式运行
-M 4 Mode 4: run by screen 以 screen 方式运行
-M 5 Mode 5: run by pm2 daemon 以 pm2 进程守护方式运行
-A ** region abbreviation,such as us. 地区简码,如 us
-N n Unlock Neflix 解锁奈飞
-N d Unlock Disney+ 解锁迪士尼
-N ud Unlock Neflix and Disney+ 解锁奈飞和迪士尼
-T Token@ID@Name Receive messages Bot 接收信息的 TG bot 信息

For example 1: Language is Chinese. Unlock area is Singapore. Brush WARP IPv4. Unlock Netflix and detect every 5 minute when successed. Receive message to 举例1: 用中文,解锁新加坡奈飞,当成功的时候每5分钟检测一次,

bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -C -A sg -4 -N n -M 1 -T 1730133Uu5:AAF33T7sWPB8cGu31-QoaUkjdkjzeRo1_m8@1254502669@unlock

For example 2: Display and uninstall in English 举例2: 用英文卸载

bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -E -U

TG bot 创建方法

转自 北纬37度的大飛 如何申请Telegram机器人 | 推送通知

Docker 自动解锁方案

  • 支持 AMD64 和 ARM64 机器
  • Docker 以 alpine 为底包,内置 WGCF
  • 每 5 分钟检测一次状态,TG 通知输出
  • 容器内 gost 为宿主机提供 socks5 或者 http 服务,端口为 40000,可以在xray/v2ray 配置文件里作相应设置
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/docker.sh)

先安装 Docker, 其 IP 为 172.17.0.2 ,获取docker exec -it wgcf ip route get 172.17.0.1 | grep -oP 'src \K\S+' 并安装 mack-a 八合一脚本。编辑 /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json

{
    "outbounds": [
        {
            "protocol": "freedom"
        },
        {
            "tag": "media-unlock",
            "protocol": "socks",
            "settings": {
                "servers": [
                    {
                        "address": "172.17.0.2",
                        "port": 40000,
                        "users": []
                    }
                ]
            }
        }
    ],
    "routing": {
        "domainStrategy": "AsIs",
        "rules": [
            {
                "type": "field",
                "domain": [
                    "geosite:netflix"
                ],
                "outboundTag": "media-unlock"
            }
        ]
    }
}

鸣谢下列作者的文章和项目

互联网永远不会忘记,但人们会。

技术文章和相关项目(排名不分先后):

服务提供(排名不分先后):

warp_unlock's People

Contributors

dependabot[bot] avatar fscarmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

warp_unlock's Issues

SG netflix 解锁检测失效

SG的机器上实测已经刷出可用ip,但是脚本仍然检测失败并继续刷IP。US的机器工作正常。

关于增加telegram_bot通知解锁状态的提议 -【结论:2022.1.31 1.04 1. Support push the logs to Telegram. 1. 日志结果输出到 Telegram.】

感谢大佬的脚本。想提个建议,能不能考虑加个配置telegram_bot通知(或其他形式的通知),解锁失败了发通知,然后自动刷ip刷成功了再通知。要是一定时间间隔后(比如10分钟)还没收到刷ip成功的通知,那我考虑人工介入。因为不成功的话一直刷ip,可能会影响到wgcf用作代理的使用。

更改ip

如果可行,请更改区域IP? 它总是让我失败,问候和感谢这个工具
image

Docker中检查脚本不能正常运行

进入容器后

PID   USER     TIME  COMMAND
    1 root      0:00 {busybox} ash ./run.sh
   89 root      0:00 crond
   90 root      0:02 ./gost -L :40000
 1443 root      0:00 bash
10055 root      0:00 ps aux

手工执行bash /etc/wireguard/warp_unlock.sh

1.行11.
找不到timedatectl set-timezone Asia/Shanghai

2.行12.
判断进不去.
$(pgrep -laf ^[/d]*bash.*warp_unlock | awk -F, '{a[$2]++}END{for (i in a) print i" "a[i]}')
打印结果为3

MacOS Support?

i'm currently using WARP+ as my vpn service to access censored websites, but it has varioud problems such as cannot access to websites like chatgpt because of IPv6 that it's providing and getting restricted because of living in iran.

i used your service for changing ip automatically for netflix and it done well and i want to know is there any way to use this script on mac os.

请问docker版如何启用warp ipv6?

脚本改成加"-6":
docker run -dit --restart=always --name wgcf --sysctl net.ipv6.conf.all.disable_ipv6=0 --device /dev/net/tun --privileged --cap-add net_admin --cap-add sys_module --log-opt max-size=1m -v /lib/modules:/lib/modules -v $WGCF_DIR:$WGCF_DIR fscarmen/netflix_unlock:latest -6

好像也没效果

没有指定的warp方式

vps已经手动配置过warp了,v2ray配置了分流,解锁了奶粉,但是没有解锁迪士尼,所以想通过你的脚本更换一个IP,但是运行脚本却提示这个。

Unlocking Netflix not working any more

Hi

I've been using your scripts for some time, and they were ok. However, couple of days ago, it stopped unlocking Netflix with status "No 😰".

At first, I thought it was a bandwidth limitation and tried applying a license, but unfortunately that is not the case. I tried the script on multiple servers from several datacenters and no lock.

Am I doing something wrong or is there a problem?

Docker模式下丢包高,网络掉连接。-【结论:换 IP 的时候会使网络不稳定的,因为机制是不停的停止和重启 WARP】

多次尝试发现即使全新VPS使用Docker初始化后,出现网络5秒掉连接和高ping问题。初步排查可能是wireguard接口和docker内的网络冲突导致。可以用一下命令修复,重启Docker网络后恢复正常。

系统: Ubuntu 20.04 TLS

修复命令:
pkill docker
iptables -t nat -F
ifconfig docker0 down
systemctl restart docker.service

望作者大大排查一下脚本或者添加修复命令!

生成的脚本48行出现cb,运行时没找到这个命令

系统:AlmaLinux 8.5 (类似RHEL 8.5)

中文,刷socks5 ip,用screen刷netflix时出现

/etc/wireguard/warp_unlock.sh: line 48: cb: command not found

然后查看了/etc/wireguard/warp_unlock.sh这个脚本发现第48行确实有一个cb命令,应该是个无效命令。

貌似ARM机型不正常-【结论:宿主机 Linux 内核4.19过旧。两个处理办法:1.升级宿主机内核到5.6或以上;2.docker 安装wireguard-go(注意要是arm64版本以适配)】

warp不能工作
root@debian:~# docker logs -f wgcf
[#] ip link add wgcf type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wgcf
Cannot find device "wgcf"
crond[19]: crond (busybox 1.34.1) started, log level 8
2022/03/20 19:10:39 route.go:650: auto://:40000 on [::]:40000

bash-5.1# ps -T | grep warp
71 root 0:00 grep warp

docker 方式安装 IP 获取的是本机 IP

我使用 docker 方案安装

docker ps -a
....
2e6c3b487f3b fscarmen/netflix_unlock:latest "/bin/sh -c ./run.sh" 46 minutes ago Up 10 minutes wgcf

docker exec -it wgcf ip route get 172.17.0.1 | grep -oP 'src \K\S+'
172.17.0.2

curl ifconfig.me --proxy socks5://172.17.0.2:40000
43.xx.xx.xx

warp脚本的奈飞解锁功能一直显示NO-【结论:上游 lmc999 更改了奈飞部分,已经处理,用户通过 warp-go 的 IPv6 在 LA和 HK的机器上成功解锁】

2
1
3

作者你好,
最近解锁奈飞的脚本好像出了点问题

解锁可以分为选项6和选项11
1:如果选择6,解锁奈飞的IP可以在几次内解锁成功,并且验证确实解锁成功了,成功率非常高。
2:选择11,无论在里面选择模式1或者模式2(其他模式没用过),一直一直显示NO,最近一直没有YES过,我以为自己的VPS的问题,换了好几个地区都一样。
3:模式11刷IP的过程中,部分IP显示解锁NO,但通过其他方式验证,实际上这个IP是解锁了的。
4:小白私心请教个问题,如果选择选项6,解锁奈飞成功后,我ctrl+c退出了当前脚本,那这个脚本会在后台1小时后继续执行解锁任务?还是被我ctrl+c彻底关掉停止工作了了?我哪天需要解锁的时候又得再手动去解锁一次吗?

关于更换地区

VPS是【US】,在选择地区是选择其他如【JP】,更换地区时则会一直刷到【US】地区的IP且一直解锁失败,请问一下目前是只能选择VPS所在的地区吗

Disney 解锁问题

image
按脚本进行解锁。 Netflix可以测试通过解锁,Disney测试通过,但是还是无法登陆

解锁问题

ip刷出来说解锁但是我去检测却没解锁<!-Screenshot_20221117_222137.jpg

选择1刷新后 没有运行,也没有输入result.log

貌似最近和warp-go 不兼容了。 不知道改了哪些东西

系统 AlmaLinux, centos, 8.7,

1 使用你的脚本 用 https://github.com/fscarmen/warp 安装warp-go 后 , 然后选6刷新Netflix 直接显示 已经解锁 但程序卡住 没有正常退出

显示如下
当前 Netflix 地区是:JP,需要解锁当前地区请按 y , 如需其他地址请输入两位地区简写 (如 hk ,sg,默认:JP):
2023-01-22 22:50:11 区域 JP 解锁成功,IPv6: 2a09:bac1:3b40:120::16:19c 日本 Cloudflare,1 小时后重新测试,刷 IP 运行时长: 0 天 0 时 0 分 3 秒

然后程序一直卡住 没有正常退出 . 而且实际用其他脚本测试 并没有解锁非自制剧。

README 里面 的 bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/tools/main/warp_crontab.sh)
地址也是错误的

2 用本项目 之前可以正常运行 最近一个月 选择 1 crontab模式 脚本貌似没有运行 , 同时也没有输出 /root/result.log
手动运行 bash /usr/bin/warp_unlock.sh 也没有任何输出 /root/result.log (这里最好能把日志输出到命令行 否则不知道什么问题)

/usr/bin/warp_unlock.sh 是正常存在的

3 crontab 模式好像修改的是 /etc/crontab 文件 。 但不同系统默认不是这个位置, 例如debian是 /var/spool/cron/crontabs/.
直接修改 /etc/crontab 好像并不能立即生效

添加 crontab 可以用
crontab -l | { cat; echo "0 0 0 0 0 some entry"; } | crontab -

(crontab -l ; echo "0 * * * * your_command") | sort - | uniq - | crontab -

https://stackoverflow.com/questions/4880290/how-do-i-create-a-crontab-through-a-script
https://stackoverflow.com/questions/610839/how-can-i-programmatically-create-a-new-cron-job

总结问题就是刷新Netflix 脚本目前运行有问题, 没有正常运行。

docker方式部署的sock5代理IP变更导致的无法连接

背景:docker方式部署,xray使用docker的sock5作为outbound
问题:由于docker容器可能重启,VPS机器也会不时重启,重启时如果docker不止一个容器,sock5 ip可能会变更,比如原本脚本ip是172.17.0.2,重启后可能会变更为172.17.0.3,导致需要手动调整xray的outbound配置,对于我全部流量都走warp就会导致断网
解决建议:能否在docker的启动参数中加入“ --net bridge --ip 172.17.0.10”达到固定ip的作用

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.