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

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

 



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?

TIA...
-- 
NOSpaze <nospaze@xxxxxxxxx>

-- 
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