PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Erfahrungen mit ricmp?



linuxhanz
19.07.04, 10:40
Hallo;



Ich will unseren Webserver (haha Scherz :ugly: ) mit
ricmp konfigurieren.




$ ./ascii2hex %2whata$****in/damn?
253277686174612f64616d6e3f

$ ./ricmpset -x '253277686174612f64616d6e3f'

$ ./ricmpacl add 127.0.0.1 192.168.10.74 accept log


Soweit keine Fehler. es kommt Passwors set, ACL set usw.

Da ist es auch:


% strings /dev/mem |grep ricmp

ricmp_dev
ricmp_ntoa
ricmp_setpwd
ricmp_try
ricmp.c
ricmp_dev_write
ricmp_dev_open
ricmp_dev_close
ricmp_dev_flush
ricmp_fops
ricmp_dev
ricmp_ntoa
ricmp_setacl
c02d5a40 T ricmp_init
c0245520 T ricmp_setpwd
c0245560 t ricmp_dev_write
c02456b0 t ricmp_dev_open
c02456c0 t ricmp_dev_close
c02456d0 t ricmp_dev_flush
c0245860 t ricmp_ntoa
c02458d0 T ricmp_try
c0245990 T ricmp_rmacl
c02459f0 T ricmp_setacl
de/net/ricmp



Das Device habe ich auch angelegt:


/dev/ricmp 10 210


Wen ich mit ping -p + Pattern sende kommen immer Packete an , aber
der Rechner rebootet nicht.

Ich habe den letzten Patch fuer 2.4.20-rcx fuer 2.4.22 angepasst.

[DMESG]


Kernel command line: BOOT_IMAGE=2.4.22-rice ro root=302 pci=bios noauto idebus=66 apm=on acpi=off max_loop=200 hdc=ide-scsi hdd=ide-scsi
ide_setup: idebus=66
ide_setup: hdc=ide-scsi
ide_setup: hdd=ide-scsi
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 896.198 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1789.13 BogoMIPS
Memory: 515844k/524224k available (1395k kernel code, 7992k reserved, 397k data, 276k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: Common caps: 0183fbff c1c7fbff 00000000 00000000
CPU: AMD Duron(tm) Processor stepping 01
[..]
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
[...]
pty: 256 Unix98 ptys configured
ricmp extensions version 1.2 loaded
Adding Swap: 706852k swap-space (priority 23)
anti-ptrace kernel module ended with pid=[335]



[HISTORY]



tar zvxf linux-2.4.22.tar.gz
vi ricmp-2.4.20-rc1.patch
mv linux-2.4.22 linux
cd linux/
patch -p1 < ../ricmp-2.4.20-rc1.patch
make menuconfig
make dep
make clean
make bzImage
make modules &
ls
make modules_install
vi /etc/lilo.conf
grep mkinit /etc/motd
cd /boot/
PS1=%
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.22-rice
cp /usr/src/linux/System.map /boot/System.map
vi /etc/lilo.conf
#/sbin/mkinitrd -k vmlinuz-2.4.22-rice -i initrd-2.4.22-rice -m " reiserfs ide-scsi "
less /usr/src/ricmp-2.4.20-rc1.patch
ls /dev/ricmp
man mknod
less /usr/src/ricmp-2.4.20-rc1.patch
cd /dev/
mknod --help
mknod ricmp c 210 10
ls -la ricmp
ps aux
/etc/init.d/multi start gpm syslog
less /var/log/messages
echo "\x11\x22\x33\x44" > /dev/ricmp
ls -la /dev/ricmp
cat "\x11\x22\x33\x44" > /dev/ricmp
cd /dev/; mknod ricmp 210 10
cd /dev/; mknod ricmp p
cat /var/log/messages
grep 210 /etc/modules.*
file tcp
file ricmp
man mknod
file /dev/ricmp
rm /dev/ricmp
cd /dev/; mknod ricmp c 10 210
file ricmp
cat "\x11\x22\x33\x44" > /dev/ricmp
echo -e "\x11\x22\x33\x44" > /dev/ricmp
fuser -v ricmp
ls -l ricmp
echo -e "\x11\x22\x33\x44" |hex
cat ricmp
strace cat ricmp
rmmod anti-ptrace
strace cat ricmp
fuser -v ricmp
echo -e "\x11\x22\x33\x44" > /dev/ricmp
cat ricmp
file ricmp
echo -e "\x11\x22\x33\x44" | cat > /dev/ricmp
fuser -v -a /dev/ricmp
lsof |less
echo "\x11\x22\x33\x44" |hex
#ping -p "5c 78 31 31 5c 78 32 32 5c 78 33 33 5c 78 34 34 0a"
tail -12 /var/log/messages
ping -p "5c7831315c7832325c7833335c7834340a" 192.168.10.74


Zuerst dachte ich, man muss direct an das Device senden. -> Falsch.

Hat jemand das mal jemand hinbekommen? Mit was fuer ACL's?