Activity Stream
48,167 MEMBERS
62725 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 5 of 5 FirstFirst ... 345
Results 41 to 49 of 49
  1.     
    #41
    Banned
    Quote Originally Posted by soft2050 View Post
    I posted it here because many user were using your script! But it was vulnerable. Never knew that kiddies will use it like that

    Anyway, nice design! But theres still a bug in new script

    It only checks for file extension so it could still be used as:
    http://localhost/NFO/nfo.php?file=ht...com/robots.txt

    That thing will work as default too!

    PHP Code: 
    <?php
    /*
    NFOGen v2.0 - NFO RENDER 
    Updated: 13-11-2011
    Original by Buzzard
    Coded by Qarizma
    */      

    if( isset($_REQUEST['file']) ) 


    $uploadname $_REQUEST['file'];



    //Which filetypes are allowed?
    $allow[0] = "nfo";
    $allow[1] = "txt";
    //$allow[2] = "tmp";
    //$allow[3] = "tmp";
    //$allow[4] = "tmp";

    $extentie substr($uploadname, -3);

    for (
    $i 0$i count($allow); $i++)
    {
        if (
    $extentie == $allow[$i])
        {
            
    $extentie_check "ok";
            
    $i count($allow) + 5;
        }
    }


    if (
    $extentie_check and file_exists($_REQUEST['file']))
    {
            
    // Load the NFO file... 
            //$lines = file( $_REQUEST['file'] );
    $lines file$_REQUEST['file'] );

            
    // Get the longest line.... 
            
    $longestLine 0
            
    $numberLines 0

            foreach (
    $lines as $line_num => $line
            { 
                
    $line rtrim($line); 

                
    $tempLineLength strlen($line);        // Avoid calling strlen twice... 
                
    if( $tempLineLength $longestLine )
                    
    $longestLine $tempLineLength;
            } 


            
    // The number of line.... 
            
    $numberLines count($lines); 


            
    //Set up the Vars... 
            
    $fontWidth  8;
            
    $fontHeight 12;

            
    $border 1;    // Not one pixel, but 1*FontWidth and 1*FontHeight

            
    $imgWidth   = ($fontWidth $longestLine)   + ( $border $fontWidth );
            
    $imgHeight  = ($fontHeight $numberLines)  + ( $border $fontHeight ); 


            
    $currentX   0;
            
    $currentY   0;


            
    // Start GD
            
    $img        imagecreatetruecolor$imgWidth$imgHeight );
            if (
    $_REQUEST['color']==1$charMap imagecreatefrompng"nfogen_2.png" );
            else 
    $charMap imagecreatefrompng"nfogen_2.png" );


            for(
    $j 0$j $numberLines $border$j++ )
            {
                
    // Avoid calling strlen strlen($line) times :-)
                
    $currentLineLength strlen($line);
                for( 
    $i 0$i $longestLine $border$i++ )
                {
                    
    // int imagecopy ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h)
                    
    imagecopy$img$charMap$currentX$currentY, ($fontWidth 12), ($fontHeight 0), $fontWidth$fontHeight );

                    
    // Move along one char to the right 
                    
    $currentX $currentX $fontWidth;
                }
                
    // Move down a line, and reset the x location
                
    $currentX 0;
                
    $currentY $currentY $fontHeight;
            }

            
    $currentX   $border $fontWidth
            
    $currentY   $border $fontHeight;


            
    // Main loop....
            
    foreach ($lines as $line_num => $line)
            {
                
    // Avoid calling strlen strlen($line) times :-)
                
    $currentLineLength strlen($line);
                for( 
    $i 0$i $currentLineLength$i++ )
                {
                    
    // Get the Locatino of the char in the charmap image 
                    
    $charYOffSet 0;
                    
    $charXOffSet ord($line[$i]); // - 20;        // Becuase my charmap skips the first 20 chars :-)

                    
    while( $charXOffSet >= 20 )
                    {
                        
    $charYOffSet++;
                        
    $charXOffSet $charXOffSet 20;
                    }

                    
    // int imagecopy ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h)
                    
    imagecopy$img$charMap$currentX$currentY, ($fontWidth $charXOffSet), ($fontHeight $charYOffSet), $fontWidth$fontHeight ); 

                    
    // Move along one char to the right 
                    
    $currentX $currentX $fontWidth
                }
                
    // Move down a line, and reset the x location
                
    $currentX = ($border $fontWidth);
                
    $currentY $currentY $fontHeight
            }


            
    // Display the PNG file... 
            
    header ("Content-type: image/png"); 
            
    imagepng$img ); 
            
    imagedestroy($img);        
        } 
        else 
        { 
            echo 
    "ERROR!"
        } 

    }
    else
    {
        echo 
    "ERROR!"
    }

    ?>
    Let it also check whether file also exists on the server or not
    another crappy update lol ...

    i can insert 100000000000000000000000000000000000000x9999999 lines of txt then run it via your "nfo rendering" and tada server is fcked up better said down

    @localhost - do not code if u dont know how ...

    do u know what file_exists do ? jeez

  2.     
    #42
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by devNULL View Post
    another crappy update lol ...

    @localhost - do not code if u dont know how ...

    do u know what file_exists do ? jeez
    Yes i am aware of what it does? Atleast it fixes that bug

    Edit: Just saw your edited reply
    If you can code so much better, then why dont you code it and make it safer ??

    As for what soft2050 just said, it is not and never was vulnerable for the following reasons:
    - All uploaded files remain in /tmp, they cannot be accessed publicly
    - Sure you can 'inject' a remote PHP file, but it will not execute, it will simply have its source printed out
    - The content type is always png, so if for any reason code got injected, it will never execute
    Yeah! You are right! I never said that it is vulnerable! I pointed it out because other users can also use server resources and get there task done resulting in wastage of bandwidth

  3.     
    #43
    Banned
    the msg was for localhost not for u anyway u know what is means

    -----

    Quote Originally Posted by soft2050 View Post
    Yes i am aware of what it does? Atleast it fixes that bug

    Edit: Just saw your edited reply
    If you can code so much better, then why dont you code it and make it safer ??


    Yeah! You are right! I never said that it is vulnerable! I pointed it out because other users can also use server resources and get there task done resulting in wastage of bandwidth
    i am not creator of this so why to fix it or sec. it ?

    it is not vulnerable ? then how the hell i got myslq logins also conf file by accessing ../../etc ...

    also not only high bw do u know how much res. it use to generate that a big text of lines ...

    small tip: limit size upload, cahce nfo (without cache i can make script to generate nfo every sec. and i think some servers wont handle this ...)

  4.     
    #44
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by devNULL View Post
    the msg was for localhost not for u anyway u know what is means

    -----



    i am not creator of this so why to fix it or sec. it ?

    it is not vulnerable ? then how the hell i got myslq logins also conf file by accessing ../../etc ...

    also not only high bw do u know how much res. it use to generate that a big text of lines ...

    small tip: limit size upload, cahce nfo (without cache i can make script to generate nfo every sec. and i think some servers wont handle this ...)
    I am pointing out to second bug by which any other file could be viewed! You got those logins from 1st bug which is already fixed in newer versions!

  5.   Sponsored Links

  6.     
    #45
    Banned
    i am pointing too ... i create txt file with 100000000000000000000000000000000000000x9999999 lines of txt then run it via your "nfo rendering" and tada server is fcked up better said down ...

    //i can remote load txt file

    http://www.besthostingforums.com/1110012-post41.htm

  7.     
    #46
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Quote Originally Posted by Loonycgb2 View Post
    no hacks can be made because you didnt upload nfo.php :/
    Upload it to your own server and go find bugs.

    Quote Originally Posted by JmZ View Post
    Good job local, it's a nice little script. It has been done before of course, but this uses a slightly different method (using a second image as a character set rather than using a CP437 font).

    There are a few parts of it you could do in a smaller amount of code, but for this concept it isn't worth it since it'll be fast anyway

    As for what soft2050 just said, it is not and never was vulnerable for the following reasons:
    - All uploaded files remain in /tmp, they cannot be accessed publicly
    - Sure you can 'inject' a remote PHP file, but it will not execute, it will simply have its source printed out
    - The content type is always png, so if for any reason code got injected, it will never execute

    The only 'security' related thing I'd even consider with this is a size limit, but that's best done in php.ini so irrelevant to local.
    Thanks for the reply, this is what we call a useful reply

    Quote Originally Posted by soft2050 View Post
    I posted it here because many user were using your script! But it was vulnerable. Never knew that kiddies will use it like that

    Anyway, nice design! But theres still a bug in new script

    It only checks for file extension so it could still be used as:
    http://localhost/NFO/nfo.php?file=ht...com/robots.txt

    That thing will work as default too!

    Let it also check whether file also exists on the server or not
    Thanks, that haters reply was not pointed at you.

    For all those other useless replies, why not helping if you can do it better?
    It's open source right?

    Defendos BETA3 Released! Thread - Official Website

  8.     
    #47
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    New version released: NFOGen_v21.zip

    Defendos BETA3 Released! Thread - Official Website

  9.     
    #48
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    New link added on request:
    http://www.mediafire.com/?quk1yz9b6vily5u

    Defendos BETA3 Released! Thread - Official Website

  10.     
    #49
    Member
    why its not creating image file. only rendering. can anyone help if can

Page 5 of 5 FirstFirst ... 345

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Valid opensource alternative to Cpanel?
    By alteregua in forum Webmaster Discussion
    Replies: 4
    Last Post: 12th Jul 2012, 01:23 PM
  2. SharingBay v1 - OpenSource Development - DDL Site
    By Sponge Bob in forum Webmaster Discussion
    Replies: 10
    Last Post: 14th May 2011, 07:13 PM
  3. [PHP] SLN - Server Load Notifier v1.0 - Opensource
    By l0calh0st in forum Web Development Area
    Replies: 10
    Last Post: 22nd Jan 2011, 11:20 AM
  4. [PHP] ASM v1 - Anti-Spam Email Tool (Opensource)
    By l0calh0st in forum Web Development Area
    Replies: 4
    Last Post: 14th Sep 2010, 12:22 PM
  5. opensource webhosting control panels
    By kingpin in forum Hosting Discussion
    Replies: 3
    Last Post: 18th May 2010, 06:29 PM

Tags for this Thread

BE SOCIAL