Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Threekiii committed Nov 6, 2024
0 parents commit b179e75
Show file tree
Hide file tree
Showing 142 changed files with 15,340 additions and 0 deletions.
1,288 changes: 1,288 additions & 0 deletions README.md

Large diffs are not rendered by default.

3,469 changes: 3,469 additions & 0 deletions cheatsheets/DefaultCreds-Cheat-Sheet.csv

Large diffs are not rendered by default.

2,227 changes: 2,227 additions & 0 deletions cheatsheets/安全厂商及官网链接速查.txt

Large diffs are not rendered by default.

Binary file added images/README/Awesome-Redteam-20241106.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions scripts/AntivirusScanner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AntivirusScanner

## 0x01 功能说明

- 杀软进程检测`antivirus_scanner.py`
- 支持进程详见`process.txt`

## 0x02 运行结果

![image-20220531191024577](images/202205311910633.png)
49 changes: 49 additions & 0 deletions scripts/AntivirusScanner/antivirus_scanner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
# @Author : Threekiii
# @Time : 2022/5/27 19:40
# @Function: 杀软进程检测

import re
import os
import subprocess

def banner():
print('+--------------------------------------------------')
print('+ \033[36m@Function: 杀软进程检测 \033[0m')
print('+ \033[36m@Author : Threekiii \033[0m')
print('+ \033[31m代码仅供学习,任何人不得将其用于非法用途,否则后果自行承担。 \033[0m')
print('+--------------------------------------------------')

def check():
antivirus_list = []
with open('process.txt', 'r', encoding='utf-8') as f:
content = f.readlines()
try:
print('+ \033[34m正在执行tasklist命令,当前路径: {}\033[0m'.format(os.path.abspath(os.path.dirname(__file__))))
tmp = subprocess.check_output('tasklist', shell=True).decode()
tasklist = ''.join(re.findall('.*=(.*)', tmp, re.S)).strip().split('\r\n')
print('+ \033[34m正在执行杀软进程检测...\033[0m')
for task in tasklist:
taskname = task.split()[0]
for process in content:
processname = process.strip('\n').split('\"')[1]
if taskname == processname:
result = process.strip('\n').split('\"')[3]
antivirus_list.append('+ \033[31m存在进程:{}, 对应杀软:{}\033[0m'.format(processname, result))
print('\n+ \033[31m[检测完成] \033[0m')
for al in antivirus_list:
print(al)
except Exception as e:
print('\n+ \033[31m[出现异常] {}\033[0m'.format(e))

def run():
banner()
check()

if __name__ == '__main__':
run()





Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b179e75

Please sign in to comment.