Friday, October 31, 2014 Login · Register
    Login
Username

Password


Remember Me

Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.

 

    Users Online
  • · Members on IRC: 29   
  • · Total Members: 16,926
  • · Newest Member: parsaa
  •  

     

        Related Ads
     

     

     

        Top 10 Forum Posters
    UserPosts
    bluechill1411   
    madf0x1291   
    cruizrisner1062   
    Qwexotic1034   
    Null Set870   
    Override604   
    auditorsec603   
    godofcereal599   
    TurboBorland585   
    Teddy477   
     

        Affiliates




  • iExploit


  • iExploit


  • WeChall





  • Thisislegal.com

  •  

        Related Ads
     

    View Thread
         
    Security Override Hacking Challenges Programming Challenges
    Not sure what I'm doing wrong in programming 1
    Register FAQ Members List Today's Posts Search

    Print Thread
    01-17-2014 08:44 AM Not sure what I'm doing wrong in programming 1 | Edited by apex123 01-17-2014 01:23 PM
    HI, I have completed a number of this type of challenge on other websites, but this one doesn't seem to be working the same. I can't seem to get the entire source code, I only have like half of it (and not the half that I need either). I'm using php curl, can anyone offer any advice?

    Edit: I can't view any part that would be in the body tags! WTF?!?!?!?

    This makes no sense at all. If I set my $url variable to
    Download source  Code
    $url ="http://securityoverride.org/challenges/programming/";



    and echo the output I get the full source code, the same that I would if I opened up firebug while on the page. However, as soon as I change the variable to
    Download source  Code
    $url ="http://securityoverride.org/challenges/programming/1/";



    or
    Download source  Code
    $url ="http://securityoverride.org/challenges/programming/1/index.php";



    the output ends at the first body tag. What is going on?
     
    Offline
    01-18-2014 03:54 PM RE: Not sure what I'm doing wrong in programming 1
    Please, someone tell me WTF is wrong with this:

    Download source  Code
    <?php
        $url = "http://securityoverride.org/challenges/programming/1/index.php";
        $cookies = "PHPSESSID=xxx;fusion_user=xxx";
        $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_COOKIE, $cookies);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        $output = curl_exec($ch);
       
        echo $output;
    ?>



    This should echo all of the source code for the page, but instead it only echoes to the opening body tag. Why though? It doesn't make sense :(
     
    Offline
    01-18-2014 10:46 PM RE: Not sure what I'm doing wrong in programming 1 | Edited by Merlin21 01-18-2014 10:47 PM
    Look at those pages when your logged in and when your logged out. Its your cookies.
    Can be accessed without a log in
    Download source  Code
    $url ="http://securityoverride.org/challenges/programming/";



    Can't
    Download source  Code
    $url ="http://securityoverride.org/challenges/programming/1/";



    Can't
    Download source  Code
    $url ="http://securityoverride.org/challenges/programming/"1/index.php;


     
    Offline
    01-19-2014 07:02 AM RE: Not sure what I'm doing wrong in programming 1
    Thanks for the reply Merlin. but It's not my cookies lol. I replaced them with 'xxx' when I copied and pasted the code into my previous post.
     
    Offline
    01-19-2014 07:31 AM RE: Not sure what I'm doing wrong in programming 1
    Well, I solved it. In case anyone is interested, I had to add
    Download source  Code
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);



    to my code. Thanks for all your help lol!
     
    Offline
    01-19-2014 11:05 AM RE: Not sure what I'm doing wrong in programming 1
    i haven't done the challenge my self yet I was just giving it my best guess. But im glad you got it working.
     
    Offline
    01-19-2014 12:49 PM RE: Not sure what I'm doing wrong in programming 1
    LOL
     
    Offline
    01-19-2014 12:50 PM RE: Not sure what I'm doing wrong in programming 1
    that was directed at apex by the way. He is just a funny guy.Smile
     
    Offline
    Jump to Forum:
    Forum powered by fusionBoard