Wednesday, 4 April 2012

ICND1 CRAMM SHEET

QUICK Reference (ICND 1)


Protocol :- Predefined set of rules to communicate


Network Applications
  • Email
  • Collaboration 
  • Messaging 
  • Web Browsing 
  • Databse applications
Speed = Data Rate 
Availability  = Likelihood network is avialable 
Scalability= How well network can scale 
Topology= Physical components  of network like cable, switches, router

  
Network Security (Type of Attacks)
 
Passive attack :- Sniffing aata like capturing password on the wire or wireless
Active attack :- Actively try to invade security , adding malicious code
Inside attack:- Attack from authorised users
Close in Attack :- Attack with in close physical proximity
Distribution:- Attack launched during distribution phase of any hardware of software. 

Network Security Process 

Security is  ever evolving process 
  1. Secure 
  2. Monitor 
  3. Test
  4. Improve 
 
Reconnaissance attack(Gathering Information like sniffing data , Ping Sweep)
Access Attack
  • Password Attack 
  • Trust Exploitation
  • Port Redirection
  • Man-in-the Middle
  • Buffer Overflow.
Application Layer Attack 
  •  Exploiting well known weekness in the software
  • Trojon programms that loggs the key. 
  • Password stealing
  •  Java or activeX codes that work maliciously
Managament / Monitoring Protocols
  • Telent (but information is sent in Plain txt) 
  • SSH (secure encrypted communication)
  • Secure Socket Layer (SSL)
  • Monitoring Protocols (SNMP, syslog, NTP, TFTP)
OSI Reference Model  
 
All People Seem To Need Data Processing
 
TCP UDP = Transport Layer 
Router, ICMP, IGMP, IP = Network Layer 
802.3 802.2 Framerelay, HDLC = Data Link Layer

Data  = Application Layer
Segment = Transport Layer
Packet = Network Layer
Frames = Data Link Layer
Bits = Physical Layer

TCP  = Connection Orieneted  (More overheads, Confrmation of delivery)
IP, UDP= Connection Less (best effort, no recovery of lost packet)

CLASS of IP Address 



CLASS A: 1.0.0.0 to 126.0.0.0
Class B: 128.0.0.0 to 191.255.0.0.
Class C: 192.0.0.0 to 223.255.255.0.
Class D: 224–239
Class E: 240 - 255


RFC 1918 Private IP Address Range

–10.0.0.0 to 10.255.255.255
–172.16.0.0 to 172.31.255.255
–192.168.0.0 to 192.168.255.255 

IPV6 

16 Octet
128 Bits
A524:72D3:2C80:DD02:0029:EC7A:002B:EA73 
 
 
TCP Header 
URG: Urgent Pointer field significant
ACK: Acknowledgment field significant
PSH:  Push Function application need data to be pushed immediately
RST:  Reset the connection
SYN:  Synchronize sequence numbers
FIN:   No more data from sender 
 
PORTS
  • ü  0 to 1023 are well-known ports.
  • ü 1024 to 49151 are registered ports
  • ü 49152–65535 are unregistered
 TCP/IP Applications
FTP = TCP based File transfer (TCP 21 Port)
TFTP= UDP based used to transfer Cisco IOS or configuration  (UDP 69 Port)
Telnet= Terminal Emuletion Command line  (TCP 23)
SMTP= Email delivery (TCP 25)
SNMP= Network Manamgement Protocol.  (UDP 161)
DHCP= Assign IP address automatically
DNS= Name to IP resolution  (Both TCP, UDP 53)

TCP 3 Way HandShake 
 

LAN Traffic Types 

  • Unicast (one to one communication)
  • Broadcast (one to any Communication)
  • Multicast (from one to Subnet of users)
Address Translation 

Inside local address =IP address assigned to a host on the inside network

Inside global address= A public IP address assigned by the ISP that represents one or more inside local IP addresses to the outside world.

Outside global address = IP address assigned to a host on the outside network

Outside local address = IP address of an outside host as it appears to the inside

When a host on an Ethernet LAN has information to send, the following steps are taken:1. A device with a frame to send listens until Ethernet is not busy CSMA/CD.
2. When the Ethernet is not busy, the sender begins sending the frame.
3. The sender listens to make sure that no collision occurred.
4. Once the senders hear the collision, they each send a jamming signal, to ensure that all
stations recognize the collision.
5. After the jamming is complete, each sender randomizes a timer and waits that long.
6. When each timer expires, the process starts over with step 1.
 
 
MAC Address
  • Layer 2 address 
  • Hexa Decimal Formate 
  • 48 Bits = 24 bits of Vandor ID + 24 bits of Unique ID
 
 Wireless
 IEEE 802.11a: 54 Mbps in the 5.7 GHz ISM band
 IEEE 802.11b: 11 Mbps in the 2.4 GHz ISM band
 IEEE 802.11g: 54 Mbps in the 2.4 GHz ISM band

 IEEE 802.11n: 300 +Mbps in the 2.4 and  5GHz ISM band

Wireless Security

  • WEP (Basic Enryption , not good)
  • 802.1x EAP  (Use dynamic Keys, User authentication)
  • WPA WiFi Protected access
  • WPA2 (Most Strongest uses AES for Encryption)
Configuring Port Security on Switch

SwitchX(config)# interface fa0/5
SwitchX(config-if)# switchport mode access
SwitchX(config-if)# switchport port-security
SwitchX(config-if)# switchport port-security maximum 1
SwitchX(config-if)# switchport port-security mac-address sticky
SwitchX(config-if)# switchport port-security violation shutdown


Keypoints
  • Switches increases the number of collisions domains in the network
  • Switches are multiport bridges that allow you to create multiple broadcast domains 
  • Switches and bridges work on L2 
  • Primary functions of a router are: Packet Switching and Path Selection
  • A straight-through cable is used to connect two different devices
  • Layer 4 functions are error recovery and flow control
  • Transport layer provides reliable networking via acknowledgments, sequencing,
    and flow control.
  • HTTPS is the secured version of the HTTP application, which normally uses 128 bit SSL
    encryption to secure the information uses port 443
  • VOIP systems utilize UDP because it is faster and uses less overhead
  • Spanning-Tree Protocol (STP) is a Layer 2 protocol
  • STP is used to avoid switching loops 
  • CDP is a device discovery protocol that runs over Layer 2
  • Crossover cable is used to connect two of the same device types
  • 100BaseT  (UTP, STP) has a distance restriction of 100 meter or 328 Feet
  • IEEE 802.3z standard describes 1000BASE-SX (Gigabit Ethernet)
  • Switches forward broadcast but routers do not forward broadcasts (by default)
  •  RIPv2 carries subnet mask information allowing for VLSM
  • For point to point Link  /30 IP address is used.
  • Network Address Translation (NAT) can be used to hide the private IP addressing
  • NVRAM-Nonvolatile RAM stores the initial or startup configuration file.
  • 0x2102, is the normal config-register

Monday, 5 March 2012

What ports are open on the computer


One of the most common question is see users asking
How i can find what ports are open on my computer

you can uses NETSTAT command to check what ports
are open on your computer .


netstat -an |find /i "listening"

Listening will show you what ports are open and
if you replace listening with established it will
show you all the ports you have connection established.


netstat -an |find /i "Established"

I still suggest you to use port scanner to
find out what ports are open on your computer.

Friday, 2 March 2012

Recover Cisco Switch Password

Hi Every one , This post mainly focus how to retrieve Cisco switches password, Most of the time you forget the password and some time during creation of Configuration you normally copy spaces next to the password and you end up messing the encryption key and unable to logon.

This post will describes the password recovery procedure for the Cisco 2900XL/3500XL, 2940, 2950/2955, 2960, and, 3560, 3750 Series.

1. Connect your computer with switch using terminal emulation i.e. Hyper Terminal to the console port of the switch.

2. Unplug the power cable and plug it back in.

3. Hold down the mode button located on the left side of the front panel, while you reconnect the power cable to the switch.
You will see the following message

The system has been interrupted prior to initializing the flash file system to finish loading the operating system software:


4. you will be on the prompt
switch:

Now issue flash_init

switch: flash_init

This will initialize the flash


5. Issue the load_helper command.

switch: load_helper

Then issue the following command.

Switch: Dir Flash:

you will see the list of files one of the file will like as below

Config.text

This is the configuration file that holds the configuration and password of your switch
that you might have forgotten.

6. Now we have rename the file by issuing the follwoing command

switch: rename flash:config.text flash:config.old

7. Now issue the boot command to reboot the switch with no config.

switch: boot Loading "flash:c3500xl-c3h2s-mz.120-5.WC7.bin"...#############################

File "flash:c3500xl-c3h2s-mz.120-5.WC7.bin" uncompressed and installed,entry point: 0x3000 executing..

8. As switch have booted without any configuration (we have renamed the config file) switch will go into auto configuration wizard .


enter n for NO

--- System Configuration Dialog ---
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'. Continue with configuration dialog?
[yes/no]: n

9. Hit enter and you will be in EXEC Mode

Switch>

write enable it will take you to Exec mode without asking any password.

switch#

10. now rename the config file again as default.

Switch#rename flash:config.old flash:config.text Destination filename [config.text]


11. Copy the configuration file into memory.

Switch#copy flash:config.text system:running-config Destination filename [running-config]?

your old configuration file will be reloaded into the system now you have to setup password

Switch(config)#enable secret yournewpassword


setup line vty or console password if you forgot them as well .



12. finally you are done , Write mem and save the config .

Switch#write memory

Friday, 10 February 2012

BTJUNKIES


Most of you BTjunkie as being one of the largest torrent file sharing website.

5th Feb Sunday night, the site suddenly shut down voluntarily.

Though the site never had any legal action taken against it like Pirate Bay or MegaUpload, I beleive its owners probably didn’t want to go through the same problem there Sister Sites have been through. thro This is a very smart move since it was rated amongst the top five torrent sites in most polls over the Internet




This all is to Stop Online Piracy Act (SOPA) and PROTECT IP Act (Preventing Real Online Threats to Economic Creativity and Theft of Intellectual Property Act, or PIPA)



The PROTECT IP Act says that an "information location tool shall take technically feasible and reasonable measures, as expeditiously as possible, to remove or disable access to the Internet site associated with the domain name set forth in the order". In addition, it must delete all hyperlinks to the offending "Internet site"



Tuesday, 7 February 2012

Hyper Terminal in Windows 7


If you’ve recently upgraded to Windows 7 and are banging your head to find HyperTerminal, then you’re not alone!

HyperTerminal was a little program that let you connect to other devices.

Windows 7 will no longer provide HyperTerminal program. If you need HyperTerminal to control serial devices, there is a trick to get it back

However, there are several new alternatives to HyperTerminal that are probably better for secure shell access. use the following

winrs /?

If you still miss Hyper Terminal and you cannot live with out it then you can actually extract two files from your XP installation and copy them over to Windows 7.

The two files you will need are

hypertrm.dll

hypertrm.exe




Simply copy those files into any directory on your machine and it will work. You should be able to find hypertrm.exe in C:\Program Files\Windows NT and


hypertrm.dll in C:\Windows\System32.

If you have the Windows XP CD, you should be able to find both of these files in the i386 directory on the CD.


since Hyper treminal is not available you still have alternative


Putty

Tera Term



Enjoy.... :)

Thursday, 12 January 2012

Warning Turn Facebook RED , Black, PINK


Switch to pink Facebook!!!


Don't fall for online scams you might receive invite from your Facebook friends if you have any :) inviting you to switch your boring blue Facebook profile logo to Pink, Black and some others

amazingly at the time of this blog the total invite figure stands at Invited (126,511)


Switch to Pink Facebook (Limited Time!) as shown above


Say goodbye to the boring blue profile and say hello to the pink profile!!


If you click on one of the link you are asked to share the link with your friends and BBB ang ... this is where it goes fishy, do you think any legitimate organization or application would need you to share something before you experience if it is good or just a scam/ waste of time.

Once you do this you are asked to leave comments and any comments you leave will be seen by others and encourage them to start clicking which will give more traffic to the scammer which is a survey. More people do the survey more money scammer will get.if you have not received this Scam message yet please check your Facebook page to ensure that you are not spreading any spammed messages

You would see some messages Like this , they fall into this scam but messaging other dont trust :)


Wednesday, 21 December 2011

Quick Cisco Switch and Router Troubleshooting

Haye.. !! some helpful quick troubleshooting commans

show run sec class-map
show run sec policy-map
sh run sec router
sh run sec crypto
sh run inc ip access-group
sh run inc ip local
sh run inc ip policy
sh run inc service-policy
sh run inc ip access-group
sh run inc vlan filter