metasploit remove host from database code example
Example 1: how to connect to a database in php
<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
Example 2: remove a file from your local host
# To delete a file type
sudo rm "filename"