. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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/Addsubpage.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 Addsubpage : System.Web.UI.Page
    {
       public string page = "";
        public string subpage = "";
        public string url = "";
        public string urlcover = "";
        public string siteurl = "";


        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                siteurl = clsComman.value("SiteUrl");

                page = Convert.ToString( Request.QueryString["page"]);

                subpage = Convert.ToString( Request.QueryString["subpage"]);

                this.txtpage.Text = page;

                if (!IsPostBack)
                {
                    BindSubpage();
                }

            }
            catch (Exception ex)
            {

            }
        }

        public void BindSubpage()
        {
            AdminService adminService = new AdminService();
            DataSet ds = adminService.GetSubPageDetails(subpage);
            this.txtpage.Text = ds.Tables[0].Rows[0]["page"].ToString();
            this.txttitle.Text = ds.Tables[0].Rows[0]["subpage"].ToString();
            this.txtdisplayname.Text = ds.Tables[0].Rows[0]["subpage_displaytitle"].ToString();
            this.txttitle.Text = ds.Tables[0].Rows[0]["subpage"].ToString();
            this.content.InnerHtml = ds.Tables[0].Rows[0]["subpage_content"].ToString();
            page = ds.Tables[0].Rows[0]["page"].ToString();

            string CoverImage = ds.Tables[0].Rows[0]["Cover"].ToString();
            if (CoverImage != "")
            {
                urlcover = siteurl + "images/covers/" + CoverImage;
                Session["CoverImage"] = CoverImage;
            }
            else
            {
                urlcover = siteurl + "images/noimage.jpg";
                Session["CoverImage"] = "";
            }

            string ProductImage = ds.Tables[0].Rows[0]["ProductImage"].ToString();
            if (ProductImage != "")
            {
                url = siteurl + "images/products/" + ProductImage;
                Session["ProductImage"] = ProductImage;
            }
            else
            {
                url = siteurl + "images/noimage.jpg";
                Session["ProductImage"] = "";
            }


        }

        protected void lnkremovecover_Click(object sender, EventArgs e)
        {

            AdminService adminService = new AdminService();

            adminService.RemoveSubPageCover(subpage);
            this.status.Visible = true;
            this.status.InnerHtml = "SubPage Cover Removed successfully";
            //ds = adminService.GetPageDetails(subpage);
            BindSubpage();
        }

        protected void lnkremoveproduct_Click(object sender, EventArgs e)
        {

            AdminService adminService = new AdminService();

            adminService.RemoveSubPageProduct(subpage);
            this.status.Visible = true;
            this.status.InnerHtml = "SubPage Product Image Removed successfully";
            //ds = adminService.GetPageDetails(subpage);
            BindSubpage();
        }

        protected void btnsubmit_Click(object sender, EventArgs e)
        {
            string cover = "";
            string products = "";

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

            if (this.FileUpload1.HasFile)
            {
                FileInfo f = new FileInfo(this.FileUpload1.PostedFile.FileName.ToString());
                cover = strName + f.Extension;
                this.FileUpload1.PostedFile.SaveAs(Server.MapPath("..") + @"\images\covers\" + cover);
            }
            else
            {
                cover = Convert.ToString(Session["CoverImage"]);
            }

            if (this.FileUpload2.HasFile)
            {
                FileInfo f = new FileInfo(this.FileUpload2.PostedFile.FileName.ToString());
                products = strName + f.Extension;
                this.FileUpload2.PostedFile.SaveAs(Server.MapPath("..") + @"\images\products\" + products);
            }
            else
            {
                products = Convert.ToString(Session["ProductImage"]);
            }



            AdminService adminService = new AdminService();

            if (string.IsNullOrEmpty(subpage))
            {
                adminService.Addsubpage(this.txttitle.Text, this.txtdisplayname.Text, this.content.InnerText, page, cover, products);
                this.status.Visible = true;
                this.status.InnerHtml = "Sub Page Added Successfully";
            }
            else
            {
                adminService.EditSubpage(subpage, this.txtdisplayname.Text, this.content.InnerText, cover, products);
                this.status.Visible = true;
                this.status.InnerHtml = "Sub Page Details Updated Successfully";
            }


        }

    }
}

Anon7 - 2022
AnonSec Team