.

A slightly noob subnet mask question

<<

Dranex

User avatar

Newbie
Newbie

Posts: 16

Joined: Thu Dec 01, 2011 2:38 pm

Post Thu Dec 01, 2011 2:47 pm

A slightly noob subnet mask question

Hi guys, new forum member here!

I'm currently studying like crazy with the hope of doing an OSCP qualification when I learn enough, but as my question was network related I thought it maybe best to post it here..


I've been following this guide
http://www.infiltrated.net/pentesting101.html

and learning all the essential areas it describes until i get to the following line from the networking part..

"You will need a firm grasp on subnetting. The differences between a Class A, B and C network, and no a Class C is not a slash twenty four (/24). If that came as a surprise to you, then you seriously need to go back and read. "

This has confused me a LOT, from my previous University studies I was lead to believe that a Class C subnet IS slash 24 (/24) as it has 24 of the possible 32 bits active (255.255.255.0) and pretty much everything i've researched has backed that up.. have I missed something obvious here??
<<

l33t5h@rk

User avatar

Jr. Member
Jr. Member

Posts: 79

Joined: Tue Nov 22, 2011 12:06 am

Post Thu Dec 01, 2011 3:08 pm

Re: A slightly noob subnet mask question

Perhaps they mean don't just think that because something has a /24 that means it's a Class C?

Network classes & first octets (for classful networks)
A 0 - 127
B 128 - 191
C 192 - 223
<<

Triban

User avatar

Hero Member
Hero Member

Posts: 620

Joined: Fri Feb 19, 2010 4:17 pm

Post Thu Dec 01, 2011 3:14 pm

Re: A slightly noob subnet mask question

Some elaboration on l33t5h@rk's info...

You can take a Class A/B network and subnet it down further to smaller networks.  for instance 10.0.0.0/24, the octets fall into a Class A network but the CIDR notation makes it look as if it is a Class C.  It may contain the same number IPs but it is part of a much larger network.

Someone correct me if I am off, but that is how I interpret it.
Certs: GCWN
(@)Dewser
<<

l33t5h@rk

User avatar

Jr. Member
Jr. Member

Posts: 79

Joined: Tue Nov 22, 2011 12:06 am

Post Thu Dec 01, 2011 3:32 pm

Re: A slightly noob subnet mask question

3xban wrote:You can take a Class A/B network and subnet it down further to smaller networks.  for instance 10.0.0.0/24, the octets fall into a Class A network but the CIDR notation makes it look as if it is a Class C. 


What he said  :D

This is the only way I can see the comments making sense is if it was served as a warning as opposed to a fact.
<<

lorddicranius

User avatar

Sr. Member
Sr. Member

Posts: 448

Joined: Thu Mar 03, 2011 3:54 am

Post Thu Dec 01, 2011 3:39 pm

Re: A slightly noob subnet mask question

Exactly what l33t5h@rk and 3xban have said.  Cisco has a good tutorial on subnetting:

http://www.cisco.com/en/US/tech/tk365/t ... 67f5.shtml

As well as Wikipedia's page on subnetting:

http://en.wikipedia.org/wiki/Subnetwork
GSEC, eCPPT, Sec+
<<

KrisTeason

User avatar

Hero Member
Hero Member

Posts: 515

Joined: Sat Sep 08, 2007 7:48 pm

Location: /dev/null

Post Thu Dec 01, 2011 4:51 pm

Re: A slightly noob subnet mask question

Hi Dranex,

Welcome to EthicalHacker.net ! Just incase this helps, I've compiled a decent size list of video links that'll should bring you up to par on Subnetting.

Subnetting in 6 Easy Steps Part 1
http://www.youtube.com/watch?v=wl5_J0UtINg

Subnetting in 6 Easy Steps Part 2
http://www.youtube.com/watch?v=vi1dtaQ1FEo

Subnetting in 6 Easy Steps Part 3
http://www.youtube.com/watch?v=F68dgzY652k

I've uploaded the bottom two that were taken directly from a college class I took called TCP/IP Protocols.

Subnetting Secrets - 26 Bit Mask Example
http://www.youtube.com/watch?v=A9Ica4EfDU8

Subnetting Example
http://www.youtube.com/watch?v=93F1Vbc2ya8
eCPPT (Silver/Gold), eWPT, GSEC, GISP, GCIH, OSCP, OSWP
<<

Dranex

User avatar

Newbie
Newbie

Posts: 16

Joined: Thu Dec 01, 2011 2:38 pm

Post Thu Dec 01, 2011 5:42 pm

Re: A slightly noob subnet mask question

Overwhelmed by the help guys, really appreciated.
<<

El33tsamurai

User avatar

Full Member
Full Member

Posts: 219

Joined: Sat Feb 03, 2007 4:01 pm

Post Thu Dec 01, 2011 7:15 pm

Re: A slightly noob subnet mask question

Are you planning on taking the OSCP soon?
CCENT, A+, Network+, Security+
<<

Dranex

User avatar

Newbie
Newbie

Posts: 16

Joined: Thu Dec 01, 2011 2:38 pm

Post Fri Dec 02, 2011 8:42 am

Re: A slightly noob subnet mask question

I would love to, but i'm a few months of learning away I think, I would love to learn python first too, but i'm not sure exactly how essential that would be..
<<

Dranex

User avatar

Newbie
Newbie

Posts: 16

Joined: Thu Dec 01, 2011 2:38 pm

Post Fri Dec 02, 2011 8:56 am

Re: A slightly noob subnet mask question

Exactly what point do I need to be at before I should be comfortable taking it on with the course materials and research supplementing?

I studied Computing in Uni (Forensics unfortunately, wishing I went down the security route to begin with) so my knowledge of computing is pretty high, most of the stuff we did was with Windows but from a personal geekage point of view I understand Backtrack Linux pretty well now.

I understand networking and the layouts, the OSI model, TCP/IP, Subnetting (thanks to the help you guys left me). I learnt Vivek's Metasploit Megaprimer about a thousand times and read the pentesting with Metasploit book, so i'm pretty comfortable with msf now too.

Is an exploit friendly language the next step or is there somewhere I could better spend my time such as specific exploits, SSH tunneling, SQL injections?

Any help you can give is always greatly appreciated.

(p.s. If you think this question is better off moved to the OSCP specific section I understand)
<<

Triban

User avatar

Hero Member
Hero Member

Posts: 620

Joined: Fri Feb 19, 2010 4:17 pm

Post Fri Dec 02, 2011 9:36 am

Re: A slightly noob subnet mask question

I was trying to look for the thread were someone put together a very simple list of things you should know before hitting the test but I couldn't find it.  But luckily I jotted it down for my own reference:

Learn Python Scripting (diveintopython.org) - I have also been using learnpythonthehardware.org

BASH Scripting

Know what assembly language looks like (book - Hacking: the art of exploitation by John Erickson)

Organizational skills for all the data you will enumerate

A joy of puzzles


Whoever wrote that please chime in. 
Certs: GCWN
(@)Dewser
<<

rattis

User avatar

Hero Member
Hero Member

Posts: 1172

Joined: Mon Jul 27, 2009 1:25 pm

Post Fri Dec 02, 2011 12:00 pm

Re: A slightly noob subnet mask question

I know johy come late, but the thing to remember

Classful networking. Class A, B, C, D and E (if I remember them correctly)

CIDR (Classless Inner Domain Routing) you're slashes and subnets. (if I remember correctly) :)

Back in the 90s, I worked for one of the original six backbone providers. I remember it took two of us, to explain to an ISP the concept of CIDR. They were used to classes, not the classless.
Last edited by rattis on Fri Dec 02, 2011 12:01 pm, edited 1 time in total.
OSWP, Sec+
<<

eth3real

User avatar

Sr. Member
Sr. Member

Posts: 309

Joined: Wed Feb 27, 2008 10:35 am

Location: US

Post Fri Dec 02, 2011 12:05 pm

Re: A slightly noob subnet mask question

3xban wrote:learnpythonthehardware.org

Should this be learnpythonthehardway.org?

I haven't used either of those sites, but I'm going to have to give them a shot. :)
Put that in your pipe and grep it!
<<

Triban

User avatar

Hero Member
Hero Member

Posts: 620

Joined: Fri Feb 19, 2010 4:17 pm

Post Fri Dec 02, 2011 12:41 pm

Re: A slightly noob subnet mask question

woops  yeah way not ware :D
Certs: GCWN
(@)Dewser
<<

El33tsamurai

User avatar

Full Member
Full Member

Posts: 219

Joined: Sat Feb 03, 2007 4:01 pm

Post Sat Dec 03, 2011 10:34 am

Re: A slightly noob subnet mask question

Dranex wrote:I would love to, but i'm a few months of learning away I think, I would love to learn python first too, but i'm not sure exactly how essential that would be..


I am taking the class right now and I would say basic python skills are needed.

http://code.google.com/intl/ru/edu/languages/google-python-class/
CCENT, A+, Network+, Security+

Return to Networking

Who is online

Users browsing this forum: No registered users and 0 guests

cron
.
Powered by phpBB® Forum Software © phpBB Group.
Designed by ST Software