OSPF special area configuration
redistribute static as E1 routes
conf t
router ospf 1
redistribute static subnets metric-type 1 50
metric-type 1 - increments the metric
metric-type 2 - don’t increment metric
block neighbour forming
conf t
router ospf 1
passive-interface default ( block all )
to enable per interface
conf t
router ospf 1
no passive-interface f...
dhcp configuraion
DHCP Configuration Commands:
ip dhcp pool VLAN_10
Creates a DHCP Pool named VLAN_10.
Within this Pool we will specify the items mentioned above.
network 172.16.10.0 255.255.255.0
Specifies the network for the DHCP Pool VLAN_10 as the 172.16.10.0/24 network.
default-router 172.16.10.1
Specifies the “default gateway” for the d...
tools
NETCAT
→ connect to:
nc -n (skip dns) -v 10.11.0.22 110
→ rdp to pc
rdesktop 10.11.0.22 -u offsec -p lab -g 1024x768 -x 0x80
→ configure nc listener on a pc
nc -nvlp 4444
→ connect to the pc with nc
nc -nv 10.11.0.22 4444
→ transfer files to / create a listener on pc
nc -nvlp 4444 > incoming.exe
→ create...
practical examples
find all domain pages and corresponding IP’s
wget www.megacorpone.com
extract all links from the file
grep “href=” index.html
grep “href=” index.html | grep “\.megacorpone” | grep -v “www\.megacorpone\.com” | head
extract more exact data from the file with awk
grep “href=” index.html | grep “\.megacorpone” | grep -...
65 post articles, 17 pages.