22.04.2013 Views

dtrace-infiltrate

dtrace-infiltrate

dtrace-infiltrate

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Apache Javascript Injector<br />

Hook open, looking for .htm in the filename.<br />

Store the fd in htmlfd[] array for other probes.<br />

Close removes fd obviously…<br />

syscall::open*:return<br />

/execname == "httpd" && (strstr(fds[arg1].fi_pathname+2,".htm") != 0) /<br />

{<br />

/* store pid for read */<br />

htmlfd[arg1] = 1;<br />

printf("[+] Adding open for: %s returned fd: %i\n",fds[arg1].fi_pathname<br />

+2,arg1);<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!