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-03-23 22:43:42

uyuni
Member
From: Denmark
Registered: 2007-12-29
Posts: 31

Why is CTRL-C not working in telnet sessions?

I'm having difficulty making CTRL-C work in a (putty 0.60) telnet session to the DNS-323.
I.e. pressing CTRL-C does nothing and thus I have to close the session and restart a new one every time something locks up :-(
Why?


D-Link DNS-323 firmware 1.08 + Samsung HD203WI + Samsung HD103UJ + ffp-0.5 + addons

Offline

 

#2 2008-03-25 00:58:48

SweMart
Member
From: Stockholm, Sweden
Registered: 2008-03-18
Posts: 14

Re: Why is CTRL-C not working in telnet sessions?

uyuni wrote:

I'm having difficulty making CTRL-C work in a (putty 0.60) telnet session to the DNS-323.
I.e. pressing CTRL-C does nothing and thus I have to close the session and restart a new one every time something locks up :-(
Why?

It's probably due to stty settings, execute "stty -a" to view them. Depending on which shell you're running you'll have to use different syntaxes to change the settings. Read the man pages.

Offline

 

#3 2008-03-26 23:00:18

uyuni
Member
From: Denmark
Registered: 2007-12-29
Posts: 31

Re: Why is CTRL-C not working in telnet sessions?

This is the output:

Code:

# stty -a
speed 38400 baud; rows 61; columns 122;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

The intr character seems to be correct, not?


D-Link DNS-323 firmware 1.08 + Samsung HD203WI + Samsung HD103UJ + ffp-0.5 + addons

Offline

 

#4 2008-03-27 12:30:17

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Why is CTRL-C not working in telnet sessions?

Ctrl-C works if you're using ssh (dropbear) instead of telnet, ssh is also more secure.

You may be able to get away with ctrl-z instead if ctrl-c is broken, this will stop (pause) the process. and then you can either start it running again in the background with the "bg" command or kill it with ps and kill.

Offline

 

#5 2008-03-27 20:01:41

uyuni
Member
From: Denmark
Registered: 2007-12-29
Posts: 31

Re: Why is CTRL-C not working in telnet sessions?

Thanks for the tip. I'll try dropbear then.

I have used the "^Z + kill -9" until now but it is somewhat cumbersome when you're used to ^C.


D-Link DNS-323 firmware 1.08 + Samsung HD203WI + Samsung HD103UJ + ffp-0.5 + addons

Offline

 

#6 2008-03-28 12:42:23

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Why is CTRL-C not working in telnet sessions?

uyuni wrote:

I have used the "^Z + kill -9" until now but it is somewhat cumbersome when you're used to ^C.

True - very useful to know though, e.g: if you're running a script at work and it doesn't complete by the time you want to leave, ctrl-z & bg it...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB