ASP.NET - NESTING MASTER PAGES

Example:
You have only content with such ID. Put another placeholder inside of content with ID="Content2" and then connect with the page content.
Master Page
 ID="bodyContent" runat="server">
Nested Master Page
 ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">
     ID="nestedContent" runat="server">
    
 
Nested Master's Content Page
 runat="server" ID="myContent" ContentPlaceHolderID="nestedContent">
 

Ethical hacking

Ethical hacking is the practice of testing a computer system, network, or application to find vulnerabilities that could be exploited by malicious actors. Ethical hackers, also known as white hat hackers, use their knowledge and skills to help organizations improve their security posture and protect their data.

Ethical hacking can be done in a variety of ways, including:

  • Penetration testing: This is a simulated attack on a system or network to identify vulnerabilities.
  • Vulnerability scanning: This is the automated identification of vulnerabilities in a system or network.
  • Social engineering testing: This is the testing of people's susceptibility to social engineering attacks, such as phishing emails.
  • Red teaming: This is a more advanced form of penetration testing that involves simulating a real-world attack.

Ethical hacking is a valuable tool for organizations of all sizes. By identifying and addressing vulnerabilities, organizations can improve their security posture and protect their data from malicious actors.

Here are some of the benefits of ethical hacking:

  • Improved security posture: Ethical hacking can help organizations identify and address vulnerabilities in their systems and networks. This can help to protect them from malicious attacks.
  • Reduced risk of data breaches: Ethical hacking can help to reduce the risk of data breaches by identifying and addressing vulnerabilities that could be exploited by attackers.
  • Compliance with regulations:** Many regulations, such as the General Data Protection Regulation (GDPR), require organizations to have a security program that includes ethical hacking.
  • Increased awareness of security risks:** Ethical hacking can help to raise awareness of security risks among employees and other stakeholders. This can help to prevent attacks by making people more aware of the threats.

If you are interested in a career in ethical hacking, there are a number of things you can do to get started:

  • Learn about ethical hacking: There are a number of resources available to learn about ethical hacking, including books, courses, and online tutorials.
  • Get certified: There are a number of certifications available for ethical hackers, such as the Certified Ethical Hacker (CEH) certification.
  • Gain experience: The best way to learn ethical hacking is by getting hands-on experience. You can do this by volunteering to hack for organizations or by working as an ethical hacker for a security company.

Ethical hacking is a challenging and rewarding field. If you are interested in a career in information security, I encourage you to consider ethical hacking.



https://wpscan.org/
http://www.hackingtutorials.org/web-application-hacking/hack-a-wordpress-website-with-wpscan/

Organizations

BC
http://www.scholantis.com/home/team

Setting up SFTP on UBUNTU

How to setup FTP server on ubuntu 14.04 ( VSFTPD )

FTP is used to transfer files from one host to another over TCP network. This article explains how to setup FTP server on ubuntu 14.04 .
There are 3 popular FTP server packages available PureFTPD, VsFTPD and ProFTPD. Here i’ve used VsFTPD which is lightweight and less Vulnerability.

Setup FTP server on Ubuntu 14.04

Step 1 » Update repositories .
krizna@leela:~$ sudo apt-get update
Step 2 » Install VsFTPD package using the below command.
krizna@leela:~$ sudo apt-get install vsftpd
Step 3 » After installation open /etc/vsftpd.conf file and make changes as follows.
Uncomment the below lines (line no:29 and 33).
write_enable=YES
local_umask=022
» Uncomment the below line (line no: 120 ) to prevent access to the other folders outside the Home directory.
chroot_local_user=YES and add the following line at the end.
allow_writeable_chroot=YES» Add the following lines to enable passive mode.
pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100

Step 4 » Restart vsftpd service using the below command.
krizna@leela:~$ sudo service vsftpd restart
Step 5 » Now ftp server will listen on port 21. Create user with the below command.Use /usr/sbin/nologin shell to prevent access to the bash shell for the ftp users .
krizna@leela:~$ sudo useradd -m john -s /usr/sbin/nologin
krizna@leela:~$ sudo passwd john

Step 6 » Allow login access for nologin shell . Open /etc/shells and add the following line at the end.
/usr/sbin/nologin
Now try to connect this ftp server with the username on port 21 using winscp or filezilla client and make sure that user cannot access the other folders outside the home directory.
setup FTP server ubuntu 14.04
Please note using ftp on port 21 is a big security risk . it’s highly recommended to use SFTP. Please continue for SFTP configuration

Secure FTP ( SFTP )

SFTP is called as “Secure FTP” which generally use SSH File Transfer Protocol . so we need openssh-server package installed , Issue the below command if it’s not already installed.
krizna@leela:~$ sudo apt-get install openssh-server
Step 7 » Create a new group ftpaccess for FTP users.
krizna@leela:~$ sudo groupadd ftpaccess
Step 8 » Now make changes in this /etc/ssh/sshd_config file.
» Find and comment the below line
Subsystem sftp /usr/lib/openssh/sftp-server and Add these lines at the end of the file.
Subsystem sftp internal-sftp
Match group ftpaccess
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

Step 9 » Restart sshd service.
krizna@leela:~$ sudo service ssh restart
Step 10 » The below steps must be followed while creating Users for sftp access.
Create user john with ftpaccess group and /usr/bin/nologin shell.
krizna@leela:~$ sudo useradd -m john -g ftpaccess -s /usr/sbin/nologin
krizna@leela:~$ sudo passwd john
Change ownership for the home directory.
krizna@leela:~$ sudo chown root /home/johnCreate a folder inside home directory for writing and change ownership of that folder.
krizna@leela:~$ sudo mkdir /home/john/www
krizna@leela:~$ sudo chown john:ftpaccess /home/john/www

Now try to connect server using SFTP ( port : 22 ) and makesure Users can upload files to www directory and cannot access other folders outside home directory.setup FTP server ubuntu 14.04
If you want use both FTP and SFTP together, please perform above steps ( Step 10 ) while creating users . For existing users, move them to ftpaccess group and create folder structure and ownership changes as below.
krizna@leela:~$ sudo usermod john -g ftpaccess -s /usr/sbin/nologin
krizna@leela:~$ sudo chown root /home/john
krizna@leela:~$ sudo mkdir /home/john/www
krizna@leela:~$ sudo chown john:ftpaccess /home/john/www

Now john can able to upload files to www folder using FTP as well as SFTP.
Also see :
» Setup FTP server on ubuntu 16.04
» Setup FTP server on centos 7
» Configure ftp server on centos 6