Mi-a venit o idee sinistră, dar nu știu dacă e fezabilă... Am un shell pornit pe ttyS0 care e nefolosit. Am cum să-l conving pe el să-mi execute scriptul meu? Măcar știu că el o să fie always on... Știu cum să fac echo la text pe ttyS0, dar nu cred că am cum să pornesc un program pe shell-ul ăla fără să am acces la el - există vreo posibilitate?
2014-06-03 13:13 GMT+03:00 Adrian Popa <[email protected]>: > /sbin/init există (symlink către /sbin/rc), dar din păcate e binar... > strings pe el îmi arată că are treabă cu iptables, montatul partiției > /jffs, DDNS, QoS, DHCP6, dropbear, etc. > > Pare să aibă și el appleturi în genul busybox: > > root@rigel:/tmp/home/root# ls -l /sbin | grep rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 buttons -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 console -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 ddns-update -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 dhcp6c-state -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 dhcpc-event -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 dhcpc-release -> > rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 dhcpc-renew -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 > disconnected_pppoe -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 gpio -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 halt -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 hotplug -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 init -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 led -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 listen -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 mtd-erase -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 mtd-unlock -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 mtd-write -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 ppp_event -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 radio -> rc > -r-x------ 1 root root 184392 Apr 8 2011 rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 rcheck -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 reboot -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 redial -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 sched -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 service -> rc > lrwxrwxrwx 1 root root 2 Apr 8 2011 wldist -> rc > > > Service pare interesant... > > Update: > http://www.linksysinfo.org/index.php?threads/starting-stopping-and-restarting-services-from-cli-command-line-via-ssh-or-telnet.26491/ > nu prea - sunt doar serviciile interne ale lui. > > Mai sap - mulțumesc de ajutor până acum. > > > > > > 2014-06-03 12:27 GMT+03:00 Mihai Badici <[email protected]>: > > On Tuesday 03 June 2014 12:19:38 Claudiu Nicolaie CISMARU wrote: >> > On Tuesday, June 03, 2014 12:16:29 Adrian Popa wrote: >> > > Așa am sperat și eu să fie, dar nu e nimic la vedere (cel puțin pe >> unde mă >> > > uit eu): >> > > >> > > root@rigel:/tmp/home/root# ls /init >> > > ls: /init: No such file or directory >> > >> > ls /sbin/init ? >> > >> >> >> Sunt destul de sigur ca daca nu exista poate fi inventat ( creat) >> > _______________________________________________ >> > RLUG mailing list >> > [email protected] >> > http://lists.lug.ro/mailman/listinfo/rlug >> -- >> Mihai Bădici >> http://mihai.badici.ro >> _______________________________________________ >> RLUG mailing list >> [email protected] >> http://lists.lug.ro/mailman/listinfo/rlug >> > > _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
