Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 9 guests and 1 member online
EH-Net Donations

Enter Amount:
$

Google Ads
ChicagoCon 2008f
chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f
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
August 29, 2008, 01:42:01 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Registration Now Open for ChicagoCon 2008f Oct 27 - Nov 2! Visit www.chicagocon.com.
 
   Home   Help Calendar Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: opening a port through command promt.  (Read 6449 times)
0 Members and 1 Guest are viewing this topic.
proudindian
Newbie
*
Offline Offline

Posts: 32


View Profile
« on: December 31, 2007, 02:54:11 AM »

can you provide me the information how we can open a port through command promt?Huh
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 771


View Profile
« Reply #1 on: December 31, 2007, 08:47:29 AM »

Umm.. can you elaborate a little on what you're trying to accomplish?
Logged
proudindian
Newbie
*
Offline Offline

Posts: 32


View Profile
« Reply #2 on: December 31, 2007, 11:06:58 AM »

i want to run a programme in a port so,how i can open that port through cmd?
Logged
pseud0
Full Member
***
Offline Offline

Posts: 131



View Profile
« Reply #3 on: December 31, 2007, 11:24:43 AM »

I'm not 100% clear on what you want, but the way to think about this is that you run a program and it is assigned a port by the OS.  You don't open a port then relate it to a program.  It would help if we knew why you were opening the port.  What is it supposed to do?
Logged

CISSP, CISM
proudindian
Newbie
*
Offline Offline

Posts: 32


View Profile
« Reply #4 on: December 31, 2007, 11:41:00 AM »

want to know how a remote port can be open..and how we can connect to the port and run a programme in a system...
Logged
Kev
Sr. Member
****
Offline Offline

Posts: 304


View Profile
« Reply #5 on: December 31, 2007, 11:54:47 AM »

You need to study netcat. Then learn a little coding and you can assign a port to open in your program as long as there in no conflict. You cant just open a port with a windows command in the command prompt.
Logged
g00d_4sh
Sr. Member
****
Offline Offline

Posts: 279



View Profile
« Reply #6 on: December 31, 2007, 12:03:15 PM »

Ahhh... so you wish to know how to open a port on a remote system.  Such as port 23 for telnet or whatnot.   Well, if the port is closed, you're going to need to either run an exploit that drops a shell, or utilize what is open in an inginuitive way... such as is shown in this month's challenge. I'm of course assuming you want to open a port on a remote computer and not your own.
Logged

"Bad.. Good?  I'm the guy with the gun"
Manu Zacharia (-M-)
Full Member
***
Offline Offline

Posts: 181



View Profile WWW
« Reply #7 on: December 31, 2007, 08:02:09 PM »

What he is trying to convey his, he want to open a closed port on a remote machine, so that he can get connected.

Correct me if i am wrong.
Logged

Manu Zacharia
Certified ISO 27001:2005 (Information Security Management System) Lead Auditor
Promote the Information Security Day
Visit - http://www.informationsecurityday.com
proudindian
Newbie
*
Offline Offline

Posts: 32


View Profile
« Reply #8 on: January 01, 2008, 02:31:33 AM »

yes,most of the times telnet port is closed,yes,i want to open a closed port on a remote machine.....

But how....Huh
Logged
Kev
Sr. Member
****
Offline Offline

Posts: 304


View Profile
« Reply #9 on: January 01, 2008, 03:21:26 AM »

There needs to be a service or program on the other machine that is responding to your command on the remote machine. For instance, If I have managed to have installed a trojan on the remote box, I can have that respond back to me on a port of my choosing as long as there is not a conflict.
Logged
0cyberkill0
Newbie
*
Offline Offline

Posts: 3



View Profile
« Reply #10 on: January 19, 2008, 06:58:02 PM »

First off you should try scanning the ip with a port scanner. If the telnet port is closed than your best chance  would be to nbtstat their computer... You can google it and find tutorials on how to do it. Note though nbtstat will only work if the victim has file sharing enabled...
Logged

----->000000CYBERKILL00000<--------
don
Editor-In-Chief
Administrator
Hero Member
*****
Offline Offline

Posts: 2229


Editor-In-Chief


View Profile WWW
« Reply #11 on: January 19, 2008, 10:41:49 PM »

Think of ports as being like phones. If a phone is unplugged, your call will not be recieved. So you can call all you want, and you'll continue to get no response. If the phone is plugged in, then it will recieve your call. What it does with that call (talk to someone, VM, call forwarding, fax, etc.) depends on what service it offers. If the phone is on, but there is a block on certain numbers calling in or it possibly only allows outbound calls and not incoming calls, that is like a firewall. I could go on with this analogy, but I think you get the point.

So being able to open a port would like asking someone to plug in the phone that uses the number you happen to be calling. Or in your case, if you manage to get a command prompt, then plug in the phone yourself... start a service. Either start one that the system already has on it but not running or upload one of your own like netcat in listening mode. Now your phone is on and ready to provide a service.

On the other hand, if there is a firewall in place, then you may have to contend with that, too.

Hope this helps,
Don

PS - Welcome to EH-Net 0cyberkill0.
Logged

CISSP, MCSE, CEH, Security+ SME
jigkin22
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #12 on: March 29, 2008, 12:44:17 PM »

Thanks you all of you guys whoever posted their views. However, which things do i have to get in order to connect or open port of the remote pc? Example: IP address and MAC address? I have my friend's static ip address and mac address and he is running windows XP with service pack 2. Now which program should i use in order to get established connection? Please help. My concept is clear about opening a post but not sure about programming. Also, even if i get the program, how would i send to him pc?

Please someone clear my confusion.....thanks bros.

g.
Logged
eth3real
Full Member
***
Offline Offline

Posts: 130



View Profile
« Reply #13 on: March 29, 2008, 02:22:02 PM »

Unless you have permission from your friend to do this, it is illegal.

You already know that he is using Windows XP SP2. Use a program like Nmap to find out what else he might be running on his computer. If he is using a firewall, you will see that a lot of ports show up as "filtered". You have to find open ports, and try to exploit whatever he may be running (for example, if he is running an Apache server, find out what version he is running and search for known exploits for that version). If that doesn't work, try social engineering (to trick your friend into installing a service that will give you the desired exploit), or, if you have access to the computer itself, you can log on and install a program. If you don't know the password, you can use something like the "Offline NT Admin" disc to reset a password, such as the Administrator account. If he doesn't have antivirus software, you can easily install something like the backdoor "tini", or Abel.dll, either of which will give you a remote command prompt.

If you don't know where to find these tools, use Google.

This thread has given you all of the necessary steps to own a computer.
Logged

Jess Hires
MCP, C|EH
RoleReversal
Sr. Member
****
Offline Offline

Posts: 385


View Profile WWW
« Reply #14 on: March 30, 2008, 03:47:11 AM »

jigkin22,

assuming you have permission to communicate with your friends computer then, as others have stated, you will need to install/enable a service to enable that communication. Taking it a bit further you could try looking at the likes of Remote Desktop or VNC.

However, as eth3real as stated, if you don't have permission then what you are attempting is illegal and you may be at the wrong forum. try unethicalhacker.net instead.

Hopefully you are in the right place and will be able to use all of the advice that has been supplied so far. Happy hunting
Logged

A little bit of sanity:
http://www.infosanity.co.uk
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

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

EH-Net's
2nd Annual
Tweener Party
 

Thanks all. Click HERE for details.

Polls
Best for daily desktop use:
 
Support EH-Net
chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f


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

chicagocon2008f_125x200banner.jpg
ChicagoCon 2008f
 
         
Advertisement

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