Silly Unkonwn Bug
Lastmod: 2023-04-29

记录遇到的各种BUG,下次就不用Google了。

Updating ……

The certificate chain length (11) exceeds the maximum allowed length(10)

一般是服务端发送太多证书链导致。java运行添加变量。

java -jar -Djdk.tls.maxCertificateChainLength=15 shiro_attack-4.5.3-SNAPSHOT-all.jar

javax.net.ssl.SSLProtocolException: The certificate chain length (11) exceeds the maximum allowed length (10)

Burp unknown server certification

burpsuit提示未知的密钥证书。

使用ZAP_2.11.1做代理,仍然发现报错Unknown named curve: 1.2.156.10197.1.301,原来是SM2的某个密钥算法不兼容JAVA SDK,解决SM2/EC密钥加载问题: Unknown named curve: 1.2.156.10197.1.301

使用python中间人工具,mitmproxy搭建代理。burp的upstream配置到mitmproxy即可。若需要xray扫描,xray代理同样配置到mitmproxy监听端口,把mitmproxy当作最后出口。可惜性能很差,非常卡。

mitmproxy  --listen-port 8888

mitmproxy:ImportError: DLL load failed while importing _brotli: 找不到指定的模块。

https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

根据自己的环境进行安装

x86: vc_redist.x86.exe x64: vc_redist.x64.exe

iTunes同步音乐

不支持flac、WAV格式,可转为alac、aiff格式。

在线转换: https://www.zamzar.com/convert/flac-to-m4a/

转换工具:https://www.mediahuman.com/howto/convert-flac-to-alac.html

1、添加文件到资料库

2、出现虚线云图标需再次确认:资料库-歌曲-选中右键-同步到icloud资料库

参考:

itunes无法添加wav格式专辑封面 - Apple 社区

FLAC to ALAC - Apple Community

取消Gnome录像时间时限

Ctrl+Alt+Shift+R

gsettings set org.gnome.settings-daemon.plugins.media-keys max-screencast-length 0

SMB不能列出目录

那就打目录吧

smb://192.168.122.98/users/administrator

报错:[navicat premium] [IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序

解决方式:安装navicat自带sqlncli_x64.msi,就在安装目录下,安装后问题解决

MagicBook2019 AMD

驱动

PIP离线安装库

准备pip · PyPIGitHub - pypa/get-pip 两个文件。

python.exe get-pip.py --no-index --find-links=d:\python27\packages

pip install --download d:\python27\packages -r requirements.txt

pip install --no-index --find-index=d:\python27\packages -r requirements.txt

ERROR: Could not find a version that satisfies the requirement cryptography (from versions: none) ERROR: No matching distribution found for cryptography

原因:cryptography-3.4.7-cp36-abi3-win_amd64.whl命名不像pycparser-2.20-py2.py3-none-any.whl这样,暂时解决方法,重命名为带py3-none-any即可。

Fedora SMB共享Home目录

For convenience, Fedora has a built-in SELinux Boolean for this purpose called: smbd_anon_write, setting this to true will enable Samba to write in any filesystem path that has been set to the security context of public_content_rw_t.

添加用户到smbpasswd

smbpasswd -a john

允许samba获取home目录

Set SELinux Boolean allowing Samba to read and write to home folders:
~]# setsebool -P samba_enable_home_dirs=1

Verify bool has been correctly set:
$ getsebool samba_enable_home_dirs

Expected Output:
samba_enable_home_dirs --> on

参考:Fedora 32: Simple Local File-Sharing with Samba

Chrome出现“由贵单位管理原因及解决去除方法

在 Linux 设备上,从 /etc/opt/chrome/policies 中移除相应文件。

原因及解决去除

Windwos远程登录要求的函数不受支持

gpedit.msc-计算机配置-管理模板-系统-凭据分配-加密数据库修正

已启用-易受攻击

Centos7打包python3二进制

1、为了安装pyinstaller 4.5.1

下载:https://github.com/pyinstaller/pyinstaller/archive/refs/tags/v4.5.1.tar.gz

2、PyInstaller需要编译bootloader,Centos无脑安装编译环境

PyInstaller 4.3 bootloader fails to compile on CentOS 7

rpm类:
sudo yum groupinstall "Development Tools"
sudo yum install zlib-devel g++

debian类:
sudo apt-get install build-essential zlib1g-dev

解压源码包
cd pyinstaller-4.5.1
cd bootloader
python3 ./waf all CFLAGS="-std=gnu99"

3、pip离线安装

sudo python3 -m pip install /home/joey/下载/pyinstaller-4.5.1

4、打包目标:

pyinstaller -F mysrcipt.py

致命错误:Python.h:没有那个文件或目录

sudo yum install python3-devel

删除onedrive牛皮癣

Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

ValueError: Unable to determine SOCKS version from socks://127.0.0.1:1080

ValueError: Unable to determine SOCKS version from socks://127.0.0.1:1080/

export all_proxy="socks5://127.0.0.1:7890"
export all_proxy=""

shell Linux系统代理

export http_proxy=http://127.0.0.1:8888
export https_proxy=http://127.0.0.1:8888

gnome

设置-网络-代理-禁用,关闭所有shell终端,再打开,代理没了。

gsettings get org.gnome.system.proxy mode
gsettings set org.gnome.system.proxy mode "manual"
gsettings set org.gnome.system.proxy.http host "127.0.0.1"
gsettings set org.gnome.system.proxy.http port 8888
gsettings set org.gnome.system.proxy.socks host "127.0.0.1"
gsettings set org.gnome.system.proxy.socks port 1088
gsettings set org.gnome.system.proxy mode "none"
gsettings set org.gnome.system.proxy.http use-authentication true
gsettings set org.gnome.system.proxy.http authentication-user "xxx"
gsettings set org.gnome.system.proxy.http authentication-password "xxx"

PPTP VPN 疑难解答

PPTP VPN 疑难解答

防火墙

放通GRE协议
开放1723端口

Github制作私钥

ssh-keygen -t rsa -C "*****"
接着复制公钥内容到github
测试:
ssh -T git@github.com
git config --global user.name "go1f"
git config --global user.email "grfu@qq.com"

masscan安装

sudo apt-get install libc6-dev
sudo apt-get --assume-yes install git make gcc
git clone https://github.com/robertdavidgraham/masscan
cd masscan
make -j 4
make install

sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory

sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory

:set ff=unix

解决Terminal SSH连接服务器一段时间不操作之后卡死的问题

1、服务器段配置(不建议在server端设置)

sudo vim /etc/ssh/sshd_config

ServerAliveInterval 50
ServerAliveCountMax 3

sudo systemctl restart ssh

2、在本地打开配置文件

sudo vim /etc/ssh/ssh_config

添加以下参数,如果有直接修改

ServerAliveInterval 50
#每隔50秒就向服务器发送一个请求
ServerAliveCountMax 3
#允许超时的次数,一般都会响应

SQLSERVER browser 无法启动

开始—-运行—services.msc 进入服务管理器,找到 SQL SERVER BROWER右击属性打开,启动模式为 手动或者自动,再启用 SQL SERVER BROWER服务。

SCRT 8.X激活

9.X以上版本的scrt跑不了中移动基线脚本。

修改PID参数,下载其他版本SCRT:

https://www.vandyke.com/cgi-bin/download_form.php?pid=scrt_sfx_x64_853&st=2

https://www.imzhp.com/post/SecureCrt-8.x-SecureFX-8.x-Crack

SecureCRT 8.5.3 安装+Activation

Name:REIZ
Company:Toyota
Serial Number:03-52-039026
License Key:AAS4RS X1MU15 G9S6WV VTA5TV ACXK55 1JKW75 8R8Z5Z PK4FXJ
Issue Date:08-08-2088

pip install mysqlclient, error

#debian
sudo apt install libmariadb-dev-compat
sudo apt install mariadb mariadb-tools
sudo systemctl start mysql
sudo systemctl enable mysql
sudo mysql_secure_installation

#OpenSUSE
sudo zypper in libmariadb-devel
sudo zypper in mariadb mariadb-tools
sudo systemctl start mysql
sudo systemctl enable mysql
sudo mysql_secure_installation

Virt-manager桥接网卡

configure a Linux bridge with Network Manager

桥接无线网卡

Wireless bridge on KVM virtual machine

Wireless bridging for Virtual Machines (e.g. KVM)

libvirt Networking Handbook

Important Note: Unfortunately, wireless interfaces cannot be attached to a Linux host bridge, so if your connection to the external network is via a wireless interface (“wlanX”), you will not be able to use this mode of networking for your guests.

Setting up a bridge with NetworkManager

npm does not support Node.js v10.15.2

症状

npm WARN npm npm does not support Node.js v10.24.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.

解决方式

sudo npm install npm@latest -g

Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown.

sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
docker run hello-world 

战X不支持S3 deep suspend-to-ram

cat /sys/power/state 仅支持 freeze mem disk,mem是指执行/sys/power/mem_sleep内容 则只支持freeze、disk,现在freeze会睡死?黑屏假死?软睡眠恢复失败。 参考: https://www.cnblogs.com/dakewei/p/11323316.html https://www.cnblogs.com/arnoldlu/p/6253665.html https://www.kernel.org/doc/Documentation/power/states.txt

Vmware hardware graphics acceleration is not available

编辑添加 /etc/vmware/config

mks.gl.allowBlacklistedDrivers = “TRUE”

Microsoft Visual C++ 14.0 is required

安装 Visual C++ 2015 Build Tools

参考:
https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat

Chrome打不开

google-chrome-stable %U --password-store=basic

Windows蓝牙鼠标断联

计算机管理-设备管理器-英特尔(R)无线Bluetooth-电源管理-取消勾选 允许计算机关闭此设备以节省电源