Maintain access to Servers with Web Backdoors

Όταν ένας web server και οι υπηρεσίες έχουν παραβιαστεί, είναι σημαντικό να διασφαλιστεί η ασφαλής πρόσβαση του hacker. Αυτό επιτυγχάνεται συνήθως με τη βοήθεια ενός web shell, δηλαδή ενός μικρού προγράμματος που μας παρέχει πρόσβαση και μας επιτρέπει να τρέχουμε in our remote location.

Kali distribution comes with many pre-installed web shells. In this guide we will use a popular PHP web shell called Weevely.

Weevely simulates a Telnet session and allows the hacker to exploit more than 30 modules after the for:

  • Browse the breached system
  • Transfer files to and from the compromised system
  • Create reverse TCP shells
  • Execute commands on remote compromised systems, even if restrictions have been applied in PHP

Finally, Weevely tries to hide communications within an HTTP cookie to avoid being detected.

To create a php backdoor in Weevely, type the following command in your terminal:

Mandate:

This command will create a file weevely.php on the desktop. Below we will see an example of backdoor php with executing commands on remote systems that have been compromised, even if security rules have been applied to them:

So after you create your own backdoor.php, upload it to the compromised website where you found a security vulnerability.

To communicate with the web shell, simply enter the following command in your terminal, ensuring that the IP address variables of the directory and password of the compromised machine change with those of the compromised system:

Mandate: weevely http: // /

In the example shown in the screenshot above, we have verified that we are connected to the web shell, using the command uname -a and the pwd command.

The order cat / etc / password used to view passwords.

Finally the web shell can also be used to create a reverse shell  ς, χρησιμοποιώντας είτε το Netcat είτε το Metasploit as a local listener.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.082 registrants.

Written by Anastasis Vasileiadis

Translations are like women. When they are beautiful they are not faithful and when they are faithful they are not beautiful.

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).