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 2008-07-15 12:24:43

coverup
Member
Registered: 2008-07-15
Posts: 5

Telnet + password + Fun_plug 0.5

Hi, i'm a newbe dns 313 user tongue

i have a question...my telnet (i have installed fun_plug 0.5) ask me the password, i know that in dns 323 i can login without password.

is it possible also in dns 313 ???

thanks smile

Matteo

PS: sorry for my english tongue

Offline

 

#2 2008-07-15 12:41:11

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Telnet + password + Fun_plug 0.5

Code:

usermod -p '' root

will clear the root password. You can do this manually, and store stuff to flash, or you can do it automatically on every boot. I'm using the latter approach, attached is my start script (copy to /ffp/start, then chmod a+x no_root_passwd.sh)


Attachments:
Attachment Icon no_root_passwd.sh, Size: 235 bytes, Downloads: 526

Offline

 

#3 2008-07-15 13:22:46

coverup
Member
Registered: 2008-07-15
Posts: 5

Re: Telnet + password + Fun_plug 0.5

thank you smile

i will try smile

Offline

 

#4 2008-07-15 14:55:50

coverup
Member
Registered: 2008-07-15
Posts: 5

Re: Telnet + password + Fun_plug 0.5

ok i have try and with your script now don't ask me password but ask me again user sad

can you help me please ???

Offline

 

#5 2008-07-15 15:05:39

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Telnet + password + Fun_plug 0.5

misunderstood your first post. if you're connection through the ffp telnet server, make it start the shell directly.

Code:

sed -i 's@.*telnetd_flags=.*@telnetd_flags="-l /ffp/bin/sh"@' /ffp/start/telnetd.sh

Your /ffp/start/telnetd.sh file should look like this, then:

Code:

root@bob:~# sed -i 's@.*telnetd_flags=.*@telnetd_flags="-l /ffp/bin/sh"@' /ffp/start/telnetd.sh 
root@bob:~# cat /ffp/start/telnetd.sh 
#!/ffp/bin/sh

# PROVIDE: telnetd
# REQUIRE: LOGIN

. /ffp/etc/ffp.subr

name="telnetd"
command="/ffp/sbin/telnetd"
telnetd_flags="-l /ffp/bin/sh"

run_rc_command "$1"

I don't recommend this, though, since you'll lose the environment set in /ffp/etc/profile or ~/.profile.

PS: After this, you need to restart the telnet server:

Code:

cd /tmp
nohup /ffp/start/telnetd.sh restart

Last edited by fonz (2008-07-15 15:10:32)

Offline

 

#6 2008-07-15 15:08:48

coverup
Member
Registered: 2008-07-15
Posts: 5

Re: Telnet + password + Fun_plug 0.5

thanks smile

i will try smile

Offline

 

#7 2008-07-16 12:41:38

coverup
Member
Registered: 2008-07-15
Posts: 5

Re: Telnet + password + Fun_plug 0.5

fonz wrote:

misunderstood your first post. if you're connection through the ffp telnet server, make it start the shell directly.

Code:

sed -i 's@.*telnetd_flags=.*@telnetd_flags="-l /ffp/bin/sh"@' /ffp/start/telnetd.sh

Your /ffp/start/telnetd.sh file should look like this, then:

Code:

root@bob:~# sed -i 's@.*telnetd_flags=.*@telnetd_flags="-l /ffp/bin/sh"@' /ffp/start/telnetd.sh 
root@bob:~# cat /ffp/start/telnetd.sh 
#!/ffp/bin/sh

# PROVIDE: telnetd
# REQUIRE: LOGIN

. /ffp/etc/ffp.subr

name="telnetd"
command="/ffp/sbin/telnetd"
telnetd_flags="-l /ffp/bin/sh"

run_rc_command "$1"

I don't recommend this, though, since you'll lose the environment set in /ffp/etc/profile or ~/.profile.

PS: After this, you need to restart the telnet server:

Code:

cd /tmp
nohup /ffp/start/telnetd.sh restart

i have follow your suggestion and i have keep the root user wink

thanks smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB