Sis/Sisx file detection ?
Collapse
X
-
Thanks but not quite what i mean
example:
I have an uploader that only allows files sis and sisx files to be uploaded.
I then Rename "something.mp3" to "something.sis" to try and bypass the extension uploading rule ...
However it is possible to pick up on if its a true sis(x) file rather than a renamed mp3 or other format.
Im guessing sis/sisx files give some header information that proves they are sis/sisx files
Leave a comment:
-
could not understand may be like this?
Code:<?php $filename = $_GET['file']; if(endsWith($filename, '.sisx')) { header('Content-type: x-epoc/x-sisx-app'); header('Content-Disposition: attachment; filename="'.$filename.'"'); readfile($filename); } else if(endsWith($filename, '.sis')) { header('Content-type: application/vnd.symbian.install'); header('Content-Disposition: attachment; filename="'.$filename.'"'); readfile($filename); } else { print('Not file to download'); } function endsWith( $str, $sub ) { return ( substr( $str, -strlen( $sub ) ) == $sub ); } ?>Last edited by GiLL; 05.10.10, 16:53.
Leave a comment:
-
Sis/Sisx file detection ?
Anyone know how to detect if the file is really a sis(x) file thats been uploaded and not a renamed extension?
like on wen.ru`s uploaders
Im guessing its done on headersTags: None
Leave a comment: