The search target requires INDEX-9. Please run make index or make fetchindex.

Solution:

# make fetchindex
/usr/ports/INDEX-9.bz2 100% of 1672 kB 194 kBps

Now, everything is OK

make search name=”tcpdump”

Port: p5-Net-TcpDumpLog-0.11
Path: /usr/ports/net/p5-Net-TcpDumpLog
Info: Read tcpdump/libpcap network packet logs
Maint: [email protected]
B-deps: perl-5.14.4
R-deps: perl-5.14.4
WWW: http://search.cpan.org/dist/Net-TcpDumpLog/

Port: tcpdump-4.4.0
Path: /usr/ports/net/tcpdump
Info: Ubiquitous network traffic analysis tool
Maint: [email protected]
B-deps: gettext-0.18.3 gmake-3.82_1 libiconv-1.14_1 libpcap-1.4.0 libsmi-0.4.8 pkgconf-0.9.2_1
R-deps: libpcap-1.4.0 libsmi-0.4.8 pkgconf-0.9.2_1
WWW:

Port: tcpdump398-1.0
Path: /usr/ports/net/tcpdump398
Info: Ubiquitous network traffic analysis tool – FreeBSD 7 version for FreeBSD 8
Maint: [email protected]
B-deps:
R-deps:
WWW:

connect to your cisco device using ckermit tool

console+cable

usb-to-serial

dmesg
[ 9476.461366] usb 4-5: Product: USB2.0-Ser!
[ 9476.461672] usb 4-5: configuration #1 chosen from 1 choice
[ 9476.579758] usbcore: registered new interface driver usbserial
[ 9476.579800] USB Serial support registered for generic
[ 9476.579856] usbcore: registered new interface driver usbserial_generic
[ 9476.579861] usbserial: USB Serial Driver core
[ 9476.582778] USB Serial support registered for ch341-uart
[ 9476.582797] ch341 4-5:1.0: ch341-uart converter detected
[ 9476.617800] usb 4-5: ch341-uart converter now attached to ttyUSB0
[ 9476.617838] usbcore: registered new interface driver ch341

aptitude install ckermit

vim ~/.kermrc
set line /dev/ttyUSB0
set speed 9600
set carrier-watch off
set handshake none
set flow-control none
robust

client-120:/home/bentoslack# kermit
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/ibekyarov/) C-Kermit>connect
Connecting to /dev/ttyUSB0, speed 9600
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------

Switch>

Switch>show version
Cisco Internetwork Operating System Software
IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5.3)WC(1), MAINTENANCE INTERIM SOFTWARE
Copyright (c) 1986-2001 by cisco Systems, Inc.
Compiled Mon 30-Apr-01 07:51 by devgoyal
Image text-base: 0x00003000, data-base: 0x003331F4

ROM: Bootstrap program is C3500XL boot loader

Switch uptime is 34 minutes
System returned to ROM by power-on
System image file is "flash:c3500XL-c3h2s-mz-120-5.3.WC.1.bin"

cisco WS-C3548-XL (PowerPC403) processor (revision 0x01) with 16384K/1024K bytes of memory.
Processor board ID FOC0548T066, with hardware revision 0x00
Last reset from power-on

netmask cheat sheet

Netmask Netmask (binary) CIDR Notes
_____________________________________________________________________________
255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr)
255.255.255.254 11111111.11111111.11111111.11111110 /31 Unuseable
255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable
255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable
255.255.255.240 11111111.11111111.11111111.11110000 /28 14 useable
255.255.255.224 11111111.11111111.11111111.11100000 /27 30 useable
255.255.255.192 11111111.11111111.11111111.11000000 /26 62 useable
255.255.255.128 11111111.11111111.11111111.10000000 /25 126 useable
255.255.255.0 11111111.11111111.11111111.00000000 /24 “Class C” 254 useable

255.255.254.0 11111111.11111111.11111110.00000000 /23 2 Class C’s
255.255.252.0 11111111.11111111.11111100.00000000 /22 4 Class C’s
255.255.248.0 11111111.11111111.11111000.00000000 /21 8 Class C’s
255.255.240.0 11111111.11111111.11110000.00000000 /20 16 Class C’s
255.255.224.0 11111111.11111111.11100000.00000000 /19 32 Class C’s
255.255.192.0 11111111.11111111.11000000.00000000 /18 64 Class C’s
255.255.128.0 11111111.11111111.10000000.00000000 /17 128 Class C’s
255.255.0.0 11111111.11111111.00000000.00000000 /16 “Class B”

255.254.0.0 11111111.11111110.00000000.00000000 /15 2 Class B’s
255.252.0.0 11111111.11111100.00000000.00000000 /14 4 Class B’s
255.248.0.0 11111111.11111000.00000000.00000000 /13 8 Class B’s
255.240.0.0 11111111.11110000.00000000.00000000 /12 16 Class B’s
255.224.0.0 11111111.11100000.00000000.00000000 /11 32 Class B’s
255.192.0.0 11111111.11000000.00000000.00000000 /10 64 Class B’s
255.128.0.0 11111111.10000000.00000000.00000000 /9 128 Class B’s
255.0.0.0 11111111.00000000.00000000.00000000 /8 “Class A”

254.0.0.0 11111110.00000000.00000000.00000000 /7
252.0.0.0 11111100.00000000.00000000.00000000 /6
248.0.0.0 11111000.00000000.00000000.00000000 /5
240.0.0.0 11110000.00000000.00000000.00000000 /4
224.0.0.0 11100000.00000000.00000000.00000000 /3
192.0.0.0 11000000.00000000.00000000.00000000 /2
128.0.0.0 10000000.00000000.00000000.00000000 /1
0.0.0.0 00000000.00000000.00000000.00000000 /0 IP space

Net Host Total
Net Addr Addr Addr Number
Class Range NetMask Bits Bits of hosts
———————————————————-
A 0-127 255.0.0.0 8 24 16777216 (i.e. 114.0.0.0)
B 128-191 255.255.0.0 16 16 65536 (i.e. 150.0.0.0)
C 192-254 255.255.255.0 24 8 256 (i.e. 199.0.0.0)
D 224-239 (multicast)
E 240-255 (reserved)
F 208-215 255.255.255.240 28 4 16
G 216/8 ARIN – North America
G 217/8 RIPE NCC – Europe
G 218-219/8 APNIC
H 220-221 255.255.255.248 29 3 8 (reserved)
K 222-223 255.255.255.254 31 1 2 (reserved)

make bootable usb flash drive with linux in MacOS X

bash-3.2# hdiutil convert -format UDRW -o Debian7live.img debian-live-7.0.0-i386-standard.iso
Reading Master Boot Record (MBR : 0)…
Reading Debian wheezy 20130505-06:54 (Apple_ISO : 1)…
Reading (Windows_NTFS_Hidden : 2)…
...........................................................................................................................................................................................................................
Elapsed Time: 4.551s
Speed: 118.2Mbytes/sec
Savings: 0.0%
created: /Users/bentoslack/Downloads/Debian7live.img.dmg

bash-3.2# mv Debian7live.img.dmg Debian7live.img

bash-3.2# diskutil list
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.8 GB disk4
1: DOS_FAT_32 UNTITLED 1 15.8 GB disk4s1

bash-3.2# diskutil unmountDisk /dev/disk4
Unmount of all volumes on disk4 was successful

bash-3.2# dd if=Debian7live.img of=/dev/disk4 bs=1m
538+0 records in
538+0 records out
564133888 bytes transferred in 105.770259 secs (5333578 bytes/sec)

bash-3.2# hdiutil eject /dev/disk4
"disk4" unmounted.
"disk4" ejected.
bash-3.2#

how to reset root password on debian wheezy

During the pc boot up process, when grub boot loader appears press “e” to edit,
find the line which begin with linux and on the end add init=/bin/bash

example: linux /boot/vmliznu-3.2.0-4-686-pae root=UUID=8cbe7996-107b-4d22-9281-f0962e4917dd ro initrd=/install/initrd.gz quiet init=/bin/bash

press ctrl+x to boot, this will drop you on the command prompt

mount -o remount,rw /

passwd

reboot