Jump to content

So I have set up netcat on my windows 7 virtual machine to opens port 449 and -e cmd.exe. This allows me to run a terminal on my the main os Linux and execute CMD commands without needing for me to open the VM. My problem is that while in the VM I can use wget just fine but when doing it remote I get

 

~ $ nc 192.168.1.3 449
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>wget 
wget 
'wget' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>

Any Ideas on how to fix this?

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/725364-netcat/
Share on other sites

Link to post
Share on other sites

windows doesn't come out of the box with support for wget

 

You'll need to either use the powershell, or install wget for windows

 

relevant link

 

http://superuser.com/questions/25538/how-to-download-files-from-command-line-in-windows-like-wget-is-doing

Link to comment
https://linustechtips.com/topic/725364-netcat/#findComment-9227647
Share on other sites

Link to post
Share on other sites

17 minutes ago, MrBucket101 said:

windows doesn't come out of the box with support for wget

 

You'll need to either use the powershell, or install wget for windows

 

relevant link

 

http://superuser.com/questions/25538/how-to-download-files-from-command-line-in-windows-like-wget-is-doing

 
 

I have wget installed, when I am in the virtual machine I can use wget from the command prompt.rcmd

 

 

Screenshot from 2017-01-19 14-06-43.png

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/725364-netcat/#findComment-9227711
Share on other sites

Link to post
Share on other sites

1 hour ago, MrBucket101 said:

file paths maybe?

VM is @ C:\Users\user

other is @ C:\Windows\system32

 

 

I tried that, doesn't matter where the remote is at it still doesn't recognise it.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/725364-netcat/#findComment-9228241
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×