Skip to content

Commit 88d0249

Browse files
committed
Merge pull request pwnwiki#101 from tekwizz123/master
Add in changes from "No Wireshark? No TCPDump? No problem!"
2 parents b9fb78c + 1317594 commit 88d0249

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripting/windows.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,16 @@ reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnec
1515
**Launch ARP scan**
1616
```bash
1717
for /L %i in (1,1,255) do @start /b ping -n 1 -w 1 192.168.1.%i
18+
```
19+
20+
**Capture all IPv4 traffic, TCP only, which matches the IP address on a 64 bit Windows 7/Windows 2008
21+
or newer box, continue the capture even if the computer restarts, save capture to a nondefault location.
22+
Captures can then be analysed with Microsoft's Message Analyser
23+
http://www.microsoft.com/en-us/download/details.aspx?id=44226**
24+
```bash
25+
netsh trace start capture=yes Ethernet.Type=IPv4 IPv4.Address=157.59.136.1 Protocol=TCP persistent=yes traceFile=C:\Users\Public\trace.etl
26+
```
27+
**Stop the capture**
28+
```bash
29+
netsh trace stop
1830
```

0 commit comments

Comments
 (0)