no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | istar:telnetaccess [2009/11/27 17:54] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Telnet Access to the iSTAR Mini HD ====== | ||
+ | These instruction are adapted from notes here: http:// | ||
+ | |||
+ | There are two sets of instructions. | ||
+ | |||
+ | ===== FROM A USB DRIVE ===== | ||
+ | |||
+ | Although I've taken a simpler approach and assumed that everybody has a memory stick. | ||
+ | |||
+ | Extract the following to a USB memory stick | ||
+ | * {{istar: | ||
+ | |||
+ | This will create a directory called **mvpmc** with a few files in it; **telnet.html**, | ||
+ | |||
+ | {{istar: | ||
+ | |||
+ | * Insert this into the back of your iSTAR. | ||
+ | * From the MEDIA BROWSER - Select the USB drive (USB_DRIVE_A-1) | ||
+ | * Now select the HTML Browser main menu option (as seen on the left) | ||
+ | * Browse into the folder **mvpmc** | ||
+ | * Select the **telnet.html** file | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | If its successful you should see the following text | ||
+ | < | ||
+ | Telnetd started on port 23... | ||
+ | </ | ||
+ | |||
+ | You're in ! | ||
+ | < | ||
+ | -bash-3.2# telnet 192.168.1.106 | ||
+ | Trying 192.168.1.106... | ||
+ | Connected to 192.168.1.106. | ||
+ | Escape character is ' | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ===== FROM A SATA DRIVE ===== | ||
+ | |||
+ | If you have an SATA drive attached to your ISTAR then you can have the utelnetd automatically started whenever the FTP daemon starts. | ||
+ | |||
+ | To perform this step its assumed that you already have telnet access by following the instructions above. | ||
+ | |||
+ | First we put the utelnet daemon onto the HDD by copying the file from our USB drive. | ||
+ | <code bash> | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | Now we modify the FTP startup script to automatically start **utelnetd**. | ||
+ | <code bash> | ||
+ | cd / | ||
+ | cat > | ||
+ | #!/bin/sh | ||
+ | # | ||
+ | # Pure FTP Server | ||
+ | # | ||
+ | |||
+ | start() { | ||
+ | echo -n " | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | } | ||
+ | |||
+ | stop() { | ||
+ | echo -n " | ||
+ | kill `cat / | ||
+ | } | ||
+ | |||
+ | restart() { | ||
+ | stop | ||
+ | start | ||
+ | } | ||
+ | |||
+ | case " | ||
+ | start) | ||
+ | start | ||
+ | ;; | ||
+ | stop) | ||
+ | stop | ||
+ | ;; | ||
+ | restart|reload) | ||
+ | restart | ||
+ | ;; | ||
+ | *) | ||
+ | echo $" | ||
+ | exit 1 | ||
+ | esac | ||
+ | |||
+ | exit $? | ||
+ | </ | ||
+ | |||
+ | That's it as long as FTP is enabled the **utelnetd** will start-up too ! | ||
+ | |||
+ | ====== ZIP file contents ====== | ||
+ | **telnet.html** file contains a URL that runs a CGI script: | ||
+ | <code html> | ||
+ | <a href=" | ||
+ | </ | ||
+ | |||
+ | **script.cgi** tricks the iSTAR into running a telnet daemon | ||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | |||
+ | echo " | ||
+ | echo " | ||
+ | echo "" | ||
+ | |||
+ | test -d /etc/mvpmc || mkdir /etc/mvpmc | ||
+ | mount --bind / | ||
+ | cp / | ||
+ | chmod 755 / | ||
+ | utelnetd -l /bin/sh -p 23 & | ||
+ | echo " | ||
+ | exit 0 | ||
+ | </ | ||
+ | |||
+ | **utelnetd** - is a MIPS compiled telnet daemon. | ||
+ | {{tag> |