[CRLFAWFULLY SOLVED] To telnet or to netcat... that's the question

2012-08-31 Thread NOSpaze
Would I believe? Works with CRLF. # hexdump -C atest 6e 63 20 31 32 37 2e 30 2e 30 2e 31 20 35 30 33 |nc 127.0.0.1 503| 0010 38 20 3c 3c 20 45 4f 46 0a 41 63 74 69 6f 6e 3a |8 << EOF.Action:| 0020 20 4c 6f 67 69 6e 0a 41 63 74 69 6f 6e 49 44 3a | Login.ActionID:| 003

Re: To telnet or to netcat... that's the question

2012-08-31 Thread Ed Greshko
On 09/01/2012 11:42 AM, NOSpaze wrote: > On Fri, 2012-08-31 at 22:31 +0800, Ed Greshko wrote: >> On 08/31/2012 10:15 PM, Timothy Murphy wrote: >>> Ed Greshko wrote: >>> Maybe add -o filename to record the session? Or, try using the -i parameter to delay sending data? >>> I don't see a -o

Re: To telnet or to netcat... that's the question

2012-08-31 Thread NOSpaze
On Fri, 2012-08-31 at 22:31 +0800, Ed Greshko wrote: > On 08/31/2012 10:15 PM, Timothy Murphy wrote: > > Ed Greshko wrote: > > > >> Maybe add -o filename to record the session? Or, try using the -i > >> parameter to delay sending data? > > I don't see a -o option in "man telnet". > > Have I misund

Re: To telnet or to netcat... that's the question

2012-08-31 Thread NOSpaze
On Fri, 2012-08-31 at 14:14 +0100, Bryn M. Reeves wrote: > On 08/31/2012 01:41 PM, NOSpaze wrote: > > But if I use nc and do... > > > > # nc 127.0.0.1 5038 << EOF > > > Action: Login > > > ActionID: 1 > > > Username: youwanna > > > Secret: uwanna > >

Re: To telnet or to netcat... that's the question

2012-08-31 Thread Ed Greshko
On 08/31/2012 10:15 PM, Timothy Murphy wrote: > Ed Greshko wrote: > >> Maybe add -o filename to record the session? Or, try using the -i >> parameter to delay sending data? > I don't see a -o option in "man telnet". > Have I misunderstood you? > Since "nc" is giving the problem I'm suggestin

Re: To telnet or to netcat... that's the question

2012-08-31 Thread Timothy Murphy
Ed Greshko wrote: > Maybe add -o filename to record the session? Or, try using the -i > parameter to delay sending data? I don't see a -o option in "man telnet". Have I misunderstood you? -- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School o

Re: To telnet or to netcat... that's the question

2012-08-31 Thread Bryn M. Reeves
On 08/31/2012 01:41 PM, NOSpaze wrote: > But if I use nc and do... > > # nc 127.0.0.1 5038 << EOF > > Action: Login > > ActionID: 1 > > Username: youwanna > > Secret: uwanna > > > > EOF > Asterisk Call Manager/1.0 Does the behaviour

Re: To telnet or to netcat... that's the question

2012-08-31 Thread Ed Greshko
On 08/31/2012 08:41 PM, NOSpaze wrote: > Hi. If I do: > > # telnet 127.0.0.1 5038 > > Trying 127.0.0.1... > Connected to localhost.localdomain (127.0.0.1). > Escape character is '^]'. > Asterisk Call Manager/1.0 > > Action: Login >

To telnet or to netcat... that's the question

2012-08-31 Thread NOSpaze
Hi. If I do: # telnet 127.0.0.1 5038 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. Asterisk Call Manager/1.0 Action: Login ActionID: 1 Username: youwanna Secret