标签 脚本 下的文章

没啥技术含量
只集合了自己常用的几款软件
只负责收集,脚本全是其他大佬写的
只适合懒人和新手玩。大佬勿喷

加速系列:Bbr系列、KCPtun、锐速
代理系列:V2ary、ssr、Tg专用代理、Goflyway
性能测试:superbench、回程线路测试
监控系列:云监控(status)
DD系列:傻瓜式一键DD包

食用方法

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/hj/master/hj.sh && chmod +x hj.sh && bash hj.sh

Google Voice是谷歌推出的一款虚拟美国手机号码,通过Google Voice可以方便的完成很多本来很折腾的事情。但是Google Voice要求每隔一段时间就需要使用一次,不然将会被取消号码。往常都是通过手动收发短信来避免被取消,现在通过KeepMyGoogleVoice可以实现配置后,每月自动发短信给CloudFlare查询网站的IP来实现保活。

github地址:https://github.com/uselibrary/KeepMyGoogleVoice

一键脚本及配置:

wget --no-check-certificate -O gv.sh https://raw.githubusercontent.com/uselibrary/KeepMyGoogleVoice/master/gv.sh && chmod +x gv.sh && bash gv.sh

完成安装后,手动将你的账号和密码输入到/root/gv.py中,具体位置如如下:

voice.login(email='[email protected]', passwd='xxxxx')

不建议CentOS 7,可能存在兼容性问题。同时,如果任意方法都无法登录Google Voice,尤其是当出现类似googlevoice.util.LoginError的错误提示,建议前往 https://accounts.google.com/DisplayUnlockCaptcha 检查是否开启了安全验证,而导致的账号被风控。

操作与说明
KeepMyGoogleVoice是使用Python脚本自动发送短信给cloudflare来实现保活Google Voice。默认情况下,将发送一条短信到8336721001查询baidu.com的IP。如果你想修改,可以在执行完一键脚本后,更改/root/gv.py中的phoneNumber和text内容。

支持的系统版本:Debain 9/Ubuntu 16.04+/CentOS 7(不建议CentOS 7,可能存在兼容性问题。另外,部分账号存在被Google风控的现象,可以前往https://accounts.google.com/DisplayUnlockCaptcha检查。)

执行此脚本后,对于CentOS 7将自动安装python3.6和pip3;对于Debain 9/Ubuntu 18.04+将自动安装python3和python3-pip。

一键脚本如下,安装过程中需要输入google账号和密码。

wget --no-check-certificate -O gv.sh https://raw.githubusercontent.com/uselibrary/KeepMyGoogleVoice/master/gv.sh && chmod +x gv.sh && bash gv.sh

完成安装后,手动将你的账号和密码输入到/root/gv.py中,具体位置如如下:

voice.login(email='[email protected]', passwd='xxxxx')

仅当一键脚本无法正常使用是才参考此项
如果上述一脚脚本无法执行,可以手动安装。执行以下命令,手动输入Google账号和密码,并通过crontab将其设置为每月执行一次。

并且,对于CentOS 7 执行以下命令

  yum -y install epel-release
  yum -y install python36
  yum -y install python36-setuptools
  easy_install-3.6 pip
  pip3 install googlevoice

对于Debian 9/Ubuntu 16.04+ 执行以下命令

  apt install python3
  apt install python3-pip
  pip3 install googlevoice

出自:https://pa.ci/92.html

前言:
很多时候,我们为了给VPS加速,会选择不同的方式,比如BBR、锐速等,但单独BBR目前就有普通版、魔改版和plus版,加上锐速,无疑需要很多的脚本,这样在安装上也非常的不方便,而最近,loc论坛的网友又发挥了超人的实力,整出了一个集合BBR、BBR魔改、BBR plus、锐速四合一的脚本,给我们安装提供了极大的方便。

项目地址:
https://github.com/cx9208/Linux-NetSpeed
简介:

本脚本支持KVM架构的VPS,不支持OpenVZ,

在vultr上 Centos 7, Debian 8/9, Ubuntu 16/18测试通过

安装命令:

wget "https://github.com/chiakge/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

部分如果提示连接不上github。可以先安装

yum install net-tools -y  或者 apt-get install net-tools -y

如果没有wget,比如搬瓦工vps,可以先安装wget

yum -y install wget

执行如何提示证书错误的话

yum -y install ca-certificates

或者

apt-get -y install ca-certificates

说明:

  1. 先在[1 - 3]切换内核(第一次显示为bbr内核也要切换一遍),重启
    出现这个选no
  2. 重启后不用再下载脚本,直接 ./tcp.sh ,在[4 - 8]中选你要开的加速
    "1. 安装 BBR/BBR魔改版内核" 对应4,5,6(原版,魔改,暴力魔改)
    "2. 安装 BBRplus版内核 " 对应7(plus)
    "3. 安装 Lotserver(锐速)内核" 对应8(锐速)
  3. 开启后再 ./tcp.sh , 显示开启成功则启动成功,你也可以自己手动确认

全球小号主机论坛,每天可以通过访问用户空间的形式增加20积分【光明正大0贴水上元老神仙】,有各路大佬早就做好了各种刷分脚本python 啊php啊各种各样。

这里记录一下可在论坛开启防cc的模式下刷分签到的php脚本。做一个备份。【并不可以,没有设置时间间隔,建议调整时间间隔或者设置不同时间段的多个任务】

宝塔面板直接新建空白文件,填入文件名,进行编辑,默认格式UTF-8

以UTF-8格式进行编辑,建立php文件,比如文件名叫
hostloc.php

填入代码如下文【最后面】。

同样以UTF-8格式进行编辑,建立id.txt,这里是填写账号密码用的,每行一个,格式:

用户名#密码

将这两个文件放在同一个路径下,比如我放在/media/locsign里面。

随后在设置定时访问就行了,无论宝塔新建计划任务,还是直接添加crontab任务。

宝塔新建定时任务的话就点击计划任务,然后

任务类型:Shell脚本
任务名称:随意填写
执行周期:每天,然后时间自定义
脚本内容填写:

php /media/locsign/hostloc.php

然后每天就可以自动访问hostloc签到刷分了。如果今天还没刷过,就直接点执行就好了。

添加crontab定时的话,比如每天1点签到,则终端输入:

crontab -e

按a在当前光标右边添加文本。
然后将以下粘贴至终端,按ESC,输入:wq保存退出

0 1 * * * php /media/locsign/hostloc.php >> /media/locsign/hostloc.log 2>&1

php刷分脚本

<?php

$cookie_name = $cookie_val = '';

$lines = file(dirname(__FILE__).'/id.txt');
foreach($lines as $line){
    list($username, $password) = explode('#', $line);
    $username = trim($username);
    $password = trim($password);

    if(empty($username) || empty($password)){
        continue;
    }

    $suburl = "https://www.hostloc.com/member.php?mod=logging&action=login";
    $loginInfo = array(
            "username" => $username,
            "password" => $password,
            "fastloginfield" => "username",
            "quickforward" => "yes",
            "handlekey" => "ls",
            "loginsubmit" => true
    );

    echo "login($username) ... ";
    $login = curl_post($suburl,$loginInfo);

    if(strpos($login, $username) !== FALSE){

        preg_match("/>用户组: (.*?)<\/a>/", $login, $preg);
        $group = $preg[1];
        echo "Success!($group)\n";
    }else{
        echo "Failed!\n\n";
        continue;
    }

    extract(get_jf());
    echo "Credit: $credit; Money: $money\n";

    echo "Visting user space ";
    for($i=0;$i<20;$i++){
        $uid = rand(0,30000);
        curl_get($spaceUrl = "https://www.hostloc.com/space-uid-{$uid}.html");
        echo ".";
    }
    echo " done!\n";
    extract(get_jf());
    echo "Credit: $credit; Money: $money\n\n";


}

function get_jf(){
    $data = array();
    $html = curl_get('https://www.hostloc.com/home.php?mod=spacecp&ac=credit&op=base');
    preg_match("/积分: (\d+)<\/a>/", $html, $preg);
    if(!empty($preg[1])){
        $data['credit'] = $preg[1];
    }else{
        $data['credit'] = 0;
    }
    preg_match("/金钱: <\/em>(\d+)/", $html, $preg);
    if(!empty($preg[1])){
        $data['money'] = $preg[1];
    }else{
        $data['money'] = 0;
    }

    return $data;
}

function curl_post($url, $post_data){
    global $cookie_name, $cookie_val;
    while(true){
        $res = do_curl_post($url, $post_data);
        preg_match("/cookie=\"(\w*?)\=(\w*)/", $res, $preg_cookie);
        preg_match("/href=\"(.*?)\"/", $res, $preg_url);

        if(!empty($preg_cookie[1])){
            $cookie_name = $preg_cookie[1];
            $cookie_val = $preg_cookie[2];
            $res = do_curl_post($preg_url[1], $post_data);
        }else{
            break;
        }
        sleep(1);
    }
    return $res;
}


function do_curl_post($url, $post_data){
    global $cookie_name, $cookie_val;
    $ch = curl_init ();
    curl_setopt($ch, CURLOPT_POST , 1);
    curl_setopt($ch, CURLOPT_HEADER , 0);
    curl_setopt($ch, CURLOPT_URL , $url);
    curl_setopt($ch, CURLOPT_COOKIEJAR , '/tmp/hostloc.cookie');
    //curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'.rand_ip()));
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible;Baiduspider-render/2.0; +http://www.baidu.com/search/spider.html)');
    curl_setopt($ch, CURLOPT_POSTFIELDS , $post_data);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT,600);
    curl_setopt($ch, CURLOPT_REFERER, 'http://www.hostloc.com/');
    if(!empty($cookie_name)){
        curl_setopt($ch, CURLOPT_COOKIE, "$cookie_name=$cookie_val;");
    }
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}


function curl_get($url){
    global $cookie_name, $cookie_val;
    $ch = curl_init ();
    curl_setopt($ch, CURLOPT_HEADER , 0);
    curl_setopt($ch, CURLOPT_URL , $url);
    curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/hostloc.cookie');
    //curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:'.rand_ip()));
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible;Baiduspider-render/2.0; +http://www.baidu.com/search/spider.html)');
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT,600);
    if(!empty($cookie_name)){
        curl_setopt($ch, CURLOPT_COOKIE, "$cookie_name=$cookie_val;");
    }
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}

function rand_ip(){
    return rand(1,255).'.'.rand(1,255).'.'.rand(1,255).'.'.rand(1,255);
}

文章转自:https://www.b2fun.net/archives/161

脚本简介

本次面板版本:5.9.1
本脚本支持一键安装开心版宝塔面板 以及 已经安装宝塔面板升级开心版!
感谢大家使用 书记的脚本,本脚本未加密,有没有后门大家自己看就知道了,如果你使用了类似 书记的脚本 出现问题 以及 脚本地址非本人的 或者 版权信息 与 书记不同的 请找他!
本次脚本支持:Centos 6x 7x、Debian、Ubuntu!

脚本说明

  1. 本脚本 使用方法很简单 超级傻瓜式!
  2. 5.9.1 专业版所有功能可用!
  3. 面板安装所有付费插件,直接使用!
  4. 无需手动破解,安装就是专业版!

    面板日志

    1、优化验证码模块,增强可辨识度
    2、优化面板加载逻辑,提升面板响应速度
    3、修正部分服务器因升级Openssl之后导致面板异常的问题
    4、修正部分地区无法正常绑定小程序的问题

    更新技巧

    1.如果 你是免费的 5.x 宝塔面板 可以使用脚本 升到最终的开心版 5.9.1 面板(或者输入:
    curl https://download.btpanel.net/install/update_pro.sh|bash)!

结束:该版本 最终版,官网已经停更!

安装 5.9.1 面板

Bt_Panel 脚本(Centos):极速安装方式 (安装时间1至10分钟)

yum -y install wget;wget https://btpanel.net/install/install.sh && bash install.sh

Bt_Panel 脚本(Ubuntu):极速安装方式 (安装时间1至10分钟)

apt-get install wget && wget https://download.btpanel.net/install/install-ubuntu.sh && sudo bash install-ubuntu.sh

Bt_Panel 脚本(Debian):极速安装方式 (安装时间1至10分钟)

apt-get install wget && wget https://download.btpanel.net/install/install-ubuntu.sh && bash install-ubuntu.sh

已经安装面板
Bt_Panel 脚本(升级开心版):极速安装方式 (安装时间1至10秒)

curl https://download.btpanel.net/install/update_pro.sh|bash

不想使用开心版的,直接使用官方脚本转成免费

wget -O update.sh http://download.bt.cn/install/update.sh && bash update.sh free

文章转自:https://moecat.cn/