-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
...ose/76/767AC83224A31B257ED755871B06BF7D4AFAE2CA65015BE69C7691DF355D7C2E/anti-dxFastRun.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...close/76/767AC83224A31B257ED755871B06BF7D4AFAE2CA65015BE69C7691DF355D7C2E/requirement.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pywin32 | ||
psutil |
Binary file added
BIN
+7.73 MB
...lose/78/78FECCE2C842ED6C5F497714F7A9833AA247C48FBCD4BBFA7250C34EA56AA3DD/anti-ineinfo.exe
Binary file not shown.
78 changes: 78 additions & 0 deletions
78
...close/78/78FECCE2C842ED6C5F497714F7A9833AA247C48FBCD4BBFA7250C34EA56AA3DD/anti-ineinfo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import os, time, hashlib | ||
import psutil, win32con, win32api | ||
|
||
SHA256 = "78fecce2c842ed6c5f497714f7a9833aa247c48fbcd4bbfa7250c34ea56aa3dd" | ||
|
||
def search_files(path, tagfile): | ||
number = 0 | ||
fulldir_result = [] | ||
for ipath in os.listdir(path): | ||
fulldir = os.path.join(path,ipath) | ||
if os.path.isfile(fulldir): | ||
if tagfile in os.path.split(fulldir)[1]: | ||
fulldir_result.append(fulldir) | ||
number = number + 1 | ||
return fulldir_result | ||
def sha256(filname): | ||
with open(filname, "rb") as f: | ||
sha256obj = hashlib.sha256() | ||
sha256obj.update(f.read()) | ||
hash_value = sha256obj.hexdigest() | ||
return hash_value | ||
|
||
disks_list = psutil.disk_partitions() | ||
print(disks_list) | ||
checked = [] | ||
|
||
while True: | ||
for pid in psutil.pids(): | ||
try: | ||
p = psutil.Process(pid) | ||
try: | ||
if sha256(p.exe()) == SHA256: | ||
p.kill() | ||
print("kill") | ||
os.remove(p.exe()) | ||
print("delete") | ||
except:... | ||
except:... | ||
|
||
disk_list = psutil.disk_partitions() | ||
for i in range(0,len(disks_list)): | ||
try: | ||
disk_list.remove(disks_list[i]) | ||
except: | ||
pass | ||
print(disk_list) | ||
for i in range(0,len(disk_list)): | ||
if disk_list[i].device in checked: | ||
pass | ||
else: | ||
exe_list = search_files(disk_list[i].device, '.exe') | ||
print(exe_list) | ||
for i in range(0, len(exe_list)): | ||
sha = sha256(exe_list[i]) | ||
print(sha) | ||
if sha256(exe_list[i]) == SHA256: | ||
print("found virus in disk") | ||
try: | ||
os.remove(exe_list[i]) | ||
print("delete") | ||
except: | ||
print("delete failed!") | ||
try: | ||
win32api.SetFileAttributes(exe_list[i].replace(".exe",""), win32con.FILE_ATTRIBUTE_NORMAL) | ||
print("set dirs") | ||
except:... | ||
checked.append(disk_list[i].device) | ||
|
||
for i in range(0, len(checked)): | ||
try: | ||
if checked[i] in str(psutil.disk_partitions()): | ||
pass | ||
else: | ||
checked.remove(checked[i]) | ||
except: | ||
checked = [] | ||
|
||
time.sleep(1) |
Empty file.
Binary file added
BIN
+6.33 MB
...&Disclose/78/78FECCE2C842ED6C5F497714F7A9833AA247C48FBCD4BBFA7250C34EA56AA3DD/ineinfo.zip
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...close/78/78FECCE2C842ED6C5F497714F7A9833AA247C48FBCD4BBFA7250C34EA56AA3DD/requirement.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pywin32 | ||
psutil |