Connect to Windows from Linux using NetCat | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Connect to Windows from Linux using NetCat

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-18-2012
Jotne's Avatar
Jotne Jotne is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 20 September 2014, 2:08 AM EDT
Posts: 1,040
Thanks: 62
Thanked 216 Times in 204 Posts
Connect to Windows from Linux using NetCat

Hi

Need help to connect from Ubuntu to Windows using NetCat nc
I can not get my script to send new-line

Her is what I have tried
Code:
(sleep 2 ; echo user ; sleep 1; echo pass; sleep 2; echo netstat) | nc -t 10.10.10.34 23

gives this output
Code:
%'Welcome to Microsoft Telnet Service

login: user44passnetstatroot@magnus

Also tried echo "user/n"
Sponsored Links
    #2  
Old 11-18-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 October 2014, 4:38 PM EDT
Location: Saskatchewan
Posts: 19,683
Thanks: 823
Thanked 3,352 Times in 3,139 Posts
This is the sort of thing you'd use expect for. Especially autoexpect which can read an interactive session and turn it into a script...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Steps to connect linux (Ubuntu) machine from windows 7 diehard Ubuntu 1 05-08-2012 01:24 AM
Help!! trying to connect to linux SSH from windows putty client Jtyreman Linux 1 05-01-2012 05:03 AM
Connect to Oracle in Windows XP from Linux HOST Zimbu Shell Programming and Scripting 3 03-23-2011 01:11 AM
How to connect SFTP(Linux) from Windows DOS mohantmk Windows & DOS: Issues & Discussions 15 04-06-2009 03:02 PM
How do I connect windows xp to Linux Red hat unix TRUEST UNIX for Advanced & Expert Users 7 11-21-2002 11:02 AM



All times are GMT -4. The time now is 05:23 PM.