zoukankan      html  css  js  c++  java
  • VBS获取本机IP地址

    '获取本机IP
    '
    owner DeViL
    'return 本机的IP地址
    Public Function GetIP
       ComputerName
    ="."
        
    Dim objWMIService,colItems,objItem,objAddress
        
    Set objWMIService = GetObject("winmgmts:\\" & ComputerName & "\root\cimv2")
        
    Set colItems = objWMIService.ExecQuery("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")
        
    For Each objItem in colItems
            
    For Each objAddress in objItem.IPAddress
                
    If objAddress <> "" then
                    GetIP 
    = objAddress
                    
    Exit Function
                
    End If
            
    Next
        
    Next
    End Function
  • 相关阅读:
    网络中常用的各种协议(针对TCP/IP协议组)
    报错注入小技巧
    2017swpu-ctf总结
    2017EIS高校运维大赛ctf wirteup
    discuz 3.x ssrf分析
    ssrf漏洞分析
    xxe漏洞分析
    phpcms9.6 注入分析
    74cms漏洞分析
    关于npm
  • 原文地址:https://www.cnblogs.com/coderzh/p/981119.html
Copyright © 2011-2022 走看看