Advertisement
FlyFar

gui/Gui.py

Aug 10th, 2023
846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 12.02 KB | Cybersecurity | 0 0
  1. from PyQt5 import QtCore, QtGui, QtWidgets
  2.  
  3.  
  4. class Gui(object):
  5.  
  6.     def __init__(self, Dialog):
  7.         Dialog.setObjectName("Dialog")
  8.         Dialog.resize(819, 668)
  9.         self.label = QtWidgets.QLabel(Dialog)
  10.         self.label.setGeometry(QtCore.QRect(180, 20, 481, 61))
  11.         font = QtGui.QFont()
  12.         font.setFamily("Ubuntu Condensed")
  13.         font.setPointSize(43)
  14.         font.setBold(True)
  15.         font.setItalic(False)
  16.         font.setWeight(75)
  17.         self.label.setFont(font)
  18.         self.label.setObjectName("label")
  19.         self.tabWidget = QtWidgets.QTabWidget(Dialog)
  20.         self.tabWidget.setGeometry(QtCore.QRect(120, 120, 581, 491))
  21.         self.tabWidget.setObjectName("tabWidget")
  22.         self.tab = QtWidgets.QWidget()
  23.         self.tab.setObjectName("tab")
  24.         self.wakeup = QtWidgets.QPushButton(self.tab)
  25.         self.wakeup.setGeometry(QtCore.QRect(170, 100, 231, 41))
  26.         font = QtGui.QFont()
  27.         font.setPointSize(17)
  28.         self.wakeup.setFont(font)
  29.         self.wakeup.setObjectName("wakeup")
  30.         self.sendconfig = QtWidgets.QPushButton(self.tab)
  31.         self.sendconfig.setGeometry(QtCore.QRect(170, 190, 231, 41))
  32.         font = QtGui.QFont()
  33.         font.setPointSize(16)
  34.         self.sendconfig.setFont(font)
  35.         self.sendconfig.setObjectName("sendconfig")
  36.         self.getftp = QtWidgets.QPushButton(self.tab)
  37.         self.getftp.setGeometry(QtCore.QRect(170, 280, 231, 41))
  38.         font = QtGui.QFont()
  39.         font.setPointSize(16)
  40.         self.getftp.setFont(font)
  41.         self.getftp.setObjectName("getftp")
  42.         self.tabWidget.addTab(self.tab, "")
  43.         self.tab_2 = QtWidgets.QWidget()
  44.         self.tab_2.setObjectName("tab_2")
  45.         self.formLayoutWidget = QtWidgets.QWidget(self.tab_2)
  46.         self.formLayoutWidget.setGeometry(QtCore.QRect(120, 130, 311, 231))
  47.         self.formLayoutWidget.setObjectName("formLayoutWidget")
  48.         self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
  49.         self.formLayout.setContentsMargins(0, 0, 0, 0)
  50.         self.formLayout.setObjectName("formLayout")
  51.         self.keylogger = QtWidgets.QCheckBox(self.formLayoutWidget)
  52.         self.keylogger.setChecked(True)
  53.         self.keylogger.setObjectName("keylogger")
  54.         self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.keylogger)
  55.         self.tracker = QtWidgets.QCheckBox(self.formLayoutWidget)
  56.         self.tracker.setChecked(True)
  57.         self.tracker.setObjectName("tracker")
  58.         self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.tracker)
  59.         self.samplingFrequencyLabel = QtWidgets.QLabel(self.formLayoutWidget)
  60.         self.samplingFrequencyLabel.setObjectName("samplingFrequencyLabel")
  61.         self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.samplingFrequencyLabel)
  62.         self.trackfreq = QtWidgets.QLineEdit(self.formLayoutWidget)
  63.         self.trackfreq.setObjectName("trackfreq")
  64.         self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.trackfreq)
  65.         self.screenshotFrequencyLabel = QtWidgets.QLabel(self.formLayoutWidget)
  66.         self.screenshotFrequencyLabel.setObjectName("screenshotFrequencyLabel")
  67.         self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.screenshotFrequencyLabel)
  68.         self.screenshotfreq = QtWidgets.QLineEdit(self.formLayoutWidget)
  69.         self.screenshotfreq.setObjectName("screenshotfreq")
  70.         self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.screenshotfreq)
  71.         self.screenshotTriggerLabel = QtWidgets.QLabel(self.formLayoutWidget)
  72.         self.screenshotTriggerLabel.setObjectName("screenshotTriggerLabel")
  73.         self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.screenshotTriggerLabel)
  74.         self.triggers = QtWidgets.QLineEdit(self.formLayoutWidget)
  75.         self.triggers.setObjectName("triggers")
  76.         self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.triggers)
  77.         self.debugmode = QtWidgets.QCheckBox(self.formLayoutWidget)
  78.         self.debugmode.setChecked(True)
  79.         self.debugmode.setObjectName("debugmode")
  80.         self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.debugmode)
  81.         self.label_2 = QtWidgets.QLabel(self.tab_2)
  82.         self.label_2.setGeometry(QtCore.QRect(120, 60, 321, 31))
  83.         font = QtGui.QFont()
  84.         font.setPointSize(17)
  85.         self.label_2.setFont(font)
  86.         self.label_2.setObjectName("label_2")
  87.         self.tabWidget.addTab(self.tab_2, "")
  88.         self.tab_3 = QtWidgets.QWidget()
  89.         self.tab_3.setObjectName("tab_3")
  90.         self.formLayoutWidget_2 = QtWidgets.QWidget(self.tab_3)
  91.         self.formLayoutWidget_2.setGeometry(QtCore.QRect(20, 120, 541, 201))
  92.         self.formLayoutWidget_2.setObjectName("formLayoutWidget_2")
  93.         self.formLayout_2 = QtWidgets.QFormLayout(self.formLayoutWidget_2)
  94.         self.formLayout_2.setContentsMargins(0, 0, 0, 0)
  95.         self.formLayout_2.setObjectName("formLayout_2")
  96.         self.samplingFrequencyLabel_2 = QtWidgets.QLabel(self.formLayoutWidget_2)
  97.         self.samplingFrequencyLabel_2.setObjectName("samplingFrequencyLabel_2")
  98.         self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.samplingFrequencyLabel_2)
  99.         self.baseurl = QtWidgets.QLineEdit(self.formLayoutWidget_2)
  100.         self.baseurl.setObjectName("baseurl")
  101.         self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.baseurl)
  102.         self.screenshotFrequencyLabel_2 = QtWidgets.QLabel(self.formLayoutWidget_2)
  103.         self.screenshotFrequencyLabel_2.setObjectName("screenshotFrequencyLabel_2")
  104.         self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.screenshotFrequencyLabel_2)
  105.         self.ftpurl = QtWidgets.QLineEdit(self.formLayoutWidget_2)
  106.         self.ftpurl.setObjectName("ftpurl")
  107.         self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.ftpurl)
  108.         self.screenshotTriggerLabel_2 = QtWidgets.QLabel(self.formLayoutWidget_2)
  109.         self.screenshotTriggerLabel_2.setObjectName("screenshotTriggerLabel_2")
  110.         self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.screenshotTriggerLabel_2)
  111.         self.ftpuser = QtWidgets.QLineEdit(self.formLayoutWidget_2)
  112.         self.ftpuser.setObjectName("ftpuser")
  113.         self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.ftpuser)
  114.         self.fTPPassLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
  115.         self.fTPPassLabel.setObjectName("fTPPassLabel")
  116.         self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.fTPPassLabel)
  117.         self.ftppass = QtWidgets.QLineEdit(self.formLayoutWidget_2)
  118.         self.ftppass.setObjectName("ftppass")
  119.         self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.ftppass)
  120.         self.fCommLabel = QtWidgets.QLabel(self.formLayoutWidget_2)
  121.         self.fCommLabel.setObjectName("fCommLabel")
  122.         self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.fCommLabel)
  123.         self.commfreq = QtWidgets.QLineEdit(self.formLayoutWidget_2)
  124.         self.commfreq.setObjectName("commfreq")
  125.         self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.commfreq)
  126.         self.label_3 = QtWidgets.QLabel(self.tab_3)
  127.         self.label_3.setGeometry(QtCore.QRect(170, 60, 251, 17))
  128.         font = QtGui.QFont()
  129.         font.setPointSize(17)
  130.         self.label_3.setFont(font)
  131.         self.label_3.setObjectName("label_3")
  132.         self.tabWidget.addTab(self.tab_3, "")
  133.         self.tab_4 = QtWidgets.QWidget()
  134.         self.tab_4.setObjectName("tab_4")
  135.         self.label_4 = QtWidgets.QLabel(self.tab_4)
  136.         self.label_4.setGeometry(QtCore.QRect(230, 60, 101, 31))
  137.         font = QtGui.QFont()
  138.         font.setPointSize(17)
  139.         self.label_4.setFont(font)
  140.         self.label_4.setObjectName("label_4")
  141.         self.formLayoutWidget_3 = QtWidgets.QWidget(self.tab_4)
  142.         self.formLayoutWidget_3.setGeometry(QtCore.QRect(20, 140, 541, 81))
  143.         self.formLayoutWidget_3.setObjectName("formLayoutWidget_3")
  144.         self.formLayout_3 = QtWidgets.QFormLayout(self.formLayoutWidget_3)
  145.         self.formLayout_3.setContentsMargins(0, 0, 0, 0)
  146.         self.formLayout_3.setObjectName("formLayout_3")
  147.         self.samplingFrequencyLabel_3 = QtWidgets.QLabel(self.formLayoutWidget_3)
  148.         self.samplingFrequencyLabel_3.setObjectName("samplingFrequencyLabel_3")
  149.         self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.samplingFrequencyLabel_3)
  150.         self.shellcommand = QtWidgets.QLineEdit(self.formLayoutWidget_3)
  151.         self.shellcommand.setText("")
  152.         self.shellcommand.setObjectName("shellcommand")
  153.         self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.shellcommand)
  154.         self.screenshotFrequencyLabel_3 = QtWidgets.QLabel(self.formLayoutWidget_3)
  155.         self.screenshotFrequencyLabel_3.setObjectName("screenshotFrequencyLabel_3")
  156.         self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.screenshotFrequencyLabel_3)
  157.         self.filepath = QtWidgets.QLineEdit(self.formLayoutWidget_3)
  158.         self.filepath.setText("")
  159.         self.filepath.setObjectName("filepath")
  160.         self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.filepath)
  161.         self.tabWidget.addTab(self.tab_4, "")
  162.  
  163.         self.retranslateUi(Dialog)
  164.         self.tabWidget.setCurrentIndex(0)
  165.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  166.  
  167.     def retranslateUi(self, Dialog):
  168.         _translate = QtCore.QCoreApplication.translate
  169.         Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
  170.         self.label.setText(_translate("Dialog", "Malware Control Panel"))
  171.         self.wakeup.setText(_translate("Dialog", "Ellácska, wake up!!!"))
  172.         self.sendconfig.setText(_translate("Dialog", "Send config data!!!"))
  173.         self.getftp.setText(_translate("Dialog", "Get stolen data!!!"))
  174.         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Dialog", "Attack"))
  175.         self.keylogger.setText(_translate("Dialog", "Keylogging"))
  176.         self.tracker.setText(_translate("Dialog", "Window Tracking"))
  177.         self.samplingFrequencyLabel.setText(_translate("Dialog", "Sampling Frequency"))
  178.         self.trackfreq.setText(_translate("Dialog", "0.1"))
  179.         self.screenshotFrequencyLabel.setText(_translate("Dialog", "Screenshot Frequency"))
  180.         self.screenshotfreq.setText(_translate("Dialog", "50"))
  181.         self.screenshotTriggerLabel.setText(_translate("Dialog", "Screenshot Triggers"))
  182.         self.triggers.setText(_translate("Dialog", "facebook"))
  183.         self.debugmode.setText(_translate("Dialog", "Debug"))
  184.         self.label_2.setText(_translate("Dialog", "Window tracking & Keylogging"))
  185.         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Dialog", "Logging"))
  186.         self.samplingFrequencyLabel_2.setText(_translate("Dialog", "Base URL"))
  187.         self.baseurl.setText(_translate("Dialog", "http://facebook-user-profile.herokuapp.com/malware"))
  188.         self.screenshotFrequencyLabel_2.setText(_translate("Dialog", "FTP:"))
  189.         self.ftpurl.setText(_translate("Dialog", "ftp.atw.hu"))
  190.         self.screenshotTriggerLabel_2.setText(_translate("Dialog", "FTP user"))
  191.         self.ftpuser.setText(_translate("Dialog", "kiserletimuto"))
  192.         self.fTPPassLabel.setText(_translate("Dialog", "FTP pass"))
  193.         self.ftppass.setText(_translate("Dialog", "patti"))
  194.         self.fCommLabel.setText(_translate("Dialog", "Comm freq"))
  195.         self.commfreq.setText(_translate("Dialog", "900"))
  196.         self.label_3.setText(_translate("Dialog", "Server Communication"))
  197.         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Dialog", "Communication"))
  198.         self.label_4.setText(_translate("Dialog", "Backdoor "))
  199.         self.samplingFrequencyLabel_3.setText(_translate("Dialog", "Shell command"))
  200.         self.screenshotFrequencyLabel_3.setText(_translate("Dialog", "File Path"))
  201.         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("Dialog", "Backdoor"))
  202.  
  203.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement