Sis/Sisx file detection ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • EnDLesS
    replied
    Sorry u got me rong ,meant a class to check sis file info.

    Leave a comment:


  • metulj
    replied
    Originally posted by EnDLesS View Post
    sis decompiler need to be installed for sis ,cant say bout sisx.
    sis decompiler ???
    i'd really like to know how you gonna
    install sis decompiler onto web server !??!??

    Leave a comment:


  • EnDLesS
    replied
    sis decompiler need to be installed for sis ,cant say bout sisx.

    Leave a comment:


  • something else
    replied
    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:


  • GiLL
    replied
    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:


  • something else
    started a topic Sis/Sisx file detection ?

    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 headers
Working...
X