月度归档:2019年01月

centos6 人人影视web

#需要安装screen
#安装unrar
wget https://forensics.cert.org/cert-forensics-tools-release-el6.rpm
rpm -Uvh cert-forensics-tools-release*rpm
yum --enablerepo=forensics install unrar
#下载源码
cd /root/
wget http://appdown.rrys.tv/rrshareweb_linux.rar
unrar x rrshareweb_linux.rar
tar -zxvf rrshareweb_centos6_64.tar.gz
cd rrshareweb
#建立bash脚本
nano start.sh
#!/bin/bash
screen -d -m -S rrshareweb /root/rrshareweb/rrshareweb
#设置权限
chmod +x start.sh
#启动
bash start.sh
#设置域名
#宝塔添加网站,不需要数据库,设置反向代理添加127.0.0.1:3001,启用反向代理
#添加开机启动
nano /etc/rc.d/rc.local
#添加
bash /root/rrshareweb/start.sh

centos6 hostsolutions openvz折腾

#宝塔hostsolutions解决方案
rpm -e --nodeps iptables

#安装启用 IUS 社区源

yum install epel-release curl nss rpm ca-certificates -y
#update-ca-trust 不用
curl 'https://setup.ius.io/' -o setup-ius.sh
sh setup-ius.sh

#wget  忽略证书
#参考https://www.zcfy.cc/article/3-methods-to-install-latest-python3-package-on-centos-6-system




#chkconfig iptables off
#rpm -e --nodeps iptables



yum --enablerepo=ius install openssl python  htop nano wget curl epel-release yum yum-plugin-fastestmirror -y

#yum --enablerepo=ius update rpm openssl -y

yum --enablerepo=ius install python27* python36u -y

#yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
#yum groupinstall -y "Development tools"
#wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
#tar zxf Python-2.7.15.tgz
#cd Python-2.7.15
#./configure
#make && make install

#ls /usr/bin/python*

##下面copy cp已经处理
#nano /usr/bin/yum
#!/usr/bin/python
#改为:
#!/usr/bin/python2.6

#cd /usr/bin/
mv /usr/bin/python /usr/bin/python.old
rm -f /usr/bin/python-config
#cp /usr/bin/python2.7 /usr/bin/python
ln -s /usr/bin/python2.7 /usr/bin/python
#ln -s /usr/bin/python2.7-pydoc /usr/bin/python-config
#ln -s /usr/bin/python2.6 /usr/bin/python
#python -V

cp -r /usr/lib/python2.6/site-packages/yum /usr/lib/python2.7/site-packages/
cp -r /usr/lib/python2.6/site-packages/rpmUtils /usr/lib/python2.7/site-packages/
cp -r /usr/lib/python2.6/site-packages/iniparse /usr/lib/python2.7/site-packages/
cp -r /usr/lib/python2.6/site-packages/urlgrabber /usr/lib/python2.7/site-packages/
cp -r /usr/lib64/python2.6/site-packages/rpm /usr/lib/python2.7/site-packages/
cp -r /usr/lib64/python2.6/site-packages/curl /usr/lib/python2.7/site-packages/
cp -p /usr/lib64/python2.6/site-packages/pycurl.so /usr/lib/python2.7/site-packages/
cp -p /usr/lib64/python2.6/site-packages/_sqlitecache.so /usr/lib/python2.7/site-packages/
cp -p /usr/lib64/python2.6/site-packages/sqlitecachec.py /usr/lib/python2.7/site-packages/
cp -p /usr/lib64/python2.6/site-packages/sqlitecachec.pyc /usr/lib/python2.7/site-packages/
cp -p /usr/lib64/python2.6/site-packages/sqlitecachec.pyo /usr/lib/python2.7/site-packages/


#rm -rf /usr/lib/python2.7/site-packages/yum/
#rm -rf /usr/lib/python2.7/site-packages/rpmUtils/
#rm -rf /usr/lib/python2.7/site-packages/iniparse/
#rm -rf /usr/lib/python2.7/site-packages/urlgrabber/
#rm -rf /usr/lib/python2.7/site-packages/rpm/
#rm -rf /usr/lib/python2.7/site-packages/curl/
#rm -rf /usr/lib/python2.7/site-packages/pycurl.so
#rm -rf /usr/lib/python2.7/site-packages/_sqlitecache.so
#rm -rf /usr/lib/python2.7/site-packages/sqlitecachec.py
#rm -rf /usr/lib/python2.7/site-packages/sqlitecachec.pyc
#rm -rf /usr/lib/python2.7/site-packages/sqlitecachec.pyo

ln -s /usr/bin/pip2.7 /usr/bin/pip
pip install --upgrade pip
#pip -V



#参考https://teddysun.com/473.html


#安装pip
#wget https://bootstrap.pypa.io/get-pip.py
#python get-pip.py

#参考https://www.jianshu.com/p/a78e1fb2bd93
#pip -V

#yum install python-pip -y

#nano /usr/bin/pip
#!/usr/bin/python
#改为:
#!/usr/bin/python26


#使用 Software Collections 源 (SCL)  忽略
#yum install centos-release-scl -y
#yum install rh-python36 -y
#yum install python27 -y


yum --enablerepo=ius update -y

#宝塔hostsolutions解决方案
chkconfig iptables off
卸载 iptables:
rpm -e --nodeps iptables

yum remove httpd -y

#宝塔对于openvz的坑
yum -y install sudo

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh









sony手机解锁教程

如果在解锁blu锁的时候提示oem unlock is not allowed,说明需要先解锁OEM锁(必须进入系统,先打开开发者模式(连击版本号5次),然后oem锁打到右边)

这是很坑的地方,卡了我很久

如果强刷出现问题,可以先试试解锁OEM

WiFi叉号或叹号去除

一、叉号/叹号出现的原因
这是因为在连接一个网络的时候,系统会去请求一个google的网址来确定这个网络是否具有网络访问。由于我国GFW封锁策略,导致系统请求google网址不成功,就会出现叉号或叹号。

二、去除教程

1. 手机root并开启调试模式。
2. 电脑配置adb环境,打开命令行。
Android 7.0之前版本的系统,执行以下命令:

  1. adb shell “settings put global captive_portal_server www.qualcomm.cn”;

复制代码

Android 7.0之后的版本需要执行下面的两条命令:

  1. adb shell “settings put global captive_portal_http_url http://www.qualcomm.cn/generate_204”;
  2. adb shell “settings put global captive_portal_https_url https://www.qualcomm.cn/generate_204”;

3. 然后打开飞行模式,关闭飞行模式,此时,应该去除了叉号或叹号。

其他地址

https://www.gstatic.com/generate_204

http://www.gstatic.com/generate_204

http://google.cn/generate_204
https://google.cn/generate_204

http://www.google.cn/generate_204
https://www.google.cn/generate_204

http://developers.google.cn/generate_204
https://developers.google.cn/generate_204
http://www.qualcomm.cn/generate_204
https://www.qualcomm.cn/generate_204

参考

https://cli.ee/generate-204

windows补丁快速查找地址

系统 版本号 更新
windows xp 32
windows 7 32 | 64
Wes7/Wep7 32 | 64
Win10 1507 10240 32 | 64
Win10 1511 10586 32 | 64
Win10 1607 14393 32 | 64
Win10 1703 15063 32 | 64
Win10 1709 16299.29 32 | 64
Win10 1803 17134 32 | 64
Win10 1809 17763 32 | 64
Win10 1903/1909 18362 32 | 64
Win10 2004/20H2 19041 32 | 64

win7 sha-2补丁,http://www.catalog.update.microsoft.com/search.aspx?q=4490628

https://support.microsoft.com/zh-cn/help/4009469/windows-7-sp1-windows-server-2008-r2-sp1-update-history
https://support.microsoft.com/zh-cn/help/4498140    win10    1903
https://support.microsoft.com/zh-cn/help/4555932    win10    2004
https://support.microsoft.com/zh-cn/help/4529964    win10    1909
https://support.microsoft.com/zh-cn/help/4009470/windows-8-1-windows-server-2012-r2-update-history

DNS-over-HTTPS&DNS-over-TLS服务器收集

1.火狐默认自带的

https://mozilla.cloudflare-dns.com/dns-query
https://cloudflare-dns.com/dns-query

2.红鱼dns 支持tls (国内节点)

https://dns.rubyfish.cn/dns-query

3.1.1.1 支持tls

https://1.1.1.1/dns-query

4.defaultroutes 支持tls

https://doh.defaultroutes.de/dns-query

5.aaflalo

https://dns.aaflalo.me/dns-query

6.cleanbrowsing 更多参考https://cleanbrowsing.org/guides/dnsoverhttps

https://doh.cleanbrowsing.org/doh/security-filter/

7.9.9.9.9

https://9.9.9.9/dns-query

8.GEEKDNS (国内)

https://dns.233py.com/dns-query
https://hkdns.233py.com/dns-query
https://hk2dns.233py.com/dns-query

火狐63版本及以上支持设置DNS-over-HTTPS服务器,在选项-常规-网络设置-启用基于 HTTPS 的 DNS

安卓9.0支持设置DNS-over-tls,原生系统在网络-高级-私人DNS

参考https://dnscrypt.info/public-servers/

https://github.com/curl/curl/wiki/DNS-over-HTTPS

dns over tls 参考 (smartdns)

https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers

https://www.233py.com/service.html

https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Public+Resolvers#DNSPrivacyPublicResolvers-DNS-over-TLS(DoT)