Example #1
0
    def OnGUI(self):
        GUI.BeginGUI(self)
        GUI.BeginGroup("Server Information")
        GUI.BeginHorizontalLayout()
        GUI.Label("服务器IP地址")
        GUI.IPAddress("edit_serverIP")
        GUI.Spacer(50)
        GUI.Label("服务器端口号")
        GUI.LineEdit("edit_port")
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginGroup("Propery Setting")
        GUI.BeginHorizontalLayout()
        GUI.Label("JitterBug阈值w:")
        GUI.LineEdit("edit_w")
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginGroup("Display")
        GUI.BeginHorizontalLayout()
        GUI.Label("发送进度")
        GUI.ProgressBar("progressBar_send")
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginHorizontalLayout()
        GUI.Spacer(400)
        GUI.Button("button_Connect", "连接服务器")
        GUI.Button("button_Send", "开始发送")
        GUI.EndLayout()

        GUI.EndGroup()

        GUI.EndGUI()
Example #2
0
    def OnGUI(self):
        GUI.BeginGUI(self)

        GUI.BeginTab('Tab_Main', True)
        GUI.BeginSubTab('Tab_Display', '展示')
        GUI.BeginGroup("字体")
        GUI.BeginVerticalLayout()
        GUI.BeginHorizontalLayout()
        GUI.Label('label_fontInfo1', '当前字体信息')
        GUI.Label('label_fontInfo2', '')
        GUI.Button('button_fontSetting', '字体设置')
        GUI.EndLayout()
        GUI.EndLayout()
        GUI.EndGroup()
        GUI.EndSubTab()

        GUI.BeginSubTab('', 'Tab2')

        GUI.BeginVerticalLayout()
        GUI.Label('label5', 'line 24')
        GUI.Label('label6', 'line 25')
        GUI.EndLayout()

        GUI.EndSubTab()

        GUI.EndTab()

        GUI.EndGUI()
Example #3
0
    def OnGUI(self):
        GUI.BeginGUI(self)
        GUI.BeginGroup("Server Infomation")
        GUI.BeginHorizontalLayout()
        GUI.Label("服务器IP地址")
        GUI.IPAddress("edit_serverIP")
        GUI.Label("服务器端口号")
        GUI.LineEdit("edit_port")
        GUI.Button("button_StartServer", "开启服务器")
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginGroup("Client Information")
        GUI.BeginHorizontalLayout()
        GUI.Table("table_client",
                  ["IP地址", "端口号", "消息总数", "连接时间", "连接状态", "最后消息"])
        GUI.BeginVerticalLayout()
        GUI.Button("button_export", "导出数据")
        GUI.Button("button_deleteClient", "删除Client")
        GUI.Button("button_closeServer", "关闭服务器")
        GUI.EndLayout()
        GUI.EndLayout()
        GUI.EndGroup()
        GUI.EndGUI()
Example #4
0
	def OnGUI(self):
		GUI.BeginGUI(self)

		GUI.BeginGroup("Detection Setting")
		GUI.BeginHorizontalLayout()
		GUI.Label("IPDs文件")
		GUI.LineEdit("edit_ipds_file")
		GUI.Button("button_openipds","打开文件")
		GUI.EndLayout()
		GUI.EndGroup()

		GUI.BeginHorizontalLayout()
		GUI.Spacer(400)
		GUI.Button("button_drawIPDs","绘制IPDs图像")
		GUI.EndLayout()

		GUI.EndGUI()
Example #5
0
    def OnGUI(self):
        GUI.BeginGUI(self)
        GUI.BeginGroup("Server Information")
        GUI.BeginHorizontalLayout()
        GUI.Label("服务器IP地址")
        GUI.IPAddress("edit_serverIP")
        GUI.Spacer(50)
        GUI.Label("服务器端口号")
        GUI.LineEdit("edit_port")
        GUI.Label("发包数量")
        GUI.LineEdit("edit_count")
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginGroup("Propery Setting")
        GUI.BeginHorizontalLayout()
        GUI.Label("间隔时间")
        GUI.LineEdit("edit_interval")
        GUI.Spacer(50)
        GUI.Label("轮换模式")
        GUI.CheckBox("check_turn", "")
        GUI.Label("轮换周期")
        GUI.LineEdit("edit_period")
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginGroup("Display")
        GUI.BeginHorizontalLayout()
        GUI.Label("发送进度")
        GUI.ProgressBar("progressBar_send")
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginHorizontalLayout()
        GUI.Spacer(400)
        GUI.Button("button_Connect", "连接服务器")
        GUI.Button("button_Send", "开始发送")
        GUI.Button("button_Test", "测试")
        GUI.EndLayout()

        GUI.EndGroup()

        GUI.EndGUI()
Example #6
0
    def OnGUI(self):
        GUI.BeginGUI(self)

        GUI.BeginHorizontalLayout()
        GUI.Button("button","按钮")
        GUI.EndLayout()

        GUI.BeginGroup("Group SpinBox Demo")
        GUI.BeginVerticalLayout()
        GUI.BeginHorizontalLayout()
        GUI.Label("label_1",'随便编辑1')
        GUI.DoubleSpinBox('spinBox1',min = -12.0,max = 20,step = 0.1)
        GUI.EndLayout()
        GUI.BeginHorizontalLayout()
        GUI.Label("label2",'随便编辑2')
        GUI.DoubleSpinBox('spinBox2',min = -10.0,max = 20,step = 0.5)
        GUI.EndLayout()
        GUI.EndLayout()
        GUI.EndGroup()

        GUI.BeginGroup("Group Tab Demo")
        GUI.BeginTab('Tab_Main',True)

        GUI.BeginSubTab('Tab111','Tab1')

        GUI.BeginVerticalLayout()
        GUI.Label('label3','line 1')
        GUI.Label('label4','line 2')
        GUI.EndLayout()

        GUI.EndSubTab()

        GUI.BeginSubTab('Tab222','Tab2')

        GUI.BeginVerticalLayout()
        GUI.Label('label5','line 24')
        GUI.Label('label6','line 25')
        GUI.EndLayout()

        GUI.EndSubTab()

        GUI.EndTab()
        GUI.EndGroup()

        GUI.EndGUI()
Example #7
0
    def OnGUI(self):
        GUI.BeginGUI(self)
        # input some GUI command here
        GUI.BeginHorizontalLayout()
        GUI.Label(objectName="label",
                  imageMode=True,
                  imagePath="C:\\Users\\Timor\\Desktop\\AboutIcon.jfif")
        GUI.BeginVerticalLayout()
        GUI.Spacer(50)
        GUI.Label("Label_Top", "隐蔽信道检测实验平台 Ver 0.0002")
        GUI.Label("Label_Mid",
                  "Based On Qt Framework && Python && Boost Library")
        GUI.Label("Label_Bottom", "Programmers:Timor && Harun")
        GUI.Label("Label_Bottom1", "Support: Quan Sun")
        GUI.BeginHorizontalLayout()
        GUI.Label("Label_Bottom2", "官网地址")
        GUI.Label("Label_Bottom3", "https://coupon580.com/home")
        GUI.EndLayout()
        GUI.Spacer(50)
        GUI.EndLayout()
        GUI.EndLayout()

        GUI.EndGUI()
Example #8
0
        elif Data["realtime_protection"] == True:
            LOG.CORELET_LOG("Realtime Protection is enabled.\n")
            RealTime_Protection(Count)

# Virus names
Virus_names = "virus.exe", "exploit.application", "internet_explorer.exe", "fake_virus.bat"


# This function will check whether it should allow any program or not.
def IsVirus(files):
    if files in Virus_names: return True
    else: return False


# Main Antivirus Loop
Title = GUI.Label(Display, (25, 25, 25), 0, 0, 475, 70)
Title_Text = GUI.Text(Display, "Corelet", (90, 90, 90), (160, 10), 50)

SystemScan = GUI.Button(Display, (50, 50, 50), (70, 70, 70), (40, 40, 40), 30,
                        100, 120, 30)
SystemScan_Info = GUI.Text(Display,
                           f"Scan {WinDir} drive (Cannot scan other drives)",
                           (0, 0, 0), (38, 140), 13)
SystemScan_Text = GUI.Text(Display, "System scan", (255, 255, 255), (38, 104),
                           21)
SystemScan_Border = GUI.Label(Display, (18, 18, 18), 30, 130, 120, 2)
SystemScan_Left_Border = GUI.Label(Display, (18, 18, 18), 30, 100, 2, 30)

CustomScan = GUI.Button(Display, (50, 50, 50), (70, 70, 70), (40, 40, 40), 30,
                        200, 120, 30)
CustomScan_Info = GUI.Text(Display,