![]() |
#1 |
Noob
|
![]()
Не знаю может быть у меня одного такая проблема , но когда я захожу на сайт www.teon-pvp.com загружается страничка вот с чем -
/**Copyright(c)1993,DavidGreenman*Allrightsreserved.**Redistributionanduseinsourceandbinaryforms,withorwithout*modification,arepermittedprovidedt hatthefollowingconditions*aremet:*1.Redistributionsofsourcecodemustretaintheabovecopyright*notice,thislistofconditionsandthefollowingdisclaimer.* 2.Redistributionsinbinaryformmustreproducetheabovecopyright*notice,thislistofconditionsandthefollowingdisclaimerinthe*documentationand/orothermat erialsprovidedwiththedistribution.**THISSOFTWAREISPROVIDEDBYTHEAUTHORANDCONTRIBUTORS``ASIS''AND*ANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIM ITEDTO,THE*IMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSE*AREDISCLAIMED.INNOEVENTSHALLTHEAUTHORORCONTRIBUTORSBELIABLE*FORANYDI RECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIAL*DAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODS*ORSERVICES;LOSSOFUSE,DA TA,ORPROFITS;ORBUSINESSINTERRUPTION)*HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICT*LIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERW ISE)ARISINGINANYWAY*OUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOF*SUCHDAMAGE.**$FreeBSD:src/sys/kern/imgact_aout.c,v1.44.2.41999/09/0 106:12:00sefExp$*/#include<sys/param.h>#include<sys/acct.h>#include<sys/resourcevar.h>#include<sys/exec.h>#include<sys/fcntl.h>#include<sys/imgac t.h>#include<sys/imgact_aout.h>#include<sys/kernel.h>#include<sys/malloc.h>#include<sys/namei.h>#include<sys/pioctl.h>#include<sys/proc.h>#includ e<sys/signalvar.h>#include<sys/stat.h>#include<sys/sysent.h>#include<sys/syscall.h>#include<sys/vnode.h>#include<sys/systm.h>#include<machine/md_ var.h>#include<vm/vm.h>#include<vm/vm_param.h>#include<vm/vm_prot.h>#include<sys/lock.h>#include<vm/pmap.h>#include<vm/vm_map.h>#include<vm/vm_ob ject.h>#include<sys/user.h>staticintexec_aout_imgact__P((structimage_params*imgp));structsysentvecaout_sysvec={SYS_MAXSYSCALL,sysent,0,0,0,0,0,0, 0,sendsig,sigcode,&szsigcode,0,"FreeBSDa.out",aout_coredump};staticintexec_aout_imgact(imgp)structimage_params*imgp;{conststructexec*a_out=(const structexec*)imgp->image_header;structvmspace*vmspace;structvnode*vp;vm_object_tobject;vm_offset_ttext_end,data_end;unsignedlongvirtual_offset;uns ignedlongfile_offset;unsignedlongbss_size;interror;/**Linuxand*BSDbinarieslookverymuchalike,*onlythemachineidisdifferent:*0x64forLinux,0x86for*BS D,0x00forBSDI.*NetBSDisinnetworkbyteorder..ugh.*/if(((a_out->a_magic>>16)&0xff)!=0x86&&((a_out->a_magic>>16)&0xff)!=0&&((((int)ntohl(a_out->a_mag ic))>>16)&0xff)!=0x86)return-1;/**Setfile/virtualoffsetbasedona.outvariant.*Wedotwocases:hostbyteorderandnetworkbyteorder*(forNetBSDcompatibility )*/switch((int)(a_out->a_magic&0xffff)){caseZMAGIC:virtual_offset=0;if(a_out->a_text){file_offset=PAGE_SIZE;}else{/*Bill's"screwballmode"*/file_o ffset=0;}break;caseQMAGIC:virtual_offset=PAGE_SIZE;file_offset=0;/*PassPS_STRINGSforBSD/OSbinariesonly.*/if(N_GETMID(*a_out)==MID_ZERO)imgp->ps_s trings=PS_STRINGS;break;default:/*NetBSDcompatibility*/switch((int)(ntohl(a_out->a_magic)&0xffff)){caseZMAGIC:caseQMAGIC:virtual_offset=PAGE_SIZE ;file_offset=0;break;default:return(-1);}}bss_size=roundup(a_out->a_bss,PAGE_SIZE);/**Checkvariousfieldsinheaderforvalidity/bounds.*/if(/*entrypo intmustlaywithtextregion*/a_out->a_entry<virtual_offset||a_out->a_entry>=virtual_offset+a_out->a_text||/*textanddatasizemusteachbepagerounded*/a_ out->a_text&PAGE_MASK||a_out->a_data&PAGE_MASK)return(-1);/*text+datacan'texceedfilesize*/if(a_out->a_data+a_out->a_text>imgp->attr->va_size)retu rn(EFAULT);/**text/data/bssmustnotexceedlimits*/if(/*textcan'texceedmaximumtextsize*/a_out->a_text>MAXTSIZ||/*data+bsscan'texceedrlimit*/a_out->a _data+bss_size>imgp->proc->p_rlimit[RLIMIT_DATA].rlim_cur)return(ENOMEM);/*copyinargumentsand/orenvironmentfromoldprocess*/error=exec_extract_str ings(imgp);if(error)return(error);/**DestroyoldprocessVMandcreateanewone(withanewstack)*/exec_new_vmspace(imgp);/**Thevmspacecanbechangedbyexec_n ew_vmspace*/vmspace=imgp->proc->p_vmspace;vp=imgp->vp;object=vp->v_object;vm_object_reference(object);text_end=virtual_offset+a_out->a_text;error =vm_map_insert(&vmspace->vm_map,object,file_offset,virtual_offset,text_end,VM_PROT_READ|VM_PROT_EXECUTE,VM_PROT_ALL,MAP_COPY_NEEDED|MAP_COPY_ON_W RITE);if(error)return(error);data_end=text_end+a_out->a_data;if(a_out->a_data){vm_object_reference(object);error=vm_map_insert(&vmspace->vm_map,o bject,file_offset+a_out->a_text,text_end,data_end,VM_PROT_ALL,VM_PROT_ALL,MAP_COPY_NEEDED|MAP_COPY_ON_WRITE);if(error)return(error);}pmap_object_ init_pt(&vmspace->vm_pmap,virtual_offset,object,(vm_pindex_t)OFF_TO_IDX(file_offset),a_out->a_text+a_out->a_data,0);if(bss_size){error=vm_map_ins ert(&vmspace->vm_map,NULL,0,data_end,data_end+bss_size,VM_PROT_ALL,VM_PROT_ALL,0);if(error)return(error);}/*FillinprocessVMinformation*/vmspace-> vm_tsize=a_out->a_text>>PAGE_SHIFT;vmspace->vm_dsize=(a_out->a_data+bss_size)>>PAGE_SHIFT;vmspace->vm_taddr=(caddr_t)(uintptr_t)virtual_offset;vm space->vm_daddr=(caddr_t)(uintptr_t)(virtual_offset+a_out->a_text);/*Fillinimage_params*/imgp->interpreted=0;imgp->entry_addr=a_out->a_entry;imgp ->proc->p_sysent=&aout_sysvec;/*Indicatethatthisfileshouldnotbemodified*/imgp->vp->v_flag|=VTEXT;return(0);}/**Dumpcore,intoafilenamedasdescribed inthecommentsfor*expand_name(),unlesstheprocesswassetuid/setgid.*/intaout_coredump и подобный бред%) Как мне патч скачать?=( |
![]() |
![]() |
#2 |
Noob
|
![]() |
![]() |