Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_NONE);
- ini_set('display_errors', 0);
- $key = $_GET[key];
- $username = $_GET[username];
- $password = $_GET[password];
- if($key =="Military123") {
- //echo `sudo whoami`;
- //echo exec('whoami');
- echo shell_exec("sed '/$username/d' chap-secret > chap-secret.tmp 2>&1");
- echo exec("mv chap-secret.tmp chap-secret");
- echo "sucess";
- }
- else {
- die("API Key Failure incorrect/blank.");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement