CSI5208 Ethical Hacking Paper Editing Services

CSI5208 Ethical Hacking Oz Assignments

CSI5208 Ethical Hacking Paper Editing Services


This report projects on ethical hacking. To conduct this study, a case study is provided. To carry out the study, it is necessary that the user gain access to the system that is provided and root level privileges must be attained. The observation of the study represents that there are five flags for this project. These flags are performed with the use of the virtual machine’s case study. All the flags and their research comply regulatory requirements will be found in this report. Each flag contains unique characteristics which will be determined in this project report.

Methodology and Testing Log

Initially, the Virtual machine must be installed, as illustrated in the above figure.

Identification of IP Address

1st Flag: Web Server

Firstly, the web server needs records of the website to store all the HTML reports along with appropriate resources, this could also include the following:

1. CSS templates
2. Textual Styles
3. Documents Of JavaScript
4. Recordings
5. Images or pictures and so on.

It is also possible that all the above mentioned records could be stored in a PC. It is also a good practice to store the records on a committed web server. Because, it benefits with the following benefits (Cope, 2017):

1. It is actively running.
2. It is dependable.
3. It is continuously linked to Internet.
4. It can be safeguarded from the external suppliers.
5. It constantly contains same IP address (not all ISPs provide the settled IP deliver to the home lines)

2ndFlag: Web shells

The web-shell could be referred as a harmful substance that is utilized by the attackers with a reason to improve and save the steady access on a starting negotiated web application(Prodromou, 2016). Web-shells can't strike or experience remote incapability, so it is constantly the second step of a trap.The general vulnerabilities could be misused by the attacker. An example could be represented as follows, The SQL implantation, RFI, FTP, or even use XSS as a part of a social planning strike with a particular true objective for exchanging the substance that is malicious. The fundamental usefulness rages it, but however it isnot just limited to the execution of the web shell, record organization,database tally and code execution ("Everything You Need To Know About Web Shells", 2017).


The Web-shells another usage includes makingthe servers part of the botnet. The botnet is defined as an arrangement of exchanged off systems which the attacker might try to control, it can be either for using it for themselves, or to help the other bad parties("What is a Web shell?", 2017).

Propelling and Pivoting Attacks

The web-shell could be utilized to revolve internally or externally area of the framework. The attacker has to screen the framework, for development of the structure, then test the internal framework foridentifying any unauthorized access, and provide firewall as well as switches in the framework. This will allow to secure the framework from the hackers (Glia, 2016).

Consistent Remote Access

The web-shell generally comprises an access which is probably indirect and it gives the power for the attacker for remotely accessing and controlling the server. The access can be allowed as and when needed by the hacker. This would save the attacker from any kind of complex misusing a weakness each time access to the exchanged off server is required

3rdFlag: Password cracker

If the hacker hacks the webpage, the attacker daily leaves web shell or an auxiliary section for achieving accomplishment to reach the website in future. This leaves the user confused and avoids any kind of proofs which could be recognized, and the attackers require confirmation so that the attackers can get into the site. This post represents a business process to simplify the web shell and shows how the affirmation could be evaded, when there is the availability of source code and when the password is missing (Engebretson, 2013).

Deobfuscating the web shell

The preg_replace consists of 3 disputes namely,




As the regex contains an e modifier, it could easily evaluate anything in the substitution as a PHP code. This states that the following code can be utilized("What is a Web shell?", 2017):

PHP is used, as physically changing this string might be hard:

Bypassing check

The suggested main code is, $auth_pass, this might need approval for the web shell. The course of action of $auth_pass, 32 hexadecimal characters suggest that it is MD5 of the plaintext mystery word. As the wellspring of the web shell is present, the following can be undertaken(Ethical hacking and countermeasures, 2017):


Split a few passwords,

Hash Password

64a113a4ccc22cffb9d2f75b8c19e333 cmonqwe123#@!

9e4bf26d87b7e8b6b66b0a2305f67184 lex1312

4thFlag: TCP port scanner – NMAP

The technique known as Port checking is utilized for perceiving whether the targeted port is open or close. In case the organization which uses a specific port to contact with different systems, the port could be open. It is the inspiration which drives when the port is open, then it is possible to provide service for a long period based on the type of organization it uses, by sending targets with a phenomenally made packages. In case the target IP address is known, then it is possible to dispatch the port checking for the trap. It will be obviously if no decision is selected, then the Nmap runs the TCP SYN Scan which is referred as, Stealth Scan ("Port Scanning Techniques", 2018).For measuring such a scope it contains the tendency to be beneficial for restoring the TCP 3-way handshake speculation. It is that part which addresses the method the TCP affiliation could start. Irrespective of whether such an outcome is default, "- sS" parameter could be utilized. As, it will help to set up the pursued with the objective’s IP address ("TCP Port Scan with Nmap | Pentest-Tools.com", 2018):

Due to each reason, the users contains least need for running map from the limited shared shell accounts and it is fortunate enough because the privileged options lets Nmapto becomes highly flexible and powerful. As Nmaptries to generate accurate results, it must be remembered that each ofits insights depend on the returned packets which the target machines send (due to firewalls). Similar hosts cannot be trusted and it transfers the responses that can confuse the Nmap. non-RFC-compliant hosts are the most common ones which probesNmap. The following scans can be susceptible are FIN, NULL, and Xmas scans.Similar problems are particular for certain type of scans.

The most famous and default option for scan includes, SYN scan, which could be conducted instantly, to scan ports which are thousands in number per second on a fast network not hampered by the firewalls which are restrictive. It is linked with unobtrusive and stealthy, because it never finishes the TCP connections. Against any kind of compliant, SYN scan works. It even lets the reliable and clear differentiation among the open, closed, and filtered states.

Such a technique could be referred as the half-open scanning, as the complete TCP connection is not opened. It is possible to send the SYN packet, due to opening the real connection and next it waits for the response. The SYN/ACK denotes the listening of the port (open), when RST (reset) is indicative of non-listener. When no response arrives once various retransmissions, the port will be marked as filtered. The port is also marked filtered if an ICMP unreachable error (type 3, code 0, 1, 2, 3, 9, 10, or 13) is received. When the SYN packet (without the ACK flag) receives the response it is considered that the port is opened. This is because of the feature of TCP which is rare and is called to be simultaneous open /split handshake connection

-sT (TCP connect scan).

The TCP connect scan refers to the default the TCP scan type, in case where the SYN scan isn’t the option. This is the case when a user does not have raw packet privileges. Rather thannwriting the raw packets like how various types of scan perform, the Nmap asks for underlying operating system, for establishing the connection with the target machine and port by issuing the connect system call. TheNmap utilizes API for obtaining the information status on every single try of the connection.

5thFlag: Privilege

The things learnt related tofundamentalsof the Linux privilege escalation are listed below (Feroze, 2018):

1. Applications and Services
2. Operating System
3. Confidential Information
4. Preparation
5. Finding Exploit Code
6. File Systems
7. Networking communication

Result and Conclusion

The topic ethical hacking is covered effectively, with the help of a provided case study. It is noted that the study can be carried out,when the user gainssystem access along with root level privileges. The cases study’s observation displays five flags for this project. These flags were worked with the use of virtual machine.The First flag is utilized for checking the content of the web server,where the admin’s username and password is identified. The second flag is utilized for learning web shells, then the third flag is utilized for cracking the password and the fourth flag is utilized for finding the user entering the incorrect password intothe system. This process is supported by a tool named, TCP port scanner. At last, the final flag is utilized to gain knowledge of the general Linux privilege escalations.

Therefore, all the flags and their requirements are identified, where each flag represents different characteristics.


1. Cope, S. (2017). Introduction to HTTP : Understanding HTTP Basics. Retrieved from http://www.steves-internet-guide.com/http-basics/
2. Everything You Need To Know About Web Shells. (2017). Retrieved from https://www.darknet.org.uk/2016/07/everything-need-know-web-shells/
3. Feroze, R. (2018). A guide to Linux Privilege Escalation. Retrieved from https://payatu.com/guide-linux-privilege-escalation/
4. Glia. (2016). Web Shells and Backdoors. Retrieved from https://no-sec.net/web-shells-and-backdoors/
5. Port ScanningEncryption Techniques. (2018). Retrieved from https://nmap.org/book/man-port-scanning-techniques.html
6. Prodromou, A. (2016). Detection and Prevention - An Introduction to Web-Shells - Final Part. Retrieved from https://www.acunetix.com/blog/articles/detection-prevention-introduction-web-shells-part-5/

7. What is a Web shell?. (2017). Retrieved from https://malware.expert/general/what-is-a-web-shell