DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2006-08-04 21:12:28

mchinand
Member
Registered: 2006-08-04
Posts: 6

Getting started

I'm able to get some commands to run by adding them to fun_plug (dmesg, nc, etc.) but I'm not sure if I understand how to use netcat and telnet to run things interactively. I can connect remotely with telnet but when I try to run a command, I either get ':No such file or directory' or ':applet not found' when using busybox.

Although I haven't been able to test it yet, I've  compiled the gcc-3.3 crosscompiler (except for gdb). I compiled a simple helloworld program and will try it later tonight.

Offline

 

#2 2006-08-05 01:08:42

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Getting started

For example you can setup netcat using fun_plug

Code:

#!/bin/sh
/mnt/HD_a2/busybox nc -l -p 10000 -e /bin/sh &

PS: if you exit one netcat connection then nc will stop listening.

And to connect use following command

Code:

nc <insert dsm-g600 ip here> 10000

In windows you can use netcat for win32 to connect http://www.vulnwatch.org/netcat/


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#3 2006-08-08 21:19:56

mchinand
Member
Registered: 2006-08-04
Posts: 6

Re: Getting started

Thanks Sala. It's working now. I thought I was doing those same commands (since they're what are in your README) so I'm not sure what I was doing wrong. I've built rsync and ssh but am having problems with the ssh configuration, I think. I get an error:

Code:

/mnt/HD_a2/bin/rsync --rsh=/mnt/HD_a2/bin/ssh -avz username@otherhost:directory
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(463) [receiver=2.6.8]
ICE default IO error handler doing an exit(), pid = 7964, errno = 0

It should work once I figure out what I need in the configuration file for ssh.

Offline

 

#4 2006-08-15 17:51:54

mchinand
Member
Registered: 2006-08-04
Posts: 6

Re: Getting started

By generated public and private keys with ssh-keygen I was able to get rsync to work. I basically followed the directions on using rsync and ssh. Although crontab -e doesn't work, it's possible to add lines to the cron file to perform repeated jobs. The performance of rsync doesn't seem any better than any other method in terms of transfer rate, but for backing up directories it has advantages in that it only transfers changes and optionally compresses during the transfer.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB