403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/usagrantapplications.org/vsa/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/usagrantapplications.org/vsa/forget.php
<?php
/*
Copyright (c) 2007-present InnAnTech Industries
Author: Dave Guindon
Web: www.VirtualSmartAgent.com
Support: www.DaveGuindonSupport.com

Please send bug reports, suggestions and/or feedback to the support
website given above.

Virtual Smart Agent is a commercial software. Any distribution is strictly prohibited
unless a resale rights license was delivered along with this software.
*/

include('modfiles/db.php');
include('globals.php');
//get settings
$conn = mysql_connect("$dbhost", "$dblogin", "$dbpass") or die ('I cannot connect to the database.');
mysql_select_db($dbname, $conn);
$sql = "SELECT * FROM $settingsTable"; 
$result = mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
$settings = mysql_fetch_assoc($result);
if ($_POST){
  $email = $_POST['email'];
  $email = trim($email);
  if(isset($email)&($email!='')){		
	$username = $settings['username'];
	$password = $settings['password'];
	$fname = $settings['fname'];
	$lname = $settings['lname'];
	$useremail = $settings['email'];
	$installfolder = $settings['installfolder'];
	$installsite = $settings['installsite'];
	$siteurl = 	$installsite.$installfolder;

	//build email headers
	$headers  = "From: \"$fname $lname\"<$useremail>\n";
    $headers .= "Reply-To: $useremail\n";
    $headers .= "Return-Path: $useremail\n";
    $headers .= "X-Mailer: PHP/".phpversion();

    if($useremail == $email){
      $m = get_password_message($username,$password,$siteurl);
      mail($email, 'Virtual Smart Agent Password Retrieval', $m, $headers);
      $fmess = 'Your password has been sent to your email address, please check your email now.';
    }else{
      $fmess = 'The email address <font color="#0000FF">'.$email.'</font> is NOT in the database.';
    }
  }else{
    $fmess = 'Please enter your email address.';
  }
}
function get_password_message($username,$password,$siteurl){
$message='Dear Script Owner,

 {This is an automated message}

 Here is your login information:

 Username: '.$username.'
 Password: '.$password.'

 Login here: '.$siteurl.'login.php

 or simply bookmark this link:
 '.$siteurl.'index.php?user='.$username.'&pass='.$password.'


Kind Regards,

Dave Guindon - Developer of Virtual Smart Agent 
B.Eng., M.A.Sc. in Electrical Engineering 
Software Developer/Webmaster 
Online Marketing Entrepreneur 

Dave\'s Websites:
http://www.DaveGuindon.info
http://www.DaveGuindonSupport.com
http://www.HotItemFinder.com
http://www.AuctionYen.com
http://www.CamStudioPro.com
http://www.DavesOnlineVideos.com
http://www.iPopBox.com
http://www.VirtualSmartAgent.com';
Return $message;
}
?>
<html>
<head>
<title>Virtual Smart Agent - Password Retrieval</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="style.css" type=text/css rel=stylesheet>
</head>
<body>
<p><?php echo $topheader; ?></p>
<br />
<form action="forget.php" method="post">
  <table width="350" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF" class="small_grey_border">
    <tr>
      <td width="358"><div align="center"><strong><font size="5">Login Information Retrieval</font></strong></div></td>
    </tr>
    <tr>
      <td>
	  <div align="center">
          <p>Forget your password? Simply enter your email address that you used
            when you installed, click the 'Retrieve Password' button below and your
            username and password will be sent to your email address.</p>
          <p><font color="#FF0000" size="4"><strong><?php echo $fmess; ?>
            </strong></font></p>
          <table width="199" border="0" cellspacing="0" cellpadding="2" class="dashed_green_border_small">
            <tr>
              <td width="65" nowrap><div align="right">Email:</div></td>
              <td width="124" nowrap><font face="verdana" size="2"><b>
                <input name="email" class="input" value="<?php echo $email; ?>" maxlength=100>
              </b></font></td>
            </tr>
            <tr>
              <td colspan="2"><div align="center"><font face="verdana" size="2"><b>
                  <input type=submit value="Retrieve Login Information" name=sublogin class="input">
              </b></font></div></td>
            </tr>
          </table>
          </div></td>
    </tr>
  </table>
</form>
<div align="center"><?php echo $copyright; ?></div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit