Compare commits

..
3 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
2 changed files with 66 additions and 8 deletions

No files matched your search

+66 -7
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
@@ -29,7 +31,7 @@ from Expansion_pack import *
'''
pyinstaller_versionfile.create_versionfile(
output_file="versionfile.txt",
version="1.6.4",
version="1.7.0",
company_name="PYAS",
file_description="Python Antivirus Software",
internal_name="PYAS",
@@ -39,7 +41,7 @@ pyinstaller_versionfile.create_versionfile(
)
'''
root = Tk()
root.title('PYAS V1.6.4')
root.title('PYAS V1.7.0')
#root.resizable(0,0)
root.geometry('800x450')
textPad=Text(root,undo=True)
@@ -133,7 +135,35 @@ def threading_cmd(tcmd):
#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)
@@ -202,7 +232,6 @@ def smart_scan():
#os.remove('FSCAN.bat')
def ai_scan():
lock.acquire()
textPad.delete(1.0,END)
blist = []
dblist = []
@@ -275,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')
@@ -292,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)
@@ -746,7 +786,7 @@ def about():
版權所有© 2020-2021 PYAS Python Antivirus Software''')
def version():
showinfo('Version','軟體版本: PYAS V1.6.4')
showinfo('Version','軟體版本: PYAS V1.7.0')
def is_admin():
try:
@@ -862,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)
@@ -1029,6 +1074,17 @@ def ai_scan_en():
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')
@@ -1487,7 +1543,7 @@ def about_en():
Copyright© 2020-2021 PYAS Python Antivirus Software''')
def version_en():
showinfo('Version','Software Version: PYAS V1.6.4')
showinfo('Version','Software Version: PYAS V1.7.0')
def is_admin():
try:
@@ -1603,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)
-1
View File
@@ -1 +0,0 @@
https://www.virustotal.com/gui/file/4834e2373103c9e9b9ea17cf0a6f3dcbfde7ac4bf7cd9de73316534f6c30e980/detection