Advertisement
Peaser

sdfghjhgfdsdf

Jun 1st, 2014
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.51 KB | None | 0 0
  1. import os,sys,socket,getpass,platform,time,random
  2. from datetime import datetime
  3. from PyQt4 import QtGui, QtCore
  4. from win32api import GetSystemMetrics
  5.  
  6. #ip = [i[4][0] for i in socket.getaddrinfo(socket.gethostname(), None)]
  7.  
  8. messages = [
  9. "In the last six months, 14 people from your town have been reported missing.",
  10. "You haven't checked your Recycle Bin in a long time.",
  11. "A small needle at the base of your mouse has been gradually collecting your blood.",
  12. "There is no one left.",
  13. "Touch your monitor.\n\nIt is warm.\n\nWarm like flesh.\n\nHowever, it is not flesh.\n\nNot yet.",
  14. "Are you feeling OK?",
  15. "What's wrong?",
  16. "What are you hiding?",
  17. "Who did you tell?",
  18. "You told someone, didn't you?",
  19. "I have to clean up the mess you've made.",
  20. "A directory has been created.\n\n"+os.path.expanduser('~')+"\The_Observer"
  21. ]
  22.  
  23. def payload():
  24.     imgwidth = 256
  25.     imgheight = 128
  26.     x2 = GetSystemMetrics (0) / 2 - (imgwidth / 2)
  27.     y2 = GetSystemMetrics (1) / 2 - (imgheight / 2)
  28.     class Faggot(QtGui.QWidget):
  29.         def __init__(self):
  30.             super(Faggot, self).__init__()
  31.             self.initUI()
  32.         def initUI(self):
  33.             pic = QtGui.QLabel(self)
  34.             pic.setGeometry(0, 0, imgwidth, imgheight)
  35.             pic.setText(random.choice(messages))
  36.             pic.setWordWrap(True)
  37.             pic.setAlignment(QtCore.Qt.AlignCenter)
  38.             self.setGeometry(x2, y2, imgwidth, imgheight)
  39.             self.setFixedSize(imgwidth, imgheight)
  40.             self.setWindowTitle("The Observer")
  41.             self.show()
  42.     def main():
  43.         app = QtGui.QApplication(sys.argv)
  44.         ex = Faggot()
  45.         sys.exit(app.exec_())
  46.     if __name__ == '__main__':
  47.         main()
  48.  
  49. newpath = os.path.expanduser('~')+"\AppData\Roaming\Observer"
  50.  
  51. creep = os.path.expanduser('~')+"\The_Observer"
  52.  
  53. test2 = os.path.exists(newpath)
  54. creep2 = os.path.exists(creep)
  55.  
  56. if test2 == False:
  57.     os.makedirs(newpath)
  58. if test2 == True:
  59.     pass
  60.  
  61. if creep2 == False:
  62.     os.makedirs(creep)
  63. if creep2 == True:
  64.     pass
  65.  
  66. #time.sleep(1)
  67. confi = newpath+"\conf.ini"
  68. test = os.path.exists(confi)
  69. if test == False:
  70.     with open(confi, "w") as Inc:
  71.         Inc.write("30")
  72.         Inc.close()
  73.         quit()
  74. if test == True:
  75.     f = open(confi, 'r')
  76.     b = int(f.readline())
  77.     b -=1
  78.     with open(confi, 'w') as writeinc:
  79.         writeinc.write(str(b))
  80.         writeinc.close()
  81.     bcheck = b
  82.     print bcheck
  83.     if bcheck <= 0:
  84.         payload()
  85.     if bcheck > 0:
  86.         quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement