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 75 guests online
You are here:
Home
Resources
Tutorials
Help with basic command prompt
EH-Net
May 20, 2013, 08:28:48 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
>
Tutorials
(Moderator:
don
) >
Help with basic command prompt
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Help with basic command prompt (Read 7756 times)
0 Members and 1 Guest are viewing this topic.
JayOni
Newbie
Offline
Posts: 21
Help with basic command prompt
«
on:
May 27, 2011, 07:45:28 PM »
First off I would like to say that I am still a student and just recently I just started learning how to use the cmd prompt and I hope nobody get mad at me for asking such a simple question.
I'm looking at PING, when I do PING <IP address> why does the same exact thing show as PING -a, <IP address>? I know -a is to resolve addresses to host names but im a little confused as to what that really means and why it would look like a normal PING.
Also I'd like to know what would be a point of a continuous ping using -t unless its an form of attack on a workstation. (And what would be the syntx to stop it the help file in my cmd promt says "to stop type control-c" would i type PING -c <ip address>?
Logged
hayabusa
Hero Member
Offline
Posts: 1631
Re: Help with basic command prompt
«
Reply #1 on:
May 27, 2011, 08:37:36 PM »
Hi JayOni.
First, ping -a will give you a hostname that an IP resolves to, if the IP is registered in DNS, or a nameservice. If not, you'll get the same address returned as a result, similar to what you get without the -a. So, it's useful if you have an IP you're looking at, and want to see what hostname belongs to the address. Say you review a log, and see an IP regularly hits your firewall. You might try -a, to see if you can determine the host. Subsequently, in a test, you might ping sweep a range of addresses, to see which are responding. You might then try to see what the ones are, that respond to the initial sweep.
Next, -t is handy if you're doing connectivity testing. For instance, if you suspect you have connection issues, or want to see if there's packet loss, etc, you might run a continuous ping, to see if you are not getting responses to all your ping packets (meaning it either dropped your outbound packets, or the return packets, somewhere.
There are other scenarios where you might use it, but that's one example.
As for stopping it, the combination of ctrl-c essentially stops the running ping process, in it's tracks. Like 'break'
«
Last Edit: May 27, 2011, 08:40:37 PM by hayabusa
»
Logged
~ hayabusa ~
"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'
OSCE, OSCP , GPEN, C|EH
JayOni
Newbie
Offline
Posts: 21
Re: Help with basic command prompt
«
Reply #2 on:
May 27, 2011, 08:43:08 PM »
ah thanks for helping me out very useful
. my classes are 5 weeks long and i couldnt afford to wait till tuesday (we got monday off) im constantly studying so i appreciate the timely response
Logged
JayOni
Newbie
Offline
Posts: 21
Re: Help with basic command prompt
«
Reply #3 on:
May 27, 2011, 08:49:23 PM »
May you could answer another noobish question, and keep in mind im not looking for a how to guide but more of general understanding.
I've been learning about ports and stuff and know like 15 of the main ports, but i've sorta been wondering how people (mostly hackers i would suppose) gain access threw ports to your computer remotely I know you have to have the port open and they would probably run a port scanner on you or something to see which ones you got going but how do they access it from there (do they use the command prompt or a 3rd party software)?
Logged
cd1zz
Hero Member
Offline
Posts: 561
Re: Help with basic command prompt
«
Reply #4 on:
May 27, 2011, 09:01:57 PM »
A port that is open means there is some software or hardware device that is listening for connections. The way to "get in" is to exploit that software or hardware that is listening. Usually crappy code causes these problems with this software/hardware.
A very basic example:
You do a port scan and see that port 21 is open which commonly used for FTP. You then enumerate the service to try and figure out which software is running that FTP server....you determine that it is SuperCrappyFTP version 1.0 . Then, you dig around on exploit databases and find out that there is a known buffer overflow exploit for that version. The rest you can figure out on your own. But that is how a hacker would gain access through an FTP port.
Logged
OSCE | OSCP | GXPN | OSWP | CISSP
http://www.pwnag3.com
http://www.networkadminsecrets.com
Pages: [
1
]
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
(88) by
hayabusa
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
General Certification
: CPT Practical Submission
(0) by
z28power4u
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.