viernes, 28 de marzo de 2008

manejo de la bateria slackware

para empezar cuando de laptop se habla se tiene que tener un control sobre la pila ver su porcentaje cuando esta llena y su rendimiento para ello se tienen que cargar algunnos modulos correspondientes a ellos asi mismo tambien para tener un ahorro sobre eso se maneja el cpufreq para regularizar la velocidad del procesador y asi tener un mejor rendimiento para ello.

hay una entrada que habla sobre cpufreq en eso no habra problema aqui se deja el enlace para ello:
cpufreq
bien ahora se cargaran los modulos correspondientes para el acpi:
# /sbin/modprobe ac
# /sbin/modprobe processor
# /sbi/modprobe battery
# /sbin/modprobe thermal
bien aqui no hay mucho que discutir si ya saben que es lo que quieren hacer
luego de haber hecho esto vamos a hacer lo siguiente para comprobar que hay funcionamiento:
# cat /proc/acpi/battery/info
veran algo parecido a esto:
present: yes
design capacity: 4400 mAh
last full capacity: 2936 mAh
battery technology: rechargeable
design voltage: 10800 mV
design capacity warning: 145 mAh
design capacity low: 101 mAh
capacity granularity 1: 44 mAh
capacity granularity 2: 2791 mAh
model number: Primary
serial number:
battery type: LION
OEM info: Hewlett-Packard
en donde les aparecera todos los datos de la bateria de su laptop, para lo siguiente:
# cat /proc/acpi/thermal_zone/TZS0/temperature
para averiguar la temperatura.
para no hacer las cosas mas complidas y hacernos la vida facil hay una utilidad donde te da los datos de la bateria el % que tiene de carga y la temperatura de la laptop la cual es acpitool con su respectivo enlace. mostraria la informacion asi:

$ acpitool
Battery #1 : charged, 100.0%
AC adapter : on-line
Thermal zone 1 : ok, 52 C
Thermal zone 2 : ok, 55 C
si estan utilizando kde pueden ir a kcontrol > bateria del portatil, y configurarse las opciones que ustedes deseen y reiniciar el modo grafico asi les aparecera el icono de la pila en la bandeja del sistema.

para que esto se haga automaticamente para que se carguen losmodulos al arrancar el sistemas solamente agregar los comandos que cargan los modulos en /etc/rc.d/rc.local

cpufreq en slackware

es una breve explicacion para que sirve cpufreq y como utilizarlo en slackware.
normalmente se utiliza para regularizar la velocidad del procesador para ciertas necesidades de las aplicaciones que se esten utilizando.
conmunmente los amd los soporta facilmente tambien hay otros pero eso es otra cosa yo hablare sobre los amd Xd ...

bueno como en slackware ya viene incluido el soporte para cpufreq no habra necesidad mas que cargar los modulos necesarios para su funcionamiento para esto se ejecutan los siguientes comandos como root obviamente.
# /sbin/modprobe powernow-k8
Esto es para cool&quiet que son los que se estan utilizando ultimante.

Despues de haber cargado el modulo para tener soporte lo siguiente que se hara es cargar el siguiente modulo que se requiere para la regularizacion de la frecuencia del procesador dependiendo de sus gustos o necesidades .

# /sbin/modprobe cpufreq_ondemand
Con este modulo vas a agregar el soporte para la frecuencia bajo demanda, el cual utiliza la minima frecuencia soportada del procesador y cuando se requiere mas velocidad va creciendo o incrementandose de acuerdo a los requirimientos.

# /sbin/modprobe cpufreq_performance
Este modulo se utiliza para tener la frecuencia del procesador ala maxima velocidad y aprovechar el maximo recurso del procesador.

# /sbin/modprobe cpufreq_conservative
Con este modulo se aprovecha la minima frecuencia y no sube gradualmente se mantiene en la mas pequeña frecuencia soportada por el procesador.

aqui les va un pequeño script que pueden utilizar para darle uso a la frecuencia que mas les convenga

for config_file in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do
echo ondemand >$config_file
done
en la linea donde va ondemand pueden cambiarla por 'perfomance' o por 'conservative'.

esas ejecuciones la pueden poner el archivo de arranque de slackware /etc/rc.d/rc.local
asi cada vez que inicien su slackware se cargaran los modulos y al igual tendran su frecuencia utilizandose.

claro que el ciclo es usado para cuando sea dos procesadores no solamente uno.

jueves, 27 de marzo de 2008

lsmod slackware

aqui les va el comando lsmod para listar todos los modulos cargados de compaq presario v3417la



$ lsmod
Module Size Used by
vboxdrv 53376 0
container 7424 0
fan 7428 0
yenta_socket 26636 0
rsrc_nonstatic 14592 1 yenta_socket
cpufreq_conservative 10120 0
cpufreq_performance 5632 1
cpufreq_powersave 5376 0
cpufreq_ondemand 10636 0
powernow_k8 16928 0
freq_table 7680 2 cpufreq_ondemand,powernow_k8
snd_seq_dummy 6660 0
snd_seq_oss 32896 0
snd_seq_midi_event 10112 1 snd_seq_oss
snd_seq 50256 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 10380 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 40352 0
snd_mixer_oss 17920 1 snd_pcm_oss
ipv6 234596 14
pcmcia 35884 0
pcmcia_core 35988 3 yenta_socket,rsrc_nonstatic,pcmcia
lp 13348 0
parport_pc 27556 0
parport 34632 2 lp,parport_pc
fuse 45588 1
battery 14340 0
ac 8068 0
nvidia 7819296 38
video 19472 5
sdhci 18692 0
output 6656 1 video
mmc_core 47236 1 sdhci
thermal 16540 0
snd_hda_intel 289052 4
snd_pcm 72068 3 snd_pcm_oss,snd_hda_intel
rtc_cmos 11040 0
button 10000 0
agpgart 30664 1 nvidia
processor 32680 2 powernow_k8,thermal
i2c_nforce2 9344 0
snd_timer 22532 3 snd_seq,snd_pcm
rtc_core 18696 1 rtc_cmos
k8temp 8192 0
snd_page_alloc 11528 2 snd_hda_intel,snd_pcm
rtc_lib 6528 1 rtc_core
hwmon 6276 1 k8temp
serio_raw 9092 0
snd_hwdep 10756 1 snd_hda_intel
forcedeth 48780 0
evdev 12672 5
psmouse 40336 0
snd 47716 15 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
soundcore 9824 1 snd
ndiswrapper 184732 0
sg 30224 0

dmesg de slackware

aqui les va el comando dmesg de mi laptop compaq presario v3417la ... digo siempre recalco todo para que los que tengan la misma serie de laptop y quieran instalar algun linux sepan exactamente ... para que no digan que soy presumido ni nada de eso Xd... aqui les va el comandos que dispara :)

$ dmesg
Linux version 2.6.24.3-smp (root@midas) (gcc version 4.2.3) #2 SMP Wed Mar 19 01:54:13 CDT 2008
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009dc00 (usable)
BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000d2000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003df10000 (usable)
BIOS-e820: 000000003df10000 - 000000003df17000 (ACPI data)
BIOS-e820: 000000003df17000 - 000000003df80000 (ACPI NVS)
BIOS-e820: 000000003df80000 - 0000000040000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fed00000 - 00000000fed00400 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
95MB HIGHMEM available.
896MB LOWMEM available.
found SMP MP-table at 000f8770
Entering add_active_range(0, 0, 253712) 0 entries of 256 used
Zone PFN ranges:
DMA 0 -> 4096
Normal 4096 -> 229376
HighMem 229376 -> 253712
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 253712
On node 0 totalpages: 253712
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
Normal zone: 1760 pages used for memmap
Normal zone: 223520 pages, LIFO batch:31
HighMem zone: 190 pages used for memmap
HighMem zone: 24146 pages, LIFO batch:3
Movable zone: 0 pages used for memmap
DMI present.
ACPI: RSDP 000F87A0, 0024 (r3 HPQOEM)
ACPI: XSDT 3DF100CD, 005C (r1 HPQOEM SLIC-MPC 6040000 LTP 0)
ACPI: FACP 3DF16B42, 00F4 (r3 HPQOEM SLIC-MPC 6040000 PTL F4240)
ACPI: DSDT 3DF10129, 6A19 (r1 HPQOEM SLIC-MPC 6040000 MSFT 100000E)
ACPI: FACS 3DF17FC0, 0040
ACPI: SLIC 3DF16CAA, 0176 (r1 HPQOEM SLIC-MPC 6040000 HPQ 1)
ACPI: MCFG 3DF16E20, 003C (r1 HPQOEM SLIC-MPC 6040000 LTP 0)
ACPI: HPET 3DF16E5C, 0038 (r1 HPQOEM SLIC-MPC 6040000 LTP 1)
ACPI: APIC 3DF16E94, 0050 (r1 HPQOEM SLIC-MPC 6040000 LTP 0)
ACPI: BOOT 3DF16EE4, 0028 (r1 HPQOEM SLIC-MPC 6040000 LTP 1)
ACPI: SSDT 3DF16F0C, 00F4 (r1 HPQOEM SLIC-MPC 6040000 LTP 1)
ACPI: DMI detected: Hewlett-Packard
ACPI: PM-Timer IO Port: 0x1008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:12 APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode: Flat. Using 1 I/O APICs
ACPI: HPET id: 0x10de8201 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:a0000000)
swsusp: Registered nosave memory region: 000000000009d000 - 000000000009e000
swsusp: Registered nosave memory region: 000000000009e000 - 00000000000a0000
swsusp: Registered nosave memory region: 00000000000a0000 - 00000000000d2000
swsusp: Registered nosave memory region: 00000000000d2000 - 0000000000100000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 251730
Kernel command line: BOOT_IMAGE=Linux ro root=805
mapped APIC to ffffb000 (fee00000)
mapped IOAPIC to ffffa000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 1808.301 MHz processor.
spurious 8259A interrupt: IRQ7.
Console: colour dummy device 80x25
console [tty0] enabled
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 996516k/1014848k available (6059k kernel code, 17832k reserved, 2015k data, 380k init, 97344k highmem)
virtual kernel memory layout:
fixmap : 0xffe15000 - 0xfffff000 (1960 kB)
pkmap : 0xff800000 - 0xffc00000 (4096 kB)
vmalloc : 0xf8800000 - 0xff7fe000 ( 111 MB)
lowmem : 0xc0000000 - 0xf8000000 ( 896 MB)
.init : 0xc08ed000 - 0xc094c000 ( 380 kB)
.data : 0xc06ead46 - 0xc08e2cfc (2015 kB)
.text : 0xc0100000 - 0xc06ead46 (6059 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
SLUB: Genslabs=11, HWalign=64, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
hpet clockevent registered
Calibrating delay using timer specific routine.. 3619.63 BogoMIPS (lpj=7239277)
Security Framework initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 078bfbff ebd3fbff 00000000 00000000 00002001 00000000 00000019 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU: After all inits, caps: 078bfbff ebd3fbff 00000000 00000410 00002001 00000000 00000019 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Compat vDSO mapped to ffffe000.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 24k freed
ACPI: Core revision 20070126
CPU0: AMD Mobile AMD Sempron(tm) stepping 02
Total of 1 processors activated (3619.63 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
Brought up 1 CPUs
net_namespace: 64 bytes
xor: automatically using best checksumming function: pIII_sse
pIII_sse : 5520.000 MB/sec
xor: using function: pIII_sse (5520.000 MB/sec)
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using MMCONFIG
PCI: No mmconfig possible on device 00:18
PCI: No mmconfig possible on device 05:09
Setting up standard PCI resources
ACPI: EC: Look up EC in DSDT
ACPI: BIOS _OSI(Linux) query ignored via DMI
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: EC: GPE = 0x1, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in poll mode
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:10.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.XVR1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.XVR2._PRT]
ACPI: EC: non-query interrupt received, switching to interrupt mode
ACPI: PCI Interrupt Link [LNK1] (IRQs 16 17 18 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LNK2] (IRQs 16 17 18 22 23) *10
ACPI: PCI Interrupt Link [LNK3] (IRQs 5 7 *10 11 14 15)
ACPI: PCI Interrupt Link [LNK4] (IRQs 5 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LK1E] (IRQs 20) *0, disabled.
ACPI: PCI Interrupt Link [LK2E] (IRQs 19) *11
ACPI: PCI Interrupt Link [LK3E] (IRQs 21) *10
ACPI: PCI Interrupt Link [LK4E] (IRQs 16 17 18 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LSMB] (IRQs 16 17 18 22 23) *10
ACPI: PCI Interrupt Link [LSMU] (IRQs 16 17 18 22 23) *11
ACPI: PCI Interrupt Link [LUS0] (IRQs 16 17 18 22 23) *11
ACPI: PCI Interrupt Link [LUS2] (IRQs 16 17 18 22 23) *7
ACPI: PCI Interrupt Link [LMAC] (IRQs 16 17 18 22 23) *11
ACPI: PCI Interrupt Link [LAZA] (IRQs 16 17 18 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LACI] (IRQs 16 17 18 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LMCI] (IRQs 16 17 18 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LPID] (IRQs 16 17 18 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LTID] (IRQs 16 17 18 22 23) *5
ACPI: PCI Interrupt Link [LSI1] (IRQs 16 17 18 22 23) *0
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 11 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
ACPI: RTC can wake from S4
Time: tsc clocksource has been installed.
system 00:01: iomem range 0xe0000000-0xefffffff could not be reserved
system 00:02: ioport range 0x1000-0x107f has been reserved
system 00:02: ioport range 0x1080-0x10ff has been reserved
system 00:02: ioport range 0x1400-0x147f has been reserved
system 00:02: ioport range 0x1480-0x14ff has been reserved
system 00:02: ioport range 0x1800-0x187f has been reserved
system 00:02: ioport range 0x1880-0x18ff has been reserved
system 00:02: ioport range 0x2000-0x203f has been reserved
system 00:03: ioport range 0x360-0x361 has been reserved
system 00:03: ioport range 0x4d0-0x4d1 has been reserved
PCI: Bridge: 0000:00:02.0
IO window: disabled.
MEM window: b3000000-b30fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:03.0
IO window: 4000-4fff
MEM window: b4000000-b7ffffff
PREFETCH window: d0000000-d01fffff
PCI: Bridge: 0000:00:10.0
IO window: disabled.
MEM window: b8000000-b80fffff
PREFETCH window: disabled.
PCI: Setting latency timer of device 0000:00:02.0 to 64
PCI: Setting latency timer of device 0000:00:03.0 to 64
PCI: Setting latency timer of device 0000:00:10.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
Simple Boot Flag at 0x36 set to 0x1
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NTFS driver 2.1.29 [Flags: R/W].
JFS: nTxBlock = 7786, nTxLock = 62290
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
GFS2 (built Mar 19 2008 01:52:29) installed
async_tx: api initialized (async)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Boot video device is 0000:00:05.0
PCI: Setting latency timer of device 0000:00:02.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:02.0:pcie00]
Allocate Port Service[0000:00:02.0:pcie03]
PCI: Setting latency timer of device 0000:00:03.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:03.0:pcie00]
Allocate Port Service[0000:00:03.0:pcie03]
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
vesafb: framebuffer at 0xc0000000, mapped to 0xf8d00000, using 1536k, total 32768k
vesafb: mode is 1024x768x8, linelength=1024, pages=3
vesafb: protected mode interface info at c000:d750
vesafb: pmi: set display start = c00cd786, set palette = c00cd7f0
vesafb: pmi: ports = 3b4 3b5 3ba 3c0 3c1 3c4 3c5 3c6 3c7 3c8 3c9 3cc 3ce 3cf 3d0 3d1 3d2 3d3 3d4 3d5 3da
vesafb: scrolling: redraw
vesafb: Pseudocolor: size=8:8:8:8, shift=0:0:0:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12ac
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
floppy0: no floppy controllers found
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: module loaded
Compaq SMART2 Driver (v 2.6.0)
HP CISS Driver (v 3.6.14)
input: Macintosh mouse button emulation as /devices/virtual/input/input0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
NFORCE-MCP51: IDE controller (0x10de:0x0265 rev 0xf1) at PCI slot 0000:00:0d.0
NFORCE-MCP51: not 100% native mode: will probe irqs later
NFORCE-MCP51: 0000:00:0d.0 (rev f1) UDMA133 controller
ide0: BM-DMA at 0x3080-0x3087, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x3088-0x308f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
Probing IDE interface ide1...
hdc: MATSHITADVD-RAM UJ-850S, ATAPI CD/DVD-ROM drive
hdc: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hdc: MWDMA2 mode selected
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdc: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
Loading iSCSI transport class v2.0-724.
Loading Adaptec I2O RAID: Version 2.4 Build 5go
Detecting Adaptec I2O RAID controllers...
Adaptec aacraid driver 1.1-5[2449]-ms
aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.3 loaded
scsi: Detection failed (no card)
sym53c416.c: Version 1.0.0-ac
qlogicfas: no cards were found, please specify I/O address and IRQ using iobase= and irq= options<6>QLogic Fibre Channel HBA Driver
iscsi: registered transport (qla4xxx)
QLogic iSCSI HBA Driver
Emulex LightPulse Fibre Channel SCSI driver 8.2.2
Copyright(c) 2004-2007 Emulex. All rights reserved.
seagate: ST0x/TMC-8xx not detected.
Failed initialization of WD-7000 SCSI card!
DC390: clustering now enabled by default. If you get problems load
with "disable_clustering=1" and report to maintainers
megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006)
megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
megasas: 00.00.03.10-rc5 Thu May 17 10:09:32 PDT 2007
GDT-HA: Storage RAID Controller Driver. Version: 3.05
GDT-HA: Found 0 PCI Storage RAID Controllers
3ware Storage Controller device driver for Linux v1.26.02.002.
3ware 9000 Storage Controller device driver for Linux v2.26.02.010.
nsp32: loading...
ipr: IBM Power RAID SCSI Device Driver version: 2.4.1 (April 24, 2007)
RocketRAID 3xxx SATA Controller driver v1.2 (070830)
st: Version 20070203, fixed bufsize 32768, s/g segs 256
Driver 'st' needs updating - please use bus_type methods
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
sata_nv 0000:00:0e.0: version 3.5
PCI: Enabling device 0000:00:0e.0 (0005 -> 0007)
ACPI: PCI Interrupt Link [LTID] enabled at IRQ 23
ACPI: PCI Interrupt 0000:00:0e.0[A] -> Link [LTID] -> GSI 23 (level, high) -> IRQ 16
PCI: Setting latency timer of device 0000:00:0e.0 to 64
scsi2 : sata_nv
scsi3 : sata_nv
ata1: SATA max UDMA/133 cmd 0x30b0 ctl 0x30a4 bmdma 0x3090 irq 16
ata2: SATA max UDMA/133 cmd 0x30a8 ctl 0x30a0 bmdma 0x3098 irq 16
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: ST9120822AS, 3.BHD, max UDMA/100
ata1.00: 234441648 sectors, multi 16: LBA48
ata1.00: configured for UDMA/100
ata2: SATA link down (SStatus 0 SControl 300)
scsi 2:0:0:0: Direct-Access ATA ST9120822AS 3.BH PQ: 0 ANSI: 5
sd 2:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 2:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 <> sda3 sda4
sd 2:0:0:0: [sda] Attached SCSI disk
I2O subsystem v1.325
i2o: max drivers = 8
I2O Configuration OSM v1.323
I2O Bus Adapter OSM v1.317
I2O Block Device OSM v1.325
I2O SCSI Peripheral OSM v1.316
I2O ProcFS OSM v1.316
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SPI Host driver 3.04.06
Fusion MPT FC Host driver 3.04.06
Fusion MPT SAS Host driver 3.04.06
ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 22
ACPI: PCI Interrupt 0000:05:09.0[A] -> Link [LNK1] -> GSI 22 (level, high) -> IRQ 17
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[17] MMIO=[b8000000-b80007ff] Max Packet=[2048] IR/IT contexts=[4/4]
usbmon: debugfs is not available
ACPI: PCI Interrupt Link [LUS2] enabled at IRQ 18
ACPI: PCI Interrupt 0000:00:0b.1[B] -> Link [LUS2] -> GSI 18 (level, high) -> IRQ 18
PCI: Setting latency timer of device 0000:00:0b.1 to 64
ehci_hcd 0000:00:0b.1: EHCI Host Controller
ehci_hcd 0000:00:0b.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0b.1: debug port 1
PCI: cache line size of 64 is not supported by device 0000:00:0b.1
ehci_hcd 0000:00:0b.1: irq 18, io mem 0xb0005000
ehci_hcd 0000:00:0b.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
116x: driver isp116x-hcd, 03 Nov 2005
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt Link [LUS0] enabled at IRQ 17
ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [LUS0] -> GSI 17 (level, high) -> IRQ 19
PCI: Setting latency timer of device 0000:00:0b.0 to 64
ohci_hcd 0000:00:0b.0: OHCI Host Controller
ohci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0b.0: irq 19, io mem 0xb0004000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v3.0
sl811: driver sl811-hcd, 19 May 2005
Initializing USB Mass Storage driver...
usb 2-3: new low speed USB device using ohci_hcd and address 2
usb 2-3: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBD0,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
i8042.c: Detected active multiplexing controller, rev 1.1.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
serio: i8042 AUX3 port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
raid6: int32x1 508 MB/s
raid6: int32x2 634 MB/s
raid6: int32x4 631 MB/s
raid6: int32x8 487 MB/s
raid6: mmxx1 1033 MB/s
raid6: mmxx2 2124 MB/s
raid6: sse1x1 1442 MB/s
raid6: sse1x2 2422 MB/s
raid6: sse2x1 2424 MB/s
raid6: sse2x2 3401 MB/s
raid6: using algorithm sse2x2 (3401 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
md: multipath personality registered for level -4
device-mapper: ioctl: 4.12.0-ioctl (2007-10-02) initialised: dm-devel@redhat.com
usbcore: registered new interface driver hiddev
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
input: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) as /devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0/input/input2
input,hidraw0: USB HID v1.10 Mouse [Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)] on usb-0000:00:0b.0-3
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Using IPI No-Shortcut mode
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 380k freed
ieee1394: Host added: ID:BUS[0-00:1023] GUID[07e40a006bd75026]
sd 2:0:0:0: Attached scsi generic sg0 type 0
ndiswrapper version 1.52 loaded (smp=yes, preempt=no)
i2c_core: exports duplicate symbol i2c_smbus_xfer (owned by kernel)
i2c_core: exports duplicate symbol i2c_smbus_xfer (owned by kernel)
input: ImPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input3
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI Exception (processor_core-0816): AE_NOT_FOUND, Processor Device is not present [20070126]
Linux agpgart interface v0.102
input: Power Button (FF) as /devices/virtual/input/input4
ACPI: Power Button (FF) [PWRF]
input: Sleep Button (CM) as /devices/virtual/input/input5
rtc_cmos: probe of 00:06 failed with error -16
ACPI: Sleep Button (CM) [SLPB]
input: Power Button (CM) as /devices/virtual/input/input6
ACPI: Power Button (CM) [PWRB]
ACPI: Thermal Zone [TZS0] (59 C)
ACPI: Thermal Zone [TZS1] (62 C)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
ndiswrapper: driver bcmwl5 (Broadcom,10/12/2006, 4.100.15.5) loaded
ACPI: PCI Interrupt Link [LK2E] enabled at IRQ 19
ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LK2E] -> GSI 19 (level, high) -> IRQ 20
PCI: Setting latency timer of device 0000:01:00.0 to 64
ndiswrapper: using IRQ 20
input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A03:00/LNXVIDEO:00/input/input7
ACPI: Video Device [VGA] (multi-head: yes rom: no post: no)
ACPI: AC Adapter [ADP1] (on-line)
wlan0: ethernet device 00:1a:73:75:25:21 using NDIS driver: bcmwl5, version: 0x4640f05, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4311.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
usbcore: registered new interface driver ndiswrapper
forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61.
ACPI: PCI Interrupt Link [LMAC] enabled at IRQ 16
ACPI: PCI Interrupt 0000:00:14.0[A] -> Link [LMAC] -> GSI 16 (level, high) -> IRQ 21
PCI: Setting latency timer of device 0000:00:14.0 to 64
ACPI: Battery Slot [BAT0] (battery present)
forcedeth 0000:00:14.0: ifname eth0, PHY OUI 0x5043 @ 1, addr 00:16:d3:a5:fa:02
forcedeth 0000:00:14.0: highdma pwrctl timirq lnktim desc-v3
i2c-adapter i2c-0: nForce2 SMBus adapter at 0x3040
i2c-adapter i2c-1: nForce2 SMBus adapter at 0x3000
ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 23
ACPI: PCI Interrupt 0000:00:10.1[B] -> Link [LAZA] -> GSI 23 (level, high) -> IRQ 16
PCI: Setting latency timer of device 0000:00:10.1 to 64
sdhci: SDHCI controller found at 0000:05:09.1 [1180:0822] (rev 19)
ACPI: PCI Interrupt Link [LNK2] enabled at IRQ 22
ACPI: PCI Interrupt 0000:05:09.1[B] -> Link [LNK2] -> GSI 22 (level, high) -> IRQ 17
sdhci:slot0: Will use DMA mode even though HW doesn't fully claim to support it.
mmc0: SDHCI at 0xb8000800 irq 17 DMA
ACPI: PCI Interrupt Link [LK3E] enabled at IRQ 21
ACPI: PCI Interrupt 0000:00:05.0[A] -> Link [LK3E] -> GSI 21 (level, high) -> IRQ 22
PCI: Setting latency timer of device 0000:00:05.0 to 64
NVRM: loading NVIDIA UNIX x86 Kernel Module 169.12 Thu Feb 14 17:53:07 PST 2008
Marking TSC unstable due to: possible TSC halt in C2.
Time: hpet clocksource has been installed.
Adding 1767076k swap on /dev/sda6. Priority:-1 extents:1 across:1767076k
fuse init (API version 7.9)
EXT3 FS on sda5, internal journal
lp: driver loaded but no devices found
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Intel ISA PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
eth0: no link during initialization.
atkbd.c: Unknown key pressed (translated set 2, code 0xd8 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e058 ' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xd8 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e058 ' to make it known.
eth0: no link during initialization.
eth0: no link during initialization.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): wlan0: link is not ready
powernow-k8: Found 1 Mobile AMD Sempron(tm) processors (1 cpu cores) (version 2.20.00)
powernow-k8: 0 : fid 0xa (1800 MHz), vid 0xe
powernow-k8: 1 : fid 0x8 (1600 MHz), vid 0x10
powernow-k8: 2 : fid 0x0 (800 MHz), vid 0x18
vboxdrv: Trying to deactivate the NMI watchdog permanently...
vboxdrv: Successfully done.
vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
vboxdrv: Successfully loaded version 1.5.6_OSE (interface 0x00050002).
Clocksource tsc unstable (delta = -137348402 ns)


miércoles, 26 de marzo de 2008

Nmap Los parametros

Bueno este es mi primer texto asi que no me critiquen mucho si esta mal hecho o no le entienden.
Asi que espero que les guste y les sea de su total agrado… saludos
Ademas este texto es basado en Linux
Si tiene algun error favor de notificarmelo o si hace falta de igual manera y si quiere hacer una modificacion, y favor de no modificar sin autorizacion .

Bueno para comenzar vamos viendo la sintaxys del nmap

Sintaxys: nmap parametros ‘ip ó *Rango’

*Rango: por ejemplo el rango se maneja asi… 200.92.*.*

Solo basta para ver los parametros del nmap con teclear ‘nmap‘, y les aparecerá esto en la consola:

Nmap x.xx Usage: nmap [Scan Type(s)> [Options>
Some Common Scan Types (’*’ options require root privileges)
* -sS TCP SYN stealth port scan (default if privileged (root))
-sT TCP connect() port scan (default for unprivileged users)
* -sU UDP port scan
-sP ping scan (Find any reachable machines)
* -sF,-sX,-sN Stealth FIN, Xmas, or Null scan (experts only)
-sV Version scan probes open ports determining service & app names/versions
-sR RPC scan (use with other scan types)
Some Common Options (none are required, most can be combined):
* -O Use TCP/IP fingerprinting to guess remote operating system
-p ports to scan. Example range: 1-1024,1080,6666,31337
-F Only scans ports listed in nmap-services
-v Verbose. Its use is recommended. Use twice for greater effect.
-P0 Don’t ping hosts (needed to scan www.microsoft.com and others)
* -Ddecoy_host1,decoy2[,…> Hide scan using many decoys
-6 scans via IPv6 rather than IPv4
-T General timing policy
-n/-R Never do DNS resolution/Always resolve [default: sometimes resolve>
-oN/-oX/-oG Output normal/XML/grepable scan logs to
-iL Get targets from file; Use ‘-’ for stdin
* -S /-e Specify source address or network interface
–interactive Go into interactive mode (then press h for help)
Example: nmap -v -sS -O www.my.com 192.168.0.0/16 ‘192.88-90.*.*’
SEE THE MAN PAGE FOR MANY MORE OPTIONS, DESCRIPTIONS, AND EXAMPLES

Ahora bien vamos a explicar para que sirve cada parametro y para ellos agarre esta ip para ejemplo 67.15.192.2…vamos por el primero:

*El parametro ‘-sS’ este parametro solo se puede usar con privilegios de root y te scanea en modo stealth, y todos los puertos que puedes tener. Veamos el siguiente ejemplo:

—————————————————————————————-

root@t4k3r0n:~$ nmap -sS 67.15.192.2

|Starting nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 22:51 MDT
|Interesting ports on ev1s-67-15-192-2.ev1servers.net (67.15.192.2):
|(The 1657 ports scanned but not shown below are in state: filtered)
|PORT STATE SERVICE
|21/tcp open ftp
|22/tcp open ssh
|25/tcp open smtp
|53/tcp open domain
|80/tcp open http
|443/tcp open https
|
|Nmap run completed — 1 IP address (1 host up) scanned in 54.073 seconds
—————————————————————————————–

Que interesante es este parametro, puedes utilizarlo cuando quieres ver los puertos que tiene abierto de un host en especifico y que servicios son los que corre ese puerto.

*Continuamos con el siguiente parametro ‘-sT’ se utiliza igual que el parametro ‘-sS’ solo que este no trabaja en modo stealth y no necesitas tener privilegios de root para usarlo. y en vista que se utiliza para lo mismo no es necesario poner un ejemplo del mismo.

*Bien seguimos con el paramero ‘-sU’ este parametro es utilizado para scanear puerto UDP trabaja de igual modo que los parametros anteriores solo que en lugar de escanear TCP escanea UDP, esta mas que claro.

*El siguiente parametro es ‘-sP’ este parametro es utilizado para pingear al host y ver si esta up o esta down, veamos el siguiente ejemplo:

—————————————————————————————-

root@t4k3r0n:~$ nmap -sP 67.15.192.2

|Starting nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 23:21 MDT
|Host ev1s-67-15-192-2.ev1servers.net (67.15.192.2) appears to be up.
|Nmap run completed — 1 IP address (1 host up) scanned in 1.545 seconds
—————————————————————————————-

*Los siguientes parametros son ‘-sX,-sF,-sN’, bueno no cabe explicar sobre que trata cada parametro solo con el ejemplo se ve que funcion tiene, y los 3 parametros tienen el mismo funcionamiento, veamos los siguientes ejemplos de cada parametro:

—————————————————————————————-

root@t4k3r0n:~$ nmap -sX 67.15.192.2

|Starting nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 23:25 MDT
|Interesting ports on ev1s-67-15-192-2.ev1servers.net (67.15.192.2):
|(The 1656 ports scanned but not shown below are in state: closed)
|PORT STATE SERVICE
|135/tcp open msrpc
|137/tcp open netbios-ns
|138/tcp open netbios-dgm
|139/tcp open netbios-ssn
|445/tcp open microsoft-ds
|1025/tcp open NFS-or-IIS
|27374/tcp open subseven
|
|Nmap run completed — 1 IP address (1 host up) scanned in 44.202 seconds
—————————————————————————————-

*El siguiente parametro es ‘-sV’ es utilizado para determinar el servicio y app (nombres/versiones).

Otro parametro es el ‘-sR’ es utilizado para explorar el RPC, como en el siguiente ejemplo:

—————————————————————————————-

root@t4k3r0n:~$ nmap -sR 67.15.192.2

|nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 23:37 MDT
|Interesting ports on ev1s-67-15-192-2.ev1servers.net (67.15.192.2):
|(The 1660 ports scanned but not shown below are in state: filtered)
|PORT STATE SERVICE VERSION
|80/tcp open http
|110/tcp open pop3
|993/tcp open imaps
|
|Nmap run completed — 1 IP address (1 host up) scanned in 66.548 seconds
—————————————————————————————–

*el siguiente parametro u opcion es ‘-O’ este es utilizado para hacer un fingerprinting al host remoto y detectar que sistema operativo esta usando, veamos el siguiente ejemplo de este parametro:

—————————————————————————————-

root@t4k3r0n:~$ nmap -O 67.15.192.2

Starting nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 23:44 MDT
|Warning: OS detection will be MUCH less reliable because we did not find at least 1 open and 1 closed TCP port
|Interesting ports on ev1s-67-15-192-2.ev1servers.net (67.15.192.2):
|(The 1657 ports scanned but not shown below are in state: filtered)
|PORT STATE SERVICE
|21/tcp open ftp
|22/tcp open ssh
|25/tcp open smtp
|53/tcp open domain
|80/tcp open http
|443/tcp open https
|Device type: general purpose|broadband router
|Running (JUST GUESSING) : Microsoft Windows NT/2K/XP (86%), Billion embedded (86%)
|Aggressive OS guesses: Microsoft Windows NT Version 4 (Build 1381) Service Pack 6a (86%), Billion |ADSL router (86%), Microsoft Windows 2000 AD SP4 (85%)
|No exact OS matches for host (test conditions non-ideal).
|
|Nmap run completed — 1 IP address (1 host up) scanned in 64.745 seconds
————————————————————————————–

*Ahora Veamos el siguiente parametro que es ‘-p’ es para scanear un rango de ports en especifico, por ejemplo utilizando la siguiente sintaxys:

sintaxys: nmap -p 1-10,80,110,22 67.15.192.2

Para que lo tengan mas claro veamos el siguiente ejemplo:

—————————————————————————————

root@t4k3r0n:~$ nmap -p 80,22,110,5000 67.15.192.2

|Starting nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 23:49 MDT
|Interesting ports on ev1s-67-15-192-2.ev1servers.net (67.15.192.2):
|PORT STATE SERVICE
|22/tcp open ssh
|80/tcp open http
|110/tcp open pop3
|5000/tcp filtered UPnP
|
|Nmap run completed — 1 IP address (1 host up) scanned in 3.664 seconds
—————————————————————————————

*Otro parametro es ‘-F’ este es utilizado para explorar solo los puertos enumerados del nmap-services. Veamos el ejemplo:

—————————————————————————————

root@t4k3r0n:~$ nmap -F 67.15.192.2

|Starting nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 23:53 MDT
|Interesting ports on ev1s-67-15-192-2.ev1servers.net (67.15.192.2):
|(The 1213 ports scanned but not shown below are in state: filtered)
|PORT STATE SERVICE
|21/tcp open ftp
|22/tcp open ssh
|25/tcp open smtp
|53/tcp open domain
|80/tcp open http
|143/tcp open imap
|443/tcp open https
|465/tcp open smtps
|
|Nmap run completed — 1 IP address (1 host up) scanned in 125.356 seconds
—————————————————————————————

*Bien ahora otro parametro y muy importante es el ‘-v’ el cual es utilizado para obtener informacion de un host, y tambien puedes agregarle otra v para que obtenga mas informacion y es recomendable . Por ejemplo:

—————————————————————————————

root@t4k3r0n:~$ nmap -v 67.15.192.2

|Starting nmap x.xx ( http://www.insecure.org/nmap/ ) at 2005-09-11 23:57 MDT
|Initiating SYN Stealth Scan against ev1s-67-15-192-2.ev1servers.net (67.15.192.2) [1663 ports> at |23:57
|Discovered open port 80/tcp on 67.15.192.2
|Discovered open port 443/tcp on 67.15.192.2
|Discovered open port 21/tcp on 67.15.192.2
|Discovered open port 22/tcp on 67.15.192.2
|Discovered open port 25/tcp on 67.15.192.2
|Discovered open port 53/tcp on 67.15.192.2
—————————————————————————————

*Otro parametro es ‘-P0′ este parametro es utilizado para que no pingee al host.

*otro parametro e importante es guardar logs de tus scaneos realizados este es el parametro ‘oN,-oX,-oG’ la sintaxys es la siguiente:

Sintaxys: -oG logfile

Por ejemplo: nmap parametros ‘ip’ -oG log.txt

Bueno faltan algunos parametros pero de esos no hablare ahorita.

unas de las utilidades ke se puede hacer con el famoso scaner nmap es esto, por ejemplo: si quieres scanear un rango determinado solamente utilizas este comando

nmap -v ip -p 80

o bien para guardar el log solo tendrias que poner el parametro ‘-oG log.txt’.

Este famoso scanner tiene funciones que son muy interesante y las combinaciones que se les puede dar y lo rápido que es el scanner otra funcionalidad que le puedes dar ala hora scanear un determinado host es utilizando este comando

nmap -sS -P0 -O ip -oG log.txt

también pueden hacer esto si quieren scanear un rango en specifico por ejemplo:

nmap -p 22 200.92.*.* -oG log.txt

para buscar shells .

Solo es cuestión de que te pongas a pensar sobre como quieres utilizar el nmap y tener bien claro que puedes hacerlo muy potente de acuerdo de la imaginacion que tengas para scanear y las combinaciones que hagas con los parametros al igual que con netcat que también es una herramienta muy potente.. bueno hasta aquí lo dejo asi que me despido bye .

Aclarando este texto se hizo con la finalidad de ser educativo y no me hago responsable por el uso que le den, gracias por su atención.

por t4k3r0n.

comando lshw de slackware

como ya habia posteado antes del lspci ahora posteare lshw es un comando que sirve para listar todo el hardware. Aqui esta el listado de mi compaq presario v3417la con sus respectivos modulos o si se les podria llamar drivers Xd para cada dispositivo



$ lshw
localhost
description: Notebook
product: Presario V3000 (GM643LA#ABM)
vendor: Hewlett-Packard
version: F.34
serial: 2CE7272GKF
width: 32 bits
capabilities: smbios-2.4 dmi-2.4
configuration: administrator_password=enabled boot=oem-specific chassis=notebook frontpanel_password=unknown keyboard_password=unknown power-on_password=disabled uuid=8084F2A0-2E9C-11DC-A1F2-A531ABC2CD00
*-core
description: Motherboard
product: 30B5
vendor: Wistron
physical id: 0
version: 62.57
*-firmware
description: BIOS
vendor: Hewlett-Packard
physical id: 0
version: F.34 (06/02/2007)
size: 96KB
capacity: 960KB
capabilities: isa pci pcmcia pnp apm upgrade shadowing escd cdboot acpi usb agp biosbootspecification
*-cpu
description: CPU
product: Mobile AMD Sempron(tm)
vendor: Advanced Micro Devices [AMD]
physical id: 4
bus info: cpu@0
version: 15.12.2
slot: U1
size: 1800MHz
capacity: 1800MHz
width: 64 bits
clock: 200MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp x86-64 3dnowext 3dnow up pni cx16 lahf_lm extapic cr8_legacy ts fid vid ttp tm stc cpufreq
*-cache:0
description: L1 cache
physical id: 5
slot: L1 Cache
size: 128KB
capabilities: asynchronous internal write-back
*-cache:1
description: L2 cache
physical id: 6
slot: L2 Cache
size: 512KB
capacity: 2MB
capabilities: synchronous external write-back
*-memory:0
description: System Memory
physical id: 1
slot: System board or motherboard
size: 1GB
*-bank:0
description: SODIMM DDR Synchronous 667 MHz (1.5 ns)
physical id: 0
slot: M1
size: 512MB
width: 32 bits
clock: 667MHz (1.5ns)
*-bank:1
description: SODIMM DDR Synchronous 667 MHz (1.5 ns)
physical id: 1
slot: M2
size: 512MB
width: 32 bits
clock: 667MHz (1.5ns)
*-memory:1 UNCLAIMED
description: RAM memory
product: C51 Host Bridge
vendor: nVidia Corporation
physical id: 6
bus info: pci@0000:00:00.0
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
capabilities: ht bus_master cap_list
configuration: latency=0
*-memory:2 UNCLAIMED
description: RAM memory
product: C51 Memory Controller 0
vendor: nVidia Corporation
physical id: 0.1
bus info: pci@0000:00:00.1
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:3 UNCLAIMED
description: RAM memory
product: C51 Memory Controller 1
vendor: nVidia Corporation
physical id: 0.2
bus info: pci@0000:00:00.2
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:4 UNCLAIMED
description: RAM memory
product: C51 Memory Controller 5
vendor: nVidia Corporation
physical id: 0.3
bus info: pci@0000:00:00.3
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:5 UNCLAIMED
description: RAM memory
product: C51 Memory Controller 4
vendor: nVidia Corporation
physical id: 0.4
bus info: pci@0000:00:00.4
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
capabilities: bus_master
configuration: latency=0
*-memory:6 UNCLAIMED
description: RAM memory
product: C51 Host Bridge
vendor: nVidia Corporation
physical id: 0.5
bus info: pci@0000:00:00.5
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
capabilities: bus_master cap_list
configuration: latency=0
*-memory:7 UNCLAIMED
description: RAM memory
product: C51 Memory Controller 3
vendor: nVidia Corporation
physical id: 0.6
bus info: pci@0000:00:00.6
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:8 UNCLAIMED
description: RAM memory
product: C51 Memory Controller 2
vendor: nVidia Corporation
physical id: 0.7
bus info: pci@0000:00:00.7
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-pci:0
description: PCI bridge
product: C51 PCI Express Bridge
vendor: nVidia Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: a1
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport-driver
*-network
description: Wireless interface
product: BCM94311MCG wlan mini-PCI
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlan0
version: 02
serial: 00:1a:73:75:25:21
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ndiswrapper+bcmwl5 driverversion=1.52+Broadcom,10/12/2006, 4.100. ip=192.168.1.74 latency=0 link=yes module=ndiswrapper multicast=yes wireless=IEEE 802.11g
*-pci:1
description: PCI bridge
product: C51 PCI Express Bridge
vendor: nVidia Corporation
physical id: 3
bus info: pci@0000:00:03.0
version: a1
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport-driver
*-display
description: VGA compatible controller
product: C51 [Geforce 6150 Go]
vendor: nVidia Corporation
physical id: 5
bus info: pci@0000:00:05.0
version: a2
width: 64 bits
clock: 66MHz
capabilities: pm msi vga bus_master cap_list
configuration: driver=nvidia latency=0 module=nvidia
*-memory:9 UNCLAIMED
description: RAM memory
product: MCP51 Host Bridge
vendor: nVidia Corporation
physical id: 9
bus info: pci@0000:00:09.0
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
capabilities: ht bus_master cap_list
configuration: latency=0
*-isa
description: ISA bridge
product: MCP51 LPC Bridge
vendor: nVidia Corporation
physical id: a
bus info: pci@0000:00:0a.0
version: a3
width: 32 bits
clock: 66MHz
capabilities: isa bus_master
configuration: latency=0
*-serial
description: SMBus
product: MCP51 SMBus
vendor: nVidia Corporation
physical id: a.1
bus info: pci@0000:00:0a.1
version: a3
width: 32 bits
clock: 66MHz
capabilities: pm cap_list
configuration: driver=nForce2_smbus latency=0 module=i2c_nforce2
*-processor UNCLAIMED
description: Co-processor
product: MCP51 PMU
vendor: nVidia Corporation
physical id: a.3
bus info: pci@0000:00:0a.3
version: a3
width: 32 bits
clock: 66MHz
capabilities: bus_master
configuration: latency=0 maxlatency=1 mingnt=3
*-usb:0
description: USB Controller
product: MCP51 USB Controller
vendor: nVidia Corporation
physical id: 7
bus info: pci@0000:00:0b.0
version: a3
width: 32 bits
clock: 66MHz
capabilities: pm ohci bus_master cap_list
configuration: driver=ohci_hcd latency=0 maxlatency=1 mingnt=3 module=ohci_hcd
*-usbhost
product: OHCI Host Controller
vendor: Linux 2.6.24.3-smp ohci_hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 2.06
capabilities: usb-1.10
configuration: maxpower=0mA slots=8 speed=12.0MB/s
*-usb UNCLAIMED
description: Generic USB device
product: Microsoft 3-Button Mouse with IntelliEye(TM)
vendor: Microsoft
physical id: 3
bus info: usb@2:3
version: 3.00
capabilities: usb-1.10
configuration: maxpower=100mA speed=1.5MB/s
*-usb:1
description: USB Controller
product: MCP51 USB Controller
vendor: nVidia Corporation
physical id: b.1
bus info: pci@0000:00:0b.1
version: a3
width: 32 bits
clock: 66MHz
capabilities: debug pm ehci bus_master cap_list
configuration: driver=ehci_hcd latency=0 maxlatency=1 mingnt=3 module=ehci_hcd
*-usbhost
product: EHCI Host Controller
vendor: Linux 2.6.24.3-smp ehci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 2.06
capabilities: usb-2.00
configuration: maxpower=0mA slots=8 speed=480.0MB/s
*-ide:0
description: IDE interface
product: MCP51 IDE
vendor: nVidia Corporation
physical id: d
bus info: pci@0000:00:0d.0
version: f1
width: 32 bits
clock: 66MHz
capabilities: ide pm bus_master cap_list
configuration: driver=AMD_IDE latency=0 maxlatency=1 mingnt=3
*-ide
description: IDE Channel 1
physical id: 1
bus info: ide@1
logical name: ide1
clock: 66MHz
*-cdrom
description: DVD-RAM writer
product: MATSHITADVD-RAM UJ-850S
physical id: 0
bus info: ide@1.0
logical name: /dev/hdc
version: 1.05
serial: HC73 286326
capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: status=nodisc
*-ide:1
description: IDE interface
product: MCP51 Serial ATA Controller
vendor: nVidia Corporation
physical id: e
bus info: pci@0000:00:0e.0
logical name: scsi2
version: f1
width: 32 bits
clock: 66MHz
capabilities: ide pm msi ht bus_master cap_list emulated
configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3 module=sata_nv
*-disk
description: SCSI Disk
product: ST9120822AS
vendor: ATA
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/sda
version: 3.BH
serial: 5LZ3K74P
size: 111GB
capabilities: partitioned partitioned:dos
configuration: ansiversion=5
*-volume:0
description: Linux filesystem partition
physical id: 1
bus info: scsi@2:0.0.0,1
logical name: /dev/sda1
capacity: 54GB
capabilities: primary
*-volume:1
description: Extended partition
physical id: 2
bus info: scsi@2:0.0.0,2
logical name: /dev/sda2
size: 16GB
capacity: 16GB
capabilities: primary extended partitioned partitioned:extended
*-logicalvolume:0
description: Linux filesystem partition
physical id: 5
logical name: /dev/sda5
capacity: 14GB
*-logicalvolume:1
description: Linux swap / Solaris partition
physical id: 6
logical name: /dev/sda6
capacity: 1725MB
capabilities: nofs
*-volume:2
description: HPFS/NTFS partition
physical id: 3
bus info: scsi@2:0.0.0,3
logical name: /dev/sda3
capacity: 7624MB
capabilities: primary
*-volume:3
description: Linux filesystem partition
physical id: 4
bus info: scsi@2:0.0.0,4
logical name: /dev/sda4
capacity: 33GB
capabilities: primary
*-pci:2
description: PCI bridge
product: MCP51 PCI Bridge
vendor: nVidia Corporation
physical id: 10
bus info: pci@0000:00:10.0
version: a2
width: 32 bits
clock: 66MHz
capabilities: pci ht subtractive_decode bus_master cap_list
*-firewire
description: FireWire (IEEE 1394)
product: R5C832 IEEE 1394 Controller
vendor: Ricoh Co Ltd
physical id: 9
bus info: pci@0000:05:09.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm ohci bus_master cap_list
configuration: driver=ohci1394 latency=64 maxlatency=4 mingnt=2 module=ohci1394
*-system:0
description: Generic system peripheral
product: R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter
vendor: Ricoh Co Ltd
physical id: 9.1
bus info: pci@0000:05:09.1
version: 19
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration: driver=sdhci latency=64 module=sdhci
*-system:1 UNCLAIMED
description: System peripheral
product: Ricoh Co Ltd
vendor: Ricoh Co Ltd
physical id: 9.2
bus info: pci@0000:05:09.2
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm cap_list
configuration: latency=0
*-system:2 UNCLAIMED
description: System peripheral
product: R5C592 Memory Stick Bus Host Adapter
vendor: Ricoh Co Ltd
physical id: 9.3
bus info: pci@0000:05:09.3
version: 0a
width: 32 bits
clock: 33MHz
capabilities: pm cap_list
configuration: latency=0
*-multimedia
description: Audio device
product: MCP51 High Definition Audio
vendor: nVidia Corporation
physical id: 10.1
bus info: pci@0000:00:10.1
version: a2
width: 32 bits
clock: 66MHz
capabilities: pm msi ht bus_master cap_list
configuration: driver=HDA Intel latency=0 maxlatency=5 mingnt=2 module=snd_hda_intel
*-bridge DISABLED
description: Ethernet interface
product: MCP51 Ethernet Controller
vendor: nVidia Corporation
physical id: 14
bus info: pci@0000:00:14.0
logical name: eth0
version: a3
serial: 00:16:d3:a5:fa:02
capacity: 100000000
width: 32 bits
clock: 66MHz
capabilities: bridge pm bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.61 latency=0 link=no maxlatency=20 mingnt=1 module=forcedeth multicast=yes port=MII
*-pci:3
description: Host bridge
product: K8 [Athlon64/Opteron] HyperTransport Technology Configuration
vendor: Advanced Micro Devices [AMD]
physical id: 100
bus info: pci@0000:00:18.0
version: 00
width: 32 bits
clock: 33MHz
*-pci:4
description: Host bridge
product: K8 [Athlon64/Opteron] Address Map
vendor: Advanced Micro Devices [AMD]
physical id: 101
bus info: pci@0000:00:18.1
version: 00
width: 32 bits
clock: 33MHz
*-pci:5
description: Host bridge
product: K8 [Athlon64/Opteron] DRAM Controller
vendor: Advanced Micro Devices [AMD]
physical id: 102
bus info: pci@0000:00:18.2
version: 00
width: 32 bits
clock: 33MHz
*-pci:6
description: Host bridge
product: K8 [Athlon64/Opteron] Miscellaneous Control
vendor: Advanced Micro Devices [AMD]
physical id: 103
bus info: pci@0000:00:18.3
version: 00
width: 32 bits
clock: 33MHz
configuration: driver=k8temp module=k8temp