Compare commits

...
5 Commits
Author SHA1 Message Date
87owo 2dfa73ba67 Add files via upload 2021-12-03 18:39:36 +08:00
87owo 3d72861627 Delete virustotal.txt 2021-11-26 01:26:36 +08:00
87owo 0980449e99 Add files via upload 2021-11-26 01:26:14 +08:00
87owo 11408e5816 Add files via upload 2021-11-15 18:03:06 +08:00
87owo 12cd3e5ff3 Add files via upload 2021-10-28 07:27:41 +08:00
+88 -9
View File
@@ -1,9 +1,11 @@
import os
import cv2
import time
import random
import string
import sys
import ctypes
import psutil
import shutil
import socket
import webbrowser
@@ -14,6 +16,7 @@ import hashlib
import getpass
import json
import stat
import threading
import cryptocode
import tkinter as tk
from tkinter import *
@@ -28,7 +31,7 @@ from Expansion_pack import *
'''
pyinstaller_versionfile.create_versionfile(
output_file="versionfile.txt",
version="1.6.3",
version="1.7.0",
company_name="PYAS",
file_description="Python Antivirus Software",
internal_name="PYAS",
@@ -38,7 +41,7 @@ pyinstaller_versionfile.create_versionfile(
)
'''
root = Tk()
root.title('PYAS V1.6.3')
root.title('PYAS V1.7.0')
#root.resizable(0,0)
root.geometry('800x450')
textPad=Text(root,undo=True)
@@ -124,6 +127,43 @@ This limitation applies to
It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages.
''')
lock = threading.Lock()
def threading_cmd(tcmd):
stcmd=threading.Thread(target=tcmd)
stcmd.start()
#stcmd.join()
#lock.acquire()
#lock.release()
def camera_is_open_check():
textPad.delete(1.0,END)
try:
cap = cv2.VideoCapture(0)
ret, frame = cap.read()
if ret:
textPad.insert("insert", '✔當前攝像頭屬於關閉狀態。')
cap.release()
else:
textPad.insert("insert", '✖當前攝像頭已被其他應用程式占用,可能會有隱私風險。')
cap.release()
except:
textPad.insert("insert", '✖當前攝像頭檢測異常,可能會有隱私風險。')
def camera_is_open_check_en():
textPad.delete(1.0,END)
try:
cap = cv2.VideoCapture(0)
ret, frame = cap.read()
if ret:
textPad.insert("insert", '✔The current camera is in the off state.')
cap.release()
else:
textPad.insert("insert", '✖The current camera is already occupied by other applications, and there may be privacy risks.')
cap.release()
except:
textPad.insert("insert", '✖The current camera detects abnormalities, and there may be privacy risks.')
def input_pyas_key():
textPad.delete(1.0,END)
t=Toplevel(root)
@@ -251,7 +291,12 @@ def ai_scan():
if len(blist) == 0:
textPad.insert("insert", '✔此檔案目前沒有高危險行為')
else:
textPad.insert("insert", '✖已檢測到可疑行為,可疑內容: '+ str(blist))
textPad.insert("insert", '''
✖已檢測到可疑行為,可疑內容:
============================================================================
'''+ str(''',
'''.join(blist))+'.')
else:
textPad.insert("insert", '✖輸入檔案錯誤,不能有引號')
else:
@@ -259,6 +304,17 @@ def ai_scan():
def input_antivirus_immediately():
textPad.delete(1.0,END)
try:
pids = psutil.pids()
textPad.insert("insert", '''
已尋找到的檔案名稱:
============================================================================
''')
for pid in pids:
textPad.insert("insert",psutil.Process(pid).name()+'''
''')
except:
pass
t=Toplevel(root)
t.title('檔案名稱')
t.geometry('260x40')
@@ -276,7 +332,7 @@ def antivirus_immediately(app):
textPad.delete(1.0,END)
done = False
while not done:
run = subprocess.call('tasklist |find /i "'+str(app)+'"',shell=True)
run = subprocess.call('tasklist |find /i "'+str(app)+'"')
if run == 0:
#textPad.insert("insert", 'The program has been found "'+str(app)+'"')
of = subprocess.call('taskkill /f /im '+str(app),shell=True)
@@ -730,7 +786,7 @@ def about():
版權所有© 2020-2021 PYAS Python Antivirus Software''')
def version():
showinfo('Version','軟體版本: PYAS V1.6.3')
showinfo('Version','軟體版本: PYAS V1.7.0')
def is_admin():
try:
@@ -846,6 +902,11 @@ def traditional_chinese_pro():
sub2menu.add_separator()
sub2menu.add_command(label = '啟動安全模式',command = start_safe_mode)
sub2menu.add_command(label = '關閉安全模式',command = close_safe_Mode)
insmenu = Menu(filemenu3,tearoff=False)
filemenu3.add_cascade(label='隱私工具', menu=insmenu, underline=0)
insmenu.add_command(label = '攝像頭隱私檢測',command = camera_is_open_check)
#insmenu.add_separator()
#insmenu.add_command(label = '持續增加中...')#,command = input_custom_cmd_command)
submenu = Menu(filemenu3,tearoff=False)
filemenu3.add_cascade(label='更多工具', menu=submenu, underline=0)
submenu.add_command(label = '尋找檔案',command = input_find_files)
@@ -1000,15 +1061,30 @@ def ai_scan_en():
if len(blist) == 0:
textPad.insert("insert", '✔There are currently no high-risk behaviors in this file')
else:
textPad.insert("insert", '✖Suspicious behavior has been detected, Suspicious content: '+ str(blist))
textPad.insert("insert", '''
✖Suspicious behavior has been detected, Suspicious content:
============================================================================
'''+ str(''',
'''.join(blist))+'.')
else:
textPad.insert("insert", '✖Input file error, cannot have quotation marks')
else:
textPad.insert("insert", 'Unable to open system file')
def input_antivirus_immediately_en():
global root,textPad
textPad.delete(1.0,END)
try:
pids = psutil.pids()
textPad.insert("insert", '''
File name found:
============================================================================
''')
for pid in pids:
textPad.insert("insert",psutil.Process(pid).name()+'''
''')
except:
pass
t=Toplevel(root)
t.title('File Name')
t.geometry('260x40')
@@ -1467,7 +1543,7 @@ def about_en():
Copyright© 2020-2021 PYAS Python Antivirus Software''')
def version_en():
showinfo('Version','Software Version: PYAS V1.6.3')
showinfo('Version','Software Version: PYAS V1.7.0')
def is_admin():
try:
@@ -1583,6 +1659,9 @@ def english_pro():
sub2menu.add_separator()
sub2menu.add_command(label = 'Start safe mode',command = start_safe_mode_en)
sub2menu.add_command(label = 'Close safe mode',command = close_safe_Mode_en)
insmenu = Menu(filemenu3,tearoff=False)
filemenu3.add_cascade(label='Privacy Tools', menu=insmenu, underline=0)
insmenu.add_command(label = 'Camera privacy detection',command = camera_is_open_check_en)
submenu = Menu(filemenu3,tearoff=False)
filemenu3.add_cascade(label='More Tools', menu=submenu, underline=0)
submenu.add_command(label = 'Find files',command = input_find_files_en)
@@ -1651,5 +1730,5 @@ def setup_pyas():
english_pro()
except:
english_pro()
setup_pyas()