Figuring out database credentials

Caporegime
Joined
18 Oct 2002
Posts
25,287
Location
Lake District
I have been asked to recover a website which is written is ASP but it connects to a backend database, I'm used to using PHP and seeing the usual database connect details but can't see it anywhere.

The only thing I have found is in web.config which has <add key connection value=with a very long alphanumerical value and <add key username, is this the database connection config?

How do I perform a backup of that database?
 
What database is it? Post the webconfig (obfuscate the key data if you want).

This is a sql string for asp.net

<add name="ConnectionStringName"
providerName="System.Data.SqlClient"
connectionString="Data Source=ServerName;Initial Catalog=DatabaseName;Integrated Security=False;User Id=userid;Password=password;MultipleActiveResultSets=True" />

Loads of old connection strings here for various DB's

https://msdn.microsoft.com/en-us/library/jj653752(v=vs.110).aspx#mars


If its older could be in the code

https://support.microsoft.com/en-us...a-database-connection-from-an-asp-page-in-iis
 
This is the only section in web.config that refers to connection
Code:
<add key="Connection" value="verylongalphanumberic="/>
    <add key="SecurityOn" value="false"/>
        <add key="UserName" value="username"/>
        <add key="UpdateDefaultPage" value="webpagelist.aspx"/>
        <add key="UserId" value="52"/>
    <add key="UserId2" value="47"/>
        <add key="HandleExceptionMode" value="4"/>
        <add key="ConnectionMode" value="0"/>
        <!-- 0 - no database caching, 1 - caching -->
        <add key="NoReplyNotification" value="[email protected]"/>
    <add key="EmailNotification" value="[email protected]"/>
        <add key="DomainName" value="http://www.website.co.uk"/>
        <add key="SSL" value="false"/>
 
Back
Top Bottom