Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 39 guests and 1 member online
You are here:
Home
Resources
Tools
opening a port through command promt.
EH-Net
May 26, 2013, 03:41:50 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Resources
>
Tools
(Moderator:
don
) >
opening a port through command promt.
Pages: [
1
]
2
Go Down
« previous
next »
Print
Author
Topic: opening a port through command promt. (Read 15949 times)
0 Members and 1 Guest are viewing this topic.
proudindian
Newbie
Offline
Posts: 32
opening a port through command promt.
«
on:
December 31, 2007, 02:54:11 AM »
can you provide me the information how we can open a port through command promt?
Logged
BillV
Hero Member
Offline
Posts: 1892
Re: opening a port through command promt.
«
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
Posts: 32
Re: opening a port through command promt.
«
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
Recruiters
Full Member
Offline
Posts: 208
Re: opening a port through command promt.
«
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, CISA, GCIH, GREM, CEH, HMFIC, KTHXBIROFLCOPTER
proudindian
Newbie
Offline
Posts: 32
Re: opening a port through command promt.
«
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
Posts: 428
Re: opening a port through command promt.
«
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
Posts: 394
Re: opening a port through command promt.
«
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-)
Sr. Member
Offline
Posts: 393
c0c0n Hacking Conference - where hackers unite
Re: opening a port through command promt.
«
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
MVP (Enterprise Security), ISLA-2010 (ISC)², C|EH, C|HFI, CCNA, MCP,
Certified ISO 27001:2005 Lead Auditor
There are 3 roads to spoil; women, gambling & hacking. The most pleasant with women, the quickest with gambling, but the surest is hacking - c0c0n
proudindian
Newbie
Offline
Posts: 32
Re: opening a port through command promt.
«
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....
Logged
Kev
Sr. Member
Offline
Posts: 428
Re: opening a port through command promt.
«
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
Posts: 3
Re: opening a port through command promt.
«
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
Posts: 4169
Editor-In-Chief
Re: opening a port through command promt.
«
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, CSTA, Security+ SME
jigkin22
Newbie
Offline
Posts: 4
Re: opening a port through command promt.
«
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
Sr. Member
Offline
Posts: 309
Re: opening a port through command promt.
«
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
Put that in your pipe and grep it!
Andrew Waite
Hero Member
Offline
Posts: 928
Re: opening a port through command promt.
«
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
un
ethicalhacker.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
--
http://www.infosanity.co.uk
--
http://blog.infosanity.co.uk
Pages: [
1
]
2
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(95) by
zeebee
News Items and General Discussion About EH-Net
: Change is Coming to EH-Net!!
(30) by
don
Tools
: Symbolic Exploit Assistant project is looking for collaborators
(0) by
galapag0
Greetings
: Hi from the UK
(5) by
prats84
GCIH - GIAC Certified Incident Handler
: Passed my GCIH
(9) by
prats84
Network Pen Testing
: Want a challenge? Want a GXPN practice exam?
(0) by
ajohnson
GCIH - GIAC Certified Incident Handler
: GCIH Free Practice test attempt
(1) by
prats84
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.