Giter Site home page Giter Site logo

bakaralisec / winipfinder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zarcolio/winipfinder

0.0 0.0 0.0 32 KB

Tries to find IP addresses from within Windows, useful when engaged in an on-prem pentest / red teaming exercise.

License: GNU General Public License v3.0

Batchfile 100.00%

winipfinder's Introduction

WinIPFinder

Tries to find IP addresses from within Windows, using LotL (Living off the Land) tools. This is useful when engaged in an on-prem pentest / red teaming exercise.

Outputs a log file SubnetFinder-%USERDNSDOMAIN%-%COMPUTERNAME%-%ddmmyyyy%.txt

Uses the following commands to extract IP addresses from a Windows machine:

IPCONFIG /all
ROUTE PRINT
ARP -a
NETSTAT.EXE -n |FIND /v "127.0.0."
NET use
NETSH winhttp show proxy
TRACERT -h 2 8.8.8.8
WMIC printer get DriverName, Name, Portname | FIND /v /i "microsoft"
Qappsrv
REG query HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\SshHostKeys
REG query HKEY_CURRENT_USER\SOFTWARE\9bis.com\KiTTY\SshHostKeys
REG query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces /s|find /i "address "
REG query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces /s|find /i "server "
REG query "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default"
REG query "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers"
FIND *\Documents\*.rdp "full address:"
NSLOOKUP %USERDNSDOMAIN%
NSLOOKUP -type=srv _kerberos._tcp.%USERDNSDOMAIN%
NSLOOKUP -type=srv _kpasswd._tcp.%USERDNSDOMAIN%
NSLOOKUP -type=srv _ldap._tcp.%USERDNSDOMAIN%
NSLOOKUP -type=srv _ldap._tcp.dc._msdcs.%USERDNSDOMAIN%
TRACERT -h 2 %USERDNSDOMAIN%
dsregcmd /status

%USERDNSDOMAIN% can also be replaced by %1 :)

Got additions? Pls let me know!

winipfinder's People

Contributors

zarcolio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.