Unix/Linux Go Back    

IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Help with Netcat

IP Networking

Thread Tools Search this Thread Display Modes
Old Unix and Linux 09-12-2012   -   Original Discussion by MrCrumbs
MrCrumbs's Unix or Linux Image
MrCrumbs MrCrumbs is offline
Registered User
Join Date: Sep 2012
Last Activity: 12 September 2012, 9:30 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Help with Netcat

Hi all,

I know my question is regarding Windows and not Linux, but I simply need people who know Netcat pretty well and I'm guessing here is a good place for that. So on with my question.

I'm doing some research, and I was playing around with netcat on a WinXP VM but I can't seem to get something.

I tried this command:

nc -l -p 80 -e "c:\notepad.exe"
(I copied notepad.exe to c:\ folder)

But what happens is simply that netcat closes and does nothing. It does connect, because if I leave the command without the "-e" parameter like this:

nc -l -p 80

It does show me an output. But when I add the "-e" and any program (I tried cmd, and others) - nothing will execute, and netcat simply shuts down.

Any ideas?
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with sed to add delimiter to send HEX with netcat patx Shell Programming and Scripting 3 12-30-2011 10:16 AM
Post using nc(netcat) ajaypadvi Shell Programming and Scripting 3 07-27-2011 08:04 AM
netcat MartyIX Shell Programming and Scripting 6 08-22-2008 07:29 AM
Netcat with Authentication? pileofrogs UNIX for Advanced & Expert Users 1 12-04-2006 09:48 AM
netcat like file transfer linuxdba Programming 2 04-28-2005 06:10 AM

All times are GMT -4. The time now is 01:22 AM.