Skip to content

Commit

Permalink
避免360的劫杀
Browse files Browse the repository at this point in the history
  • Loading branch information
hongfeiyucode committed Jun 6, 2016
1 parent f7a95ee commit 4abcf17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

- [ ] pyinstaller
- [ ] 生成可执行文件
- [ ] 中文乱码
- [ ] 添加一个只修改尾数的py
8 changes: 4 additions & 4 deletions classroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
print u'没有找到可用的网络适配器'
exit()
for i in xrange(len(colNicConfigs)):
objNicConfig = colNicConfigs[i]
print objNicConfig.Index
print objNicConfig.SettingID
print objNicConfig.Description.encode("cp936")
if colNicConfigs[i].SettingID=='{B324793C-DD04-43BB-8DD0-B17BCBED9DC2}' :
objNicConfig = colNicConfigs[i]
break
print u"无线网卡信息: "
#print objNicConfig.Index
#print objNicConfig.SettingID
#print objNicConfig.Description.encode("cp936")
print u'IP: ', ', '.join(objNicConfig.IPAddress)
if objNicConfig.DefaultIPGateway!=None and objNicConfig.DNSServerSearchOrder!=None:
print u'掩码: ', ', '.join(objNicConfig.IPSubnet)
Expand Down
5 changes: 4 additions & 1 deletion dormitory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
print u'没有找到可用的网络适配器'
exit()
for i in xrange(len(colNicConfigs)):
objNicConfig = colNicConfigs[i]
print objNicConfig.Index
print objNicConfig.SettingID
print objNicConfig.Description.encode("cp936")
if colNicConfigs[i].SettingID=='{5240CB7A-FA58-4A5A-8C1A-8C8300AAE22B}' :
objNicConfig = colNicConfigs[i]
break
print u"以太网卡信息: "
#print objNicConfig.Index
Expand Down

0 comments on commit 4abcf17

Please sign in to comment.