Unable to negotiate with 192.168.0.1 port 33400: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.au
❯ ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa \
-o KexAlgorithms=diffie-hellman-group1-sha1 root@192.168.0.1 -p 33400
root@192.168.0.1's password:
BusyBox v1.22.1 (2020-11-10 20:05:06 CST) built-in shell (ash)
Enter 'help'for a list of built-in commands.
_______ ________ __
||.-----.-----.-----.||||.----.||_
| - || _ | -__||||||| _|| _||_______|| __|_____|__|__||________||__||____||__| W I R E L E S S F R E E D O M
-----------------------------------------------------
BARRIER BREAKER (Barrier Breaker, r96964)
-----------------------------------------------------
* 1/2 oz Galliano Pour all ingredients into
* 4 oz cold Coffee an irish coffee mug filled
* 1 1/2 oz Dark Rum with crushed ice. Stir.
* 2 tsp. Creme de Cacao
-----------------------------------------------------
root@TP-LINK:~#
随便看看
既然进来了,我们当然要看看这台设备的信息。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
root@TP-LINK:~# uname -a
Linux TP-LINK 3.3.8 #1 Tue Nov 10 20:09:13 CST 2020 mips GNU/Linux
root@TP-LINK:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt"DISTRIB_RELEASE="Barrier Breaker"DISTRIB_REVISION="r96964"DISTRIB_CODENAME="barrier_breaker"DISTRIB_TARGET="ar71xx/generic"DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker 14.07"DISTRIB_TAINTS="no-all no-ipv6 busybox"
root@TP-LINK:~# cat /etc/openwrt_version
14.07
原来是openwrt的系统啊,MIPS架构。再瞧瞧CPU:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
root@TP-LINK:~# cat /proc/cpuinfo
system type : Qualcomm Atheros QCA956X rev 0
machine : TP-LINK TL-R4299G 2.0
processor : 0
cpu model : MIPS 74Kc V5.0
BogoMIPS : 373.55
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
root@TP-LINK:/tmp/userconfig/etc# cat rc.local
# Put your custom commands here that should be executed once# the system init finished. By default this file does nothing.
irq_balance(){localirqnum=`cat /proc/interrupts | awk -F: '/eth/ {print $1}'| sed 's/[^0-9]//g'`["1"==`cat /proc/irq/${irqnum}/smp_affinity`]&&{localcore_num=`cat /proc/cpuinfo | grep -w processor | awk 'END{print NR}'`localmask=`awk "BEGIN{f=lshift(1,$core_num)-1; print f}"`echo`printf %x $mask` > /proc/irq/${irqnum}/smp_affinity
}}
irq_balance
exit0
写得挺友好,Put your custom commands here that should be executed once。那么我们可以放点什么进来呢?有些文章说在这里sleep一下,然后放上之前我们的一系列下载配置和启动程序的命令,虽然可行,但不优雅。我想要守护进程,你不给我这机制,那么我就定时执行,于是乎借助crontab来搞:
1
2
# add crontab for start v2rayecho"*/1 * * * * echo \"check v2ray process at \`date\`\" >> /tmp/result.crontab 2>&1 && sh /tmp/userconfig/start-v2ray.sh"| crontab -