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 2007-01-31 10:51:45

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Hamaci on the DNS

I'm thinking of exanding the DNS with Hamaci. However, Hamaci requires tuntap support in the kernel and I don't know much of the kernel. Is tuntap part of the 2.6.0 kernel in the DNS? If, so how do you enable tuntap? If not, any ideas how to make it part of the DNS (modules?)?

BR/Apan

Offline

 

#2 2007-01-31 11:52:10

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Hamaci on the DNS

well actually I've never heard of hamaci before, but I'm using openvpn with the tun/tap interface, using my compiled tun.ko module...

http://dev.skcserver.de/dns323/tun.ko

just insmod the module and create the tun or tap device...

mkdir /dev/net
mknod 600 /dev/net/tun c 10 200

Last edited by Lipovitan.B3 (2007-01-31 11:52:23)

Offline

 

#3 2007-01-31 13:19:15

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Re: Hamaci on the DNS

Thanks. I must confess that I'm impressed with your swift respone and what you apperently have accomplished. I'm curious about your setup and how you compile for the DNS. Do you use the cross-complie toolchain from D-Link/GPL or do you use debian sarge on the DNS?
I don't currently have the option to compile for the DNS and are curious which is the best/simplest way to do it. I'm not a complete noob, but cross compiling and kernel-things is not my bag....

Any help is apprechiated.

Thanks/Apan

Offline

 

#4 2007-01-31 13:41:04

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Hamaci on the DNS

I'm compiling on the dns device itself...

I've followed the "install debian" thread on this forum to install the debian base system on the raid-volume. afterwards I downloaded the linux kernel from dlink's ftp site (ftp://ftp.dlink.com/GPL/dns323/) and compiled some modules (usb-storage, tun etc.).
since I was now able to access a usb memory stick I moved the complete debian etch from my hdds to the usb stick and modified the fun_plug script to mount the usb device on boot and chroot to that.

I think that's definately not the easiest way, but my "dream" is to boot entirely from the usb device using a custom kernel ;-)

Offline

 

#5 2007-01-31 15:29:04

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

Re: Hamaci on the DNS

hamachi is not a open source program and it is only available for x86 and ppc, so you cant use it on DNS323.
You might want to try openvpn instead smile


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

Offline

 

#6 2007-01-31 15:54:35

levring
Member
From: Denmark
Registered: 2006-12-16
Posts: 30
Website

Re: Hamaci on the DNS

It seems it already had been compiled on a ARM.

http://www.internettablettalk.com/forum … amp;page=1

Offline

 

#7 2007-01-31 16:18:08

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

Re: Hamaci on the DNS

Looks like you where right, although you need to chroot into libc environment to use this binary.
http://files.hamachi.cc/linux/nokia-770/


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

Offline

 

#8 2007-01-31 17:32:48

rguerra
Member
Registered: 2006-12-20
Posts: 25

Re: Hamaci on the DNS

This is a great tip. They really should be collected on a wiki, as a forum isn't the best way to quickly find things.

Offline

 

#9 2007-01-31 17:58:30

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Hamaci on the DNS

wiki will be online soon.


First user to fun_plug the dns-323.

Offline

 

#10 2007-01-31 21:28:40

levring
Member
From: Denmark
Registered: 2006-12-16
Posts: 30
Website

Re: Hamaci on the DNS

IMO it would be a lot easier to install Hamachi, then OpenVPN.. Especially after i took a look at the guides on the net.

Is there some way simple to setup a encrypted VPN connection ? - The reason im askin is that the SCP can run at a max of  ~10mbit

Offline

 

#11 2007-02-02 11:08:43

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Re: Hamaci on the DNS

sala wrote:

Looks like you where right, although you need to chroot into libc environment to use this binary.
http://files.hamachi.cc/linux/nokia-770/

I'm getting very confused here. Have now, finally, my debian up and running. But; the files in the Nokia distribution puzzles me.

I started with a simple test, in the chrooted environment:

NAS:~# ./tuncfg
-bash: ./tuncfg: No such file or directory

NAS:~# ./hamachi
-bash: ./hamachi: No such file or directory


Then I compiled the tuncfg.c with gcc tuncfg.c -o tuncfg:

NAS:~# ls -l
total 244
-rwxrwxrwx  1  501  501 197916 Jul 11  2006 hamachi
-rwxr-xr-x  1 root root  20328 Feb  2 09:32 tuncfg
-rwxrwxrwx  1  501  501   8537 Jul 11  2006 tuncfg.c
-rwxrwxrwx  1  501  501   9444 Jul 11  2006 tuncfg.org


Fine, that one executes (after insmod and mknod) ok:
NAS:~# ps -edf | grep tun
root     16328     1  0  1970 ?        00:00:00 ./tuncfg
root     16461 15990  0  1970 ttyp0    00:00:00 grep tun

But; I cannot figure out why the original doesn't work....really:
NAS:~# file tuncfg
tuncfg: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped
NAS:~# file tuncfg.org
tuncfg.org: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.4.17, dynamically linked (uses shared libs), stripped

NAS:~# objdump -af tuncfg

tuncfg:     file format elf32-littlearm
tuncfg
architecture: arm, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00008898

NAS:~# objdump -af tuncfg.org

tuncfg.org:     file format elf32-littlearm
tuncfg.org
architecture: arm, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00008894



Any clues? Why do I get "No such file or directory" ? Is there some way to re-link into static or to relocate the symlinks?!?


edit: Some more findings: The debian sarge distro compiles to GLIBC_2.0 and hamachi appearently requires GLIBC_2.4. I think we're stuck on this binary unless someone knows how to re-link it to a static binary, which will not be doable on the debian sarge if I understand things right. It appears as if the binary compiled to SYSV ARM differ from the ARM variant. :-(



/Apan

Last edited by Apskaft (2007-02-02 13:38:49)

Offline

 

#12 2009-05-26 05:03:58

me3x
New member
Registered: 2009-05-26
Posts: 1

Re: Hamaci on the DNS

This could help somehow. We probably miss some library it depends on

DYNAMIC RELOCATION RECORDS
OFFSET   TYPE              VALUE
0003f380 R_ARM_GLOB_DAT    _ZTI9bad_state
0003f384 R_ARM_GLOB_DAT    _ZTIN6parser3errE
0003f388 R_ARM_GLOB_DAT    __gmon_start__
0003f578 R_ARM_COPY        stdout
0003f580 R_ARM_COPY        _ZNSs4_Rep20_S_empty_rep_storageE
0003f590 R_ARM_COPY        optind
0003f594 R_ARM_COPY        optarg
0003f598 R_ARM_COPY        _ZTVN10__cxxabiv121__vmi_class_type_infoE
0003f5c8 R_ARM_COPY        _ZTVSt9bad_alloc
0003f5e0 R_ARM_COPY        _ZTISt9bad_alloc
0003f5f0 R_ARM_COPY        _ZTVN10__cxxabiv117__class_type_infoE
0003f61c R_ARM_COPY        opterr
0003f620 R_ARM_COPY        _ZTVN10__cxxabiv120__si_class_type_infoE
0003f64c R_ARM_COPY        _ZNSs4_Rep11_S_max_sizeE
0003f154 R_ARM_JUMP_SLOT   recvfrom
0003f158 R_ARM_JUMP_SLOT   __cxa_end_catch
0003f15c R_ARM_JUMP_SLOT   __cxa_rethrow
0003f160 R_ARM_JUMP_SLOT   fflush
0003f164 R_ARM_JUMP_SLOT   fgets
0003f168 R_ARM_JUMP_SLOT   SHA_Final
0003f16c R_ARM_JUMP_SLOT   __xstat
0003f170 R_ARM_JUMP_SLOT   accept
0003f174 R_ARM_JUMP_SLOT   _ZNSt15_List_node_base6unhookEv
0003f178 R_ARM_JUMP_SLOT   memset
0003f17c R_ARM_JUMP_SLOT   putchar
0003f180 R_ARM_JUMP_SLOT   RSA_generate_key
0003f184 R_ARM_JUMP_SLOT   _ZNSs6resizeEjc
0003f188 R_ARM_JUMP_SLOT   connect
0003f18c R_ARM_JUMP_SLOT   BN_bin2bn
0003f190 R_ARM_JUMP_SLOT   strchr
0003f194 R_ARM_JUMP_SLOT   puts
0003f198 R_ARM_JUMP_SLOT   bind
0003f19c R_ARM_JUMP_SLOT   _ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base
0003f1a0 R_ARM_JUMP_SLOT   abort
0003f1a4 R_ARM_JUMP_SLOT   BN_bn2bin
0003f1a8 R_ARM_JUMP_SLOT   fcntl
0003f1ac R_ARM_JUMP_SLOT   socket
0003f1b0 R_ARM_JUMP_SLOT   _ZN9__gnu_cxx12__atomic_addEPVii
0003f1b4 R_ARM_JUMP_SLOT   fileno
0003f1b8 R_ARM_JUMP_SLOT   __aeabi_uidivmod
0003f1bc R_ARM_JUMP_SLOT   flock
0003f1c0 R_ARM_JUMP_SLOT   gethostbyname
0003f1c4 R_ARM_JUMP_SLOT   getsockopt
0003f1c8 R_ARM_JUMP_SLOT   _ZNSt9bad_allocD1Ev
0003f1cc R_ARM_JUMP_SLOT   _ZNKSs7compareEPKc
0003f1d0 R_ARM_JUMP_SLOT   __libc_start_main
0003f1d4 R_ARM_JUMP_SLOT   sigaction
0003f1d8 R_ARM_JUMP_SLOT   isalpha
0003f1dc R_ARM_JUMP_SLOT   memcpy
0003f1e0 R_ARM_JUMP_SLOT   sigemptyset
0003f1e4 R_ARM_JUMP_SLOT   DH_generate_key
0003f1e8 R_ARM_JUMP_SLOT   DH_size
0003f1ec R_ARM_JUMP_SLOT   raise
0003f1f0 R_ARM_JUMP_SLOT   unlink
0003f1f4 R_ARM_JUMP_SLOT   RSA_public_decrypt
0003f1f8 R_ARM_JUMP_SLOT   _ZSt28_Rb_tree_rebalance_for_erasePSt18_Rb_tree_node_baseRS_
0003f1fc R_ARM_JUMP_SLOT   __cxa_call_unexpected
0003f200 R_ARM_JUMP_SLOT   BN_num_bits
0003f204 R_ARM_JUMP_SLOT   kill
0003f208 R_ARM_JUMP_SLOT   signal
0003f20c R_ARM_JUMP_SLOT   _ZNSs7reserveEj
0003f210 R_ARM_JUMP_SLOT   tcsetattr
0003f214 R_ARM_JUMP_SLOT   getopt
0003f218 R_ARM_JUMP_SLOT   setsid
0003f21c R_ARM_JUMP_SLOT   strcmp
0003f220 R_ARM_JUMP_SLOT   DH_new
0003f224 R_ARM_JUMP_SLOT   sendto
0003f228 R_ARM_JUMP_SLOT   strrchr
0003f22c R_ARM_JUMP_SLOT   getpid
0003f230 R_ARM_JUMP_SLOT   DH_compute_key
0003f234 R_ARM_JUMP_SLOT   write
0003f238 R_ARM_JUMP_SLOT   gettimeofday
0003f23c R_ARM_JUMP_SLOT   strlen
0003f240 R_ARM_JUMP_SLOT   _ZNSs6appendERKSs
0003f244 R_ARM_JUMP_SLOT   RSA_new
0003f248 R_ARM_JUMP_SLOT   poll
0003f24c R_ARM_JUMP_SLOT   _ZNSsD1Ev
0003f250 R_ARM_JUMP_SLOT   __cxa_allocate_exception
0003f254 R_ARM_JUMP_SLOT   send
0003f258 R_ARM_JUMP_SLOT   __errno_location
0003f25c R_ARM_JUMP_SLOT   _ZNSs4_Rep10_M_destroyERKSaIcE
0003f260 R_ARM_JUMP_SLOT   getsockname
0003f264 R_ARM_JUMP_SLOT   strcpy
0003f268 R_ARM_JUMP_SLOT   BN_free
0003f26c R_ARM_JUMP_SLOT   _ZNSsC1ERKSs
0003f270 R_ARM_JUMP_SLOT   __assert_fail
0003f274 R_ARM_JUMP_SLOT   __cxa_begin_catch
0003f278 R_ARM_JUMP_SLOT   RAND_bytes
0003f27c R_ARM_JUMP_SLOT   _Znaj
0003f280 R_ARM_JUMP_SLOT   sprintf
0003f284 R_ARM_JUMP_SLOT   _ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
0003f288 R_ARM_JUMP_SLOT   _ZNSsC1EPKcRKSaIcE
0003f28c R_ARM_JUMP_SLOT   getenv
0003f290 R_ARM_JUMP_SLOT   _ZNSs9_M_mutateEjjj
0003f294 R_ARM_JUMP_SLOT   _ZNSt15_List_node_base4hookEPS_
0003f298 R_ARM_JUMP_SLOT   fprintf
0003f29c R_ARM_JUMP_SLOT   open
0003f2a0 R_ARM_JUMP_SLOT   _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
0003f2a4 R_ARM_JUMP_SLOT   umask
0003f2a8 R_ARM_JUMP_SLOT   __cxa_end_cleanup
0003f2ac R_ARM_JUMP_SLOT   tcgetattr
0003f2b0 R_ARM_JUMP_SLOT   sscanf
0003f2b4 R_ARM_JUMP_SLOT   _ZNSs6appendEPKcj
0003f2b8 R_ARM_JUMP_SLOT   _Znwj
0003f2bc R_ARM_JUMP_SLOT   DH_free
0003f2c0 R_ARM_JUMP_SLOT   mkdir
0003f2c4 R_ARM_JUMP_SLOT   _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
0003f2c8 R_ARM_JUMP_SLOT   RSA_free
0003f2cc R_ARM_JUMP_SLOT   localtime
0003f2d0 R_ARM_JUMP_SLOT   memmove
0003f2d4 R_ARM_JUMP_SLOT   __cxa_pure_virtual
0003f2d8 R_ARM_JUMP_SLOT   exit
0003f2dc R_ARM_JUMP_SLOT   setsockopt
0003f2e0 R_ARM_JUMP_SLOT   _ZSt20__throw_length_errorPKc
0003f2e4 R_ARM_JUMP_SLOT   _ZdaPv
0003f2e8 R_ARM_JUMP_SLOT   strerror
0003f2ec R_ARM_JUMP_SLOT   BN_dup
0003f2f0 R_ARM_JUMP_SLOT   _ZNSs6assignERKSs
0003f2f4 R_ARM_JUMP_SLOT   __aeabi_atexit
0003f2f8 R_ARM_JUMP_SLOT   read
0003f2fc R_ARM_JUMP_SLOT   recvmsg
0003f300 R_ARM_JUMP_SLOT   time
0003f304 R_ARM_JUMP_SLOT   vfprintf
0003f308 R_ARM_JUMP_SLOT   fork
0003f30c R_ARM_JUMP_SLOT   close
0003f310 R_ARM_JUMP_SLOT   memcmp
0003f314 R_ARM_JUMP_SLOT   _ZNSs12_M_leak_hardEv
0003f318 R_ARM_JUMP_SLOT   RSA_private_encrypt
0003f31c R_ARM_JUMP_SLOT   _ZSt20__throw_out_of_rangePKc
0003f320 R_ARM_JUMP_SLOT   _ZNSs6assignEPKcj
0003f324 R_ARM_JUMP_SLOT   SHA_Init
0003f328 R_ARM_JUMP_SLOT   SHA_Update
0003f32c R_ARM_JUMP_SLOT   _ZN9__gnu_cxx18__exchange_and_addEPVii
0003f330 R_ARM_JUMP_SLOT   recv
0003f334 R_ARM_JUMP_SLOT   fclose
0003f338 R_ARM_JUMP_SLOT   fopen
0003f33c R_ARM_JUMP_SLOT   _ZNSs7replaceEjjPKcj
0003f340 R_ARM_JUMP_SLOT   fread
0003f344 R_ARM_JUMP_SLOT   listen
0003f348 R_ARM_JUMP_SLOT   __cxa_throw
0003f34c R_ARM_JUMP_SLOT   usleep
0003f350 R_ARM_JUMP_SLOT   pipe
0003f354 R_ARM_JUMP_SLOT   _Jv_RegisterClasses
0003f358 R_ARM_JUMP_SLOT   system
0003f35c R_ARM_JUMP_SLOT   __gxx_personality_v0
0003f360 R_ARM_JUMP_SLOT   creat
0003f364 R_ARM_JUMP_SLOT   BN_new
0003f368 R_ARM_JUMP_SLOT   printf
0003f36c R_ARM_JUMP_SLOT   BN_cmp
0003f370 R_ARM_JUMP_SLOT   wait
0003f374 R_ARM_JUMP_SLOT   _ZdlPv
0003f378 R_ARM_JUMP_SLOT   _ZSt19__throw_logic_errorPKc
0003f37c R_ARM_JUMP_SLOT   dup

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB