dario@uiharu:~$ telnet 3.0.1.221 Trying 3.0.1.221... ^C dario@uiharu:~$ nmap 3.0.1.221 Starting Nmap 7.40 ( https://nmap.org ) at 2025-11-19 08:44 CET Nmap scan report for sico221 (3.0.1.221) Host is up (0.012s latency). Not shown: 997 closed ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 23/tcp open telnet Nmap done: 1 IP address (1 host up) scanned in 0.30 seconds dario@uiharu:~$ telnet 3.0.1.221 Trying 3.0.1.221... Connected to 3.0.1.221. Escape character is '^]'. [SSL not available] Arcom Embedded Linux with Java Technology 2.06 tc2-Tribunal login: arcom Password: arcom@tc2-Tribunal arcom$ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtdblock2 14336 9552 4784 67% / /dev/mtdblock1 1408 1408 0 100% /var tmpfs 4096 44 4052 1% /var/tmp arcom@tc2-Tribunal arcom$ su Password: root@tc2-Tribunal root# free total used free shared buffers Mem: 30708 14344 16364 0 0 Swap: 0 0 0 Total: 30708 14344 16364 root@tc2-Tribunal root# cat /proc/filesystems nodev rootfs nodev bdev nodev proc nodev sockfs nodev tmpfs nodev shm nodev pipefs jffs2 romfs nodev devpts root@tc2-Tribunal root# uname -a Linux tc2-Tribunal 2.4.18 #1 Wed Jan 8 12:03:23 GMT 2003 i486 unknown root@tc2-Tribunal root# cd / root@tc2-Tribunal /# cd tmp/ root@tc2-Tribunal tmp# ls cache lock log run root@tc2-Tribunal tmp# ls -la drwxrwxrwt 6 root root 0 Nov 19 03:06 . drwxr-xr-x 1 root root 0 Jun 20 2002 .. drwxr-xr-x 3 root root 0 Nov 19 03:06 cache drwxr-xr-x 2 root root 0 Nov 19 03:06 lock drwxr-xr-x 2 root root 0 Nov 19 03:06 log drwxr-xr-x 2 root root 0 Nov 19 03:06 run root@tc2-Tribunal tmp# df . Filesystem 1k-blocks Used Available Use% Mounted on tmpfs 4096 44 4052 1% /var/tmp root@tc2-Tribunal tmp# ftp 3.0.1.170 Connected to 3.0.1.170. 220 ProFTPD 1.2.0pre10 Server (Debian) [salchicha.sicosoft.es] Name (3.0.1.170:arcom): dario 331 Password required for dario. Password: 230 User dario logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd /usr/local/bin 250 CWD command successful. ftp> bin 200 Type set to I. ftp> get socket-upipe-client local: socket-upipe-client remote: socket-upipe-client 200 PORT command successful. 150 Opening BINARY mode data connection for socket-upipe-client (8974 bytes). 226 Transfer complete. 8974 bytes received in 0.0103 secs (8.5e+02 Kbytes/sec) ftp> quit 221 Goodbye. root@tc2-Tribunal tmp# chmod a+x socket-upipe-client root@tc2-Tribunal tmp# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtdblock2 14336 9552 4784 67% / /dev/mtdblock1 1408 1408 0 100% /var tmpfs 4096 56 4040 1% /var/tmp root@tc2-Tribunal tmp# mkdir t root@tc2-Tribunal tmp# mount --bind /var /t mount: mount point /t does not exist root@tc2-Tribunal tmp# mount --bind /var /tmp/t/ root@tc2-Tribunal tmp# cd t/ root@tc2-Tribunal t# tar cache empty etc home lib lock log run tmp root@tc2-Tribunal t# tar -cpf - . | gzip -1 | ../socket-upipe-client 3.0.1.3 10000 root@tc2-Tribunal t# cd .. root@tc2-Tribunal tmp# mkdir t0 root@tc2-Tribunal tmp# mount --bind /root t0 root@tc2-Tribunal tmp# cd t0 root@tc2-Tribunal t0# tar -cpf - . | gzip -1 | ../socket-upipe-client 3.0.1.3 10000 root@tc2-Tribunal t0# tar -cpf - . | gzip -1 | ../socket-upipe-client 3.0.1.3 10000 ERROR: No se pudo realizar la conexi�n No se ha podido realizar la conexi�n, saliendo... root@tc2-Tribunal t0# tar -cpf - . | gzip -1 | ../socket-upipe-client 3.0.1.3 10000 root@tc2-Tribunal t0# cd .. root@tc2-Tribunal tmp# umount t0 root@tc2-Tribunal tmp# mount --bind / t0 root@tc2-Tribunal tmp# cd t0 root@tc2-Tribunal t0# tar -cpf - . | gzip -1 | ../socket-upipe-client 3.0.1.3 10000 root@tc2-Tribunal t0# cd .. root@tc2-Tribunal tmp# umount t0 root@tc2-Tribunal tmp# cd t root@tc2-Tribunal t# find . | grep "[A-Z][A-Z]" ./home/smp/LSTCOND.SMP ./home/ControlId/Datos/PruebasCOM1_485 ./home/ControlId/Datos/PruebasCOM2_485 ./home/ControlId/Binarios/LectorRFID ./home/ControlId/DatosNFS ./home/ControlId/DatosNFS/Repositorio root@tc2-Tribunal t# tar -cpf - --exclude ./home/smp --exclude ./home/smp/LSTCOND.SMP . | gzip -1 | ../socket-upipe-client 3.0.1.3 10000 root@tc2-Tribunal t# cd .. root@tc2-Tribunal tmp# umount t root@tc2-Tribunal tmp# dd if=/dev/mtdblock1 bs=16384 | ./socket-upipe-client 3.0.1.3 10000 88+0 records in 88+0 records out root@tc2-Tribunal tmp# cat /etc/fstab #/etc/fstab #device mount point type flags dump? check order /dev/mtdblock2 / jffs2 defaults,ro 0 0 /dev/mtdblock1 /var/ jffs2 defaults 0 0 tmpfs /var/tmp tmpfs defaults,size=4M 0 0 none /proc proc defaults 0 0 none /dev/pts devpts defaults 0 0 root@tc2-Tribunal tmp# cat /proc/mtd dev: size erasesize name mtd0: 000a0000 00020000 "Flash boot partition" mtd1: 00160000 00020000 "Flash data partition" mtd2: 00e00000 00020000 "Flash root partition" mtd3: 00020000 00001000 "SRAM" root@tc2-Tribunal tmp# ps -efa PID Uid Stat Command 1 root S init [ 2 root S [keventd] 3 root S [ksoftirqd_CPU0] 4 root S [kswapd] 5 root S [bdflush] 6 root S [kupdated] 7 root S [mtdblockd] 29 root S [jffs2_gcd_mtd1] 66 root S /sbin/syslogd -p /var/run/log 69 root S /sbin/klogd 73 root S /usr/sbin/inetd 76 root S /usr/sbin/sshd 85 root S /bin/sh /etc/init.d/reiniciar 100 root S /home/ControlId/Binarios/Control -start 107 root S /home/ControlId/Binarios/Accesos 109 root S /bin/sh /etc/init.d/montarNFS 110 root S /sbin/getty -L ttyS2 115200 vt100 113 root S /home/ControlId/Binarios/GrabaEventos 119 root S /home/ControlId/Binarios/EnviaEventos 121 root S /home/ControlId/Binarios/ControlRemoto 131 root S /home/ControlId/Binarios/Listas 146 root S /home/ControlId/Binarios/Puerto485 148 root S /home/ControlId/Binarios/Gir 149 root S in.telnetd: pupitre 150 arcom S -sh 243 root S in.telnetd: 3.0.1.3 244 arcom S -sh 285 root S -sh 2942 root S sleep 60 2950 root S sleep 20 2953 root S /home/ControlId/Binarios/Lector485 -p0 2956 root S /home/ControlId/Binarios/Lector485 -p1 2957 root R ps -efa root@tc2-Tribunal tmp# kill -9 root@tc2-Tribunal tmp# cat /etc/init.d/reiniciar #!/bin/sh # # reiniciar - Script para reiniciar la maquina a una hora concreta. # # Autor: Guillermo Gonzalez Paez # Version: 1.2 # Control de Cambios: # 27/12/2007 : Quitamos la actualizacion de aqui y la ponermos en montarNFS # 01/07/2005 : Ejecutar actualizacion antes de reiniciar. # 29/05/2003 : Version Inicial. # # Hora a la que se quiere reiniciar HORA_REINICIAR=04:45 while true do HORA_ACTUAL=`date +%H:%M` if [ $HORA_ACTUAL = $HORA_REINICIAR ] then # Paramos el software /etc/init.d/ControlId stop # Reiniciamos la maquina reboot exit 0 fi sleep 20 done root@tc2-Tribunal tmp# ps -efa PID Uid Stat Command 1 root S init [ 2 root S [keventd] 3 root S [ksoftirqd_CPU0] 4 root S [kswapd] 5 root S [bdflush] 6 root S [kupdated] 7 root S [mtdblockd] 29 root S [jffs2_gcd_mtd1] 66 root S /sbin/syslogd -p /var/run/log 69 root S /sbin/klogd 73 root S /usr/sbin/inetd 76 root S /usr/sbin/sshd 85 root S /bin/sh /etc/init.d/reiniciar 100 root S /home/ControlId/Binarios/Control -start 107 root S /home/ControlId/Binarios/Accesos 109 root S /bin/sh /etc/init.d/montarNFS 110 root S /sbin/getty -L ttyS2 115200 vt100 113 root S /home/ControlId/Binarios/GrabaEventos 119 root S /home/ControlId/Binarios/EnviaEventos 121 root S /home/ControlId/Binarios/ControlRemoto 131 root S /home/ControlId/Binarios/Listas 146 root S /home/ControlId/Binarios/Puerto485 148 root S /home/ControlId/Binarios/Gir 149 root S in.telnetd: pupitre 150 arcom S -sh 243 root S in.telnetd: 3.0.1.3 244 arcom S -sh 285 root S -sh 2973 root S sleep 20 2997 root S sleep 60 3000 root S /home/ControlId/Binarios/LectorRFID -p0 3003 root S /home/ControlId/Binarios/LectorRFID -p1 3004 root R ps -efa root@tc2-Tribunal tmp# kill -9 85 100 107 109 113 119 121 131 146 148 2973 2997 3000 3003 sh: kill: (2973) - No such pid sh: kill: (3000) - No such pid sh: kill: (3003) - No such pid root@tc2-Tribunal tmp# ps -efa PID Uid Stat Command 1 root S init [ 2 root S [keventd] 3 root S [ksoftirqd_CPU0] 4 root S [kswapd] 5 root S [bdflush] 6 root S [kupdated] 7 root S [mtdblockd] 29 root S [jffs2_gcd_mtd1] 66 root S /sbin/syslogd -p /var/run/log 69 root S /sbin/klogd 73 root S /usr/sbin/inetd 76 root S /usr/sbin/sshd 110 arcom S -sh 149 root S in.telnetd: pupitre 150 arcom S -sh 243 root S in.telnetd: 3.0.1.3 244 arcom S -sh 285 root S -sh 3024 root S /home/ControlId/Binarios/Lector485 -p0 3027 root S /home/ControlId/Binarios/Lector485 -p1 3028 root R ps -efa root@tc2-Tribunal tmp# kill -9 3024 3027 sh: kill: (3024) - No such pid sh: kill: (3027) - No such pid root@tc2-Tribunal tmp# ps -efa PID Uid Stat Command 1 root S init [ 2 root S [keventd] 3 root S [ksoftirqd_CPU0] 4 root S [kswapd] 5 root S [bdflush] 6 root S [kupdated] 7 root S [mtdblockd] 29 root S [jffs2_gcd_mtd1] 66 root S /sbin/syslogd -p /var/run/log 69 root S /sbin/klogd 73 root S /usr/sbin/inetd 76 root S /usr/sbin/sshd 110 arcom S -sh 149 root S in.telnetd: pupitre 150 arcom S -sh 243 root S in.telnetd: 3.0.1.3 244 arcom S -sh 285 root S -sh 3029 root R ps -efa root@tc2-Tribunal tmp# cat /proc/mounts /dev/root / jffs2 ro 0 0 none /proc proc rw 0 0 /dev/mtdblock1 /var jffs2 rw 0 0 tmpfs /var/tmp tmpfs rw 0 0 none /dev/pts devpts rw 0 0 root@tc2-Tribunal tmp# mount -o remount,ro /var root@tc2-Tribunal tmp# ftp 3.0.1.170 Connected to 3.0.1.170. 220 ProFTPD 1.2.0pre10 Server (Debian) [salchicha.sicosoft.es] Name (3.0.1.170:arcom): dario 331 Password required for dario. Password: 230 User dario logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd /usr/local/bin 250 CWD command successful. ftp> bin 200 Type set to I. ftp> get socket-upipe-server local: socket-upipe-server remote: socket-upipe-server 200 PORT command successful. 150 Opening BINARY mode data connection for socket-upipe-server (8524 bytes). 226 Transfer complete. 8524 bytes received in 0.0102 secs (8.1e+02 Kbytes/sec) ftp> quit 221 Goodbye. root@tc2-Tribunal tmp# chmod a+x socket-upipe-server root@tc2-Tribunal tmp# ./socket-upipe-server 10000 | dd of=/dev/mtdblock1 bs=16384 Arrancando el servidor en el puerto 10000 Creando el socket...ok. Asociando un puerto al socket...ok. Configurando el socket para esperar una conexi�n...ok. Esperando una conexi�n...0+352 records in 0+352 records out root@tc2-Tribunal tmp# root@tc2-Tribunal tmp# reboot Broadcast message from root (pts/1) Wed Nov 19 04:01:57 2025... The system is going down for reboot NOW !! root@tc2-Tribunal tmp# Connection closed by foreign host. dario@uiharu:~$