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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>         ActionID: 1
>         Username: youwanna
>         Secret: uwanna
>         
> ... And asterisk responds:
>
>         == Manager 'youwanna' logged on from 127.0.0.1
>
> 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
>         
> ... Asterisk responds:
>
>         == Connect attempt from '127.0.0.1' unable to authenticate
>         
> Notice the TEXT is EXACTLY THE SAME (pasted in both cases) tried 762753 times or something less. Tcp port.
> Why is that difference? Is nc sending a different string sequence or what?
>

I don't have an asterisk server to test with....  But I just tested with an IMAP server and nc worked just fine.

Maybe add -o filename to record the session?  Or, try using the -i parameter to delay sending data?

-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux