D:\Tools\putty\PLINK.EXE -ssh admin@192.168.123.1 -pw admin "/usr/sbin/tcpdump -s 0 -U -n -i br0 -w - not port 22" | wireshark -k -i -
所有由root发布的文章
群晖 Download Station 或 Transmission 迁移(部分)种子到(新) Transmission
cd /var/services/download/
mkdir /tmp/torrents/
find . -name "*.torrent" -type f -exec cp {} /tmp/torrents \;
find . -name "*.resume" -type f -exec cp {} /tmp/torrents \;
tar cfvz /tmp/torrents_full.tar.gz /tmp/torrents/
mv /tmp/torrents_full.tar.gz /volume1/other/
ds2tr.exe -dir torrents
2019-11-22 update:
突然发现也适用普通 tr 迁移部分站点的种子至新 tr 的情况。
ds2tr.exe 文件获取请至
https://github.com/ronggang/transmission-web-control/wiki/Home-CN#交流方式 QQ 群
Anti anti-adblock
https://jspenguin2017.github.io/uBlockProtector/
https://jspenguin2017.github.io/uBlockProtector/#extra-installation-steps-for-ublock-origin
在没有sha1sum的时候计算文件hash值
depend:openssl
openssl dgst -sha1 filename
2019.01.13 update:
openssl sha1 filename
MPC-BE 加速播放声音变调解决
MPC-BE 的加速播放会有声音变尖锐的问题,解决方法:
选项→音频→音频渲染器:MPC Audio Renderer
重启播放器。
重启播放器。
重启播放器。
Log DNS query to syslog on EdgeRouter
1. Update DNS Options:
configure
set service dns forwarding options 'log-queries'
commit
save
2. Create new file ‘/etc/rsyslog.d/dnsmasq.conf’
$ModLoad imfile
$InputFileName /var/log/dnsmasq.log
$InputFileTag EdgeDNS
$InputFileStateFile EdgeDNS1
$InputFileSeverity notice
$InputFileFacility local1
$InputFilePersistStateInterval 1000
$InputRunFileMonitor
*.* <@SYSLOG_SERVER_HOST_NAME OR @@SERVER_IP_ADDRES
3. restart dnsmasq and rsyslog service
sudo service dnsmasq restart
sudo service rsyslog restart
办法来自 https://community.ubnt.com/t5/EdgeRouter/Log-DNS-query-to-syslog/m-p/2267821#M199787
UID 卡、CUID 卡、FUID 卡的区别
看到了一篇简洁的介绍3种卡区别的 blog,记录一下。
UID 卡 (国外称 GEN1)
所有区块可被重复读写
卡片 ID 可改且使用后门指令更改 ID
ID 可被重复修改
响应后门指令 (意味着可被使用后门指令检测是否为克隆卡的机器发现)CUID 卡 (国外称 GEN2)
所有区块可被重复读写
卡片 ID 可改且使用普通写指令更改 ID
ID 可被重复修改
不响应后门指令 (意味着不容易被反克隆系统发现)FUID 卡 (国外称 GEN2)
0 区块可写且仅可写入一次
使用普通写指令更改 ID
更 “反克隆”
原帖来自 https://www.ruitz.cn/?p=138
Windows 命令行使用 doskey 设置别名 alias 实现 Ctrl+D 注销
本来是为了实现 Linux 下 bash 的 Ctrl+D 退出,doskey 直接设置后,退出后会失效,发现了这个用法。
@doskey quit=exit
@doskey =exit
为 Ctrl+D 的控制符,不可见,.cmd 里 ^D 方式无效,需要用控制符才能有效。
为 CMD 在注册表中添加 AutoRun ,新建字符串值,注册表键值为HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
或HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
,然后右键修改,把 cmd 文件的路径输入。
方法来自 http://www.zplan.net/news.php?id=297
中兴机顶盒处理中用到的几个命令
开机自动开启 adb 和 ssh
mount -o remount -o rw /system
echo "adbd&" >> /system/bin/init.zte.post_boot.sh
echo "/system/xbin/dropbear&" >> /system/bin/init.zte.post_boot.sh
MAC 和 ProductID 更改,需要改动 /data/stbconfig.ini 及 /data/ztecfg/stbconfig.ini 文件,更改 MAC 和 ProductID 后,用空白 conf 文件初始化分区
dd if=/tmp/conf_blank of=/dev/block/conf
Wake On Line Wizard for ubnt EdgeOS
Wake On Line Wizard for ubnt EdgeOS
tar 来自 https://community.ubnt.com/t5/EdgeRouter/Wake-on-LAN-no-longer-an-available-package/m-p/1843966#M151406