User Controls

Thanked Posts by 0Death

  1. 0Death Yung Blood
    Don't mind my long post, just posting cool suggestions!
    Maybe you could add a wildcard to the end of "php" as well, so it becomes "*.php*" since there's always the possibility of them using older versions. I've seen sites myself that use extensions like ".php3" and ".php5". Other cool extensions other interesting extensions might be: ".shtml" (server side html), cfm (coldfusion) and yeah like you said maybe perl, ruby or other scripting languages.

    You could make some sort of array with extensions like that and look for files with names like: (conf, config, global, db, database).extension in the webserver root directories such as /var/www and /home/user/public_html.

    For more fulltext search after database credentials in php, you could maybe try to search for php PDO instances through regex or something. For example: "${variable} = new PDO (${variables here}...);".

    Also if the user have automated backups via cronjobs or something and doesn't want to store his password directly in the .sh file, there might be a possibility that he has stored the mysql credentials in his my.cnf file in any of these locations (Might be worth looking into).

    If they have MySQL safemode enabled there might be a possibility that the credentials is stored in the php.ini file instead of in the php source code of the application. Like this: http://webmasters.stackexchange.com/a/72124 .
    The following users say it would be alright if the author of this post didn't die in a fire!
  2. 0Death Yung Blood
    Maybe you can try to use Selenium python library to automize actual browser to process it? Something like this or this looks interesting.

    Edit: I realize the first link only applies to Java but same concept, there are many other interesting example snippets for python in the documentation.

    Post last edited by 0Death at 2017-01-11T00:05:45.956375+00:00
    The following users say it would be alright if the author of this post didn't die in a fire!
Jump to Top