Fedora Linux Support Community & Resources Center
  #1  
Old 5th October 2004, 07:04 PM
Obocaman Offline
Registered User
 
Join Date: Sep 2004
Posts: 5
what is the equivalent to cmd.exe in linux?

My question is whether I can ldo something like nc -l -p [port] -t -e cmd.exe with a Linux system. If it can be done, then what is the equivalent to cmd.exe in linux (the terminal) and how do I invoke it. If it can't, why is that so?

Thank you.
Reply With Quote
  #2  
Old 5th October 2004, 07:06 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
I am very sorry, I am not very used to Windows, so I don't have an idea what this command does, maybe you can explain it and I might tell you a Linux alternative.

//edit:
Ok, found something :
http://www.liutilities.com/products/...sslibrary/cmd/

There are different prompts. The one used default in fedora is
/bin/bash
there is also
/bin/bsh
and also
/bin/csh

//2nd edit:
If you want to use the prompt from a remote machine better use telnet or ssh. (Ssh is the best, because it is not plain text, but crypted)
__________________
--
http://twitter.com/ik12

Last edited by ilja; 5th October 2004 at 07:11 PM.
Reply With Quote
  #3  
Old 5th October 2004, 07:26 PM
Obocaman Offline
Registered User
 
Join Date: Sep 2004
Posts: 5
Thank you for repplying,
I have tried nc -l -p 53 -t -e /bin/csh but netcat doesn't understand the command.
Basically what I want is to know how to listen on any port with netcat so I it will give the client a shell.
The cmd.exe in windows is just the shell . Anyway, the reason why I want to use netcat rather than Ssh or telnet is that i want to be able to listen on any port.
Reply With Quote
  #4  
Old 5th October 2004, 07:38 PM
RHamel Offline
Registered User
 
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 560
According to the man pages nc will only support -e if nc was compiled with the GAPING_SECURITY_HOLE compile time option, since it allows users to make arbitrary programs available to anyone on the network. Also port 53 is suppose to be reserved for DNS traffic. Hope this helps.
Reply With Quote
  #5  
Old 5th October 2004, 07:58 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
Ok, first of all I have to admit, I don't have an idea what you are going to do.
But there is the programm called xinetd, that listens to any port and starts applications that are requested. But as far as I understand this app the services have to offer any network services. And a shell deosn't (please prove me wrong, if it is not true). So please see man xinetd
__________________
--
http://twitter.com/ik12
Reply With Quote
  #6  
Old 5th October 2004, 08:25 PM
jimbo Offline
Registered User
 
Join Date: May 2004
Location: Seattle
Posts: 77
Just my two cents but I would just use SSH. You can configure it to listen on whatever port you want and not just the default (22).
Reply With Quote
  #7  
Old 5th October 2004, 08:33 PM
RHamel Offline
Registered User
 
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 560
Could be that Obocaman wants to capture DNS records in which case tcpdump might be the way to go.
Reply With Quote
Reply

Tags
cmdexe, equivalent, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the Linux equivalent of SlowJet Using Fedora 6 26th January 2007 05:33 AM
Quicken equivalent on Linux ltam Using Fedora 11 26th November 2006 12:00 PM
Quickbooks equivalent in linux sailu_mvn Using Fedora 3 28th November 2005 10:40 AM
looking for linux equivalent to Magix Impeteperry Using Fedora 4 15th June 2004 04:31 PM


Current GMT-time: 09:28 (Saturday, 25-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Molfetta - Marion Instagram Photos - Katwijk aan Zee Instagram Photos