Capture PHP Script

Discussion in 'PHP' started by garrywinkler, Aug 21, 2007.

  1. #1
    Hi,
    Is it possible to capture the actual script of a PHP file from a publicly available web directory?

    I have tried to use script viewers, PHP debuggers and website copiers and always only manage to save the destination page that is scripted into the PHP file not the actual PHP script.

    It is in an open directory but i can only "save target as" which again only saves the destination website.

    To help explain what i mean here is the scenario:

    There is a phishing site that has been posted illigally on a compromised site.
    The folders have not been locked and one of the files in the folder is the PHP file.
    The PHP file will contain the destination of the stolen information so would be very useful in stopping these fraudsters.

    Any help would be greatly appreciated.

    Regards

    Garry
     
    garrywinkler, Aug 21, 2007 IP
  2. killerj

    killerj Active Member

    Messages:
    765
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    95
    #2
    php is a back-end compiled scripting language , there is No way you could see the source from the front-end(Browsers) unless the server or the php processor on the server has stopped working properly .
    Getting access to the server root and downloading raw files would be a better option to obtain the source .
    Be careful though , its straight forward attempt at hacking and may cause you to face serious legal actions !
     
    killerj, Aug 21, 2007 IP
  3. garrywinkler

    garrywinkler Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your response killerj - and thanks for the warning.
     
    garrywinkler, Aug 22, 2007 IP
  4. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Unless you want to hack; you can't.

    You don't have access to the server?
     
    MMJ, Aug 22, 2007 IP