|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
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
|
|||
|
|||
|
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 | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|