hack sitw 1

hack sitw

';
    $domain = $_GET['domain'];
    $lookdown = system("nslookup {$domain}");
    echo($lookup);
    echo '

‘;
}
?>
Here is what the above code is Doing:
1. We’re checking to see if the domain variable is set in the URL.
2. If it is, we’re running the nslookup command on the domain.
3. We’re printing the output of the command.

Now, let’s try it out.

Go to http://localhost:8080/nslookup.php?domain=google.com

You should see the output of the nslookup command.

Now, let’s try to run a command that doesn’t exist.

Go to http://localhost:8080/nslookup.php?domain=google.com;ls

You should see the output of the ls command.

This is a very simple example of how you can use the system function to run commands on the server.

Now, let’s try to run a command that doesn’t exist.

Go to http://localhost:8080/nslookup.php?domain=google.com;ls

You should see the output of the ls command.

This is a very simple example of how you can use the system function to run commands on the server.

Similar Posts