You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wmcs=os.popen('wmic service get name,displayname,pathname,startmode 2>nul |findstr /i "Auto" 2>nul |findstr /i /v "C:\Windows\\" 2>nul |findstr /i /v """')
114
+
forminwmcs:
115
+
print(m,file=open('save.txt','a'))
116
+
117
+
print('[+]那里有什么预定的任务?什么定制实施?')
118
+
xw=os.popen('schtasks /query /fo LIST 2>nul | findstr TaskName')
119
+
print(xw,file=open('save.txt','a'))
120
+
121
+
print('[+]启动时跑了什么?')
122
+
qz=['wmic startup get caption,command','reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run','reg query HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce','reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run','reg query HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce','dir "C:\Documents and Settings\All Users\Start Menu\Programs\Startup"','dir "C:\Documents and Settings\%username%\Start Menu\Programs\Startup"']
123
+
forzinqz:
124
+
xq=os.popen(z)
125
+
forrinxq:
126
+
print(r,file=open('save.txt','a'))
127
+
128
+
print('[+]连接了哪些NIC?有多个网络吗?')
129
+
ipconfig_all=os.popen('ipconfig /all')
130
+
forallinipconfig_all:
131
+
print(all,file=open('save.txt','a'))
132
+
133
+
print('[+]我们有什么路线?')
134
+
xpo=os.popen('route print')
135
+
foroinxpo:
136
+
print(o,file=open('save.txt','a'))
137
+
138
+
print('[+]ARP缓存中的任何内容?')
139
+
arp=os.popen('arp -a')
140
+
forpinarp:
141
+
print(p,file=open('save.txt','a'))
142
+
143
+
print('[+]是否有与其他主机的连接?')
144
+
sw=os.popen('netstat -ano')
145
+
forbinsw:
146
+
print(b,file=open('save.txt','a'))
147
+
148
+
print('[+]防火墙是否已打开?如果是这样配置的是什么?')
149
+
fq=['netsh firewall show state','netsh firewall show config','netsh advfirewall firewall show rule name=all','netsh advfirewall export "firewall.txt"']
0 commit comments