1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Free online PHP tester

Discussion in 'PHP' started by qwertzguy, Apr 28, 2007.

  1. #1
    Hi, everyone.:)
    I recommand you to check this website out: http://forumferney.free.fr/stester.html.
    It's a dynamic website on which you can directly execute PHP scripts to test them (without uploading) and for free. You can even use the script on your own website! (by looking at the sourcecode you can call the php script from your website directly).
     
    qwertzguy, Apr 28, 2007 IP
    commandos likes this.
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    I just deleted stester.html


    Good job on security. :)


    EDIT:

    After highlighting the code of your execute script, I figured it was even easier to bypass the security hole than I thought. Oh jeeze...


    EDIT 2:

    I just found your MySQL access details for mysql5.worldispnetwork.com.

    This is exciting. Thanks for putting this up. :D

    EDIT 3:

    also found your MySQL details for the host you're using for this. You're too smart. :D


    EDIT 4:

    Wow, I just entered your PhpMyAdmin, and found your credit card number, lmao. It expires on 05/08. ;)

    Dude, seriously. Take this shit off.

    EDIT 5:

    I deleted stexecute.php as well now. Just for your good. You should be thankful...
     
    nico_swd, Apr 28, 2007 IP
    poseidon likes this.
  3. yourihost

    yourihost Well-Known Member

    Messages:
    1,708
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    115
    #3
    HAha thats funny.
     
    yourihost, Apr 28, 2007 IP
  4. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #4
    LOOOL

    Thank'S GOD , nice swd is a nice guy :)
     
    commandos, Apr 28, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    It's funny what ideas people have. What on earth would this be good for? I guess every serious coder has a local web server with PHP and tests the code there.
     
    nico_swd, Apr 28, 2007 IP
  6. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #6
    awesome..:D well may be you can tell a thing or two about what he did wrong as I too may be doing something that stupid
     
    poseidon, Apr 28, 2007 IP
    commandos likes this.
  7. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #7
    I think by using :
    highlight_file(__FILE__);
    PHP:
    , you can see the code source of a web page .

    Then you can see the database file connection .

    then access phpmyadmin ?
     
    commandos, Apr 28, 2007 IP
  8. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #8
    EDIT:
    Well, he has a separate server for MySQL, with another subdomain. I just went there and it asked me for the login details. Which were in the highlighted file as well. :D


    He had about 500 "or"s in his code which looked like this more or less:

    
    
    if (strpos($code, 'fopen(') !== false || strpos($code, 'opendir(') !== false || strpos($code, 'readdir(') !== false [.......])
    
    PHP:
    I expected the code to be a little bit more secure and did this to bypass the function block:
    
    
    $echo = 'opendir';
    $echo2 = 'readdir';
    
    $fp = $echo('.');
    
    while (($file = $echo2($fp)) !== false)
    {
        echo "$file<br />\n";
    }
    
    
    PHP:
    From there could I see the files. glob() didn't work for some reason. Or now that I think of, maybe print_r() doesn't work with eval()... anyway. Now that I could read the dirs, I did just a highlight_file() on the files that seemed to be interesting and saw its contents.


    I could have bypassed this even easier by putting a space between the function name and bracket.
    
    
    $dir = opendir ('.');
    
    PHP:
    But I figured that out later after highlighting the execute file.
     
    nico_swd, Apr 28, 2007 IP
  9. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #9
    nico_swd, Apr 29, 2007 IP
  10. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #10
    man leave it next time , give me a chance to mess with it :p
     
    commandos, Apr 29, 2007 IP
  11. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #11
    Lol, I'm sorry. You still can with a local form. Point it to stexecute.php with a field name called "code". ;)
     
    nico_swd, Apr 29, 2007 IP
  12. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #12
    I'm not sure if he read your post last time , now you will be sure that he read the message lol

    LMAO

     
    commandos, Apr 29, 2007 IP
  13. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #13
    Lol, he's stupid enough for putting it up again after it "magically" disappeared. I hope he learns now. :D And if not, I'll continue messing it up until he gets it, lol.
     
    nico_swd, Apr 29, 2007 IP
  14. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #14
    You know , i dont even need a local form to mess with it loool

    just use google cache and it will work ...


    xxx
    Cxxx
    doxx
    mexx
    scriptxxxx.html
    uxxxx.php
    maxxx.html
    jsxxxx
     
    commandos, Apr 29, 2007 IP
    nico_swd likes this.
  15. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #15
    Hahaha, nice one. :D This is so much fun.
     
    nico_swd, Apr 29, 2007 IP
  16. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #16
    he disabled the highlight_file(); lol

    Error: Some commands in this script are not allowed in ScriptTester. Click here for a list of unallowed commands.
     
    commandos, Apr 29, 2007 IP
  17. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #17
    nico_swd, Apr 29, 2007 IP
  18. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #18
    i think he's a french guy , a lot of flash and files are in french .

    i think we should leave him a french message also lol
     
    commandos, Apr 29, 2007 IP
  19. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #19
    Left him a french messsage looool , and a redirection to this thread after 10 seconds so we will be sure he read it :D
     
    commandos, Apr 29, 2007 IP
  20. manilodisan

    manilodisan Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #20

    Hahahahah....co'mon people....he was just making some new friends (visitors). Stop being so mean....so what he might lose his cc for fraud ....?!!? :))) hahah..this shit was strong...
     
    manilodisan, Apr 29, 2007 IP