# Weaponizing Windows

1\) Install Commando VM\
2\) Connect windows VM with Linux VM.\
3\) Start Attacking

### Connecting Windows VM with Linux VM

On Windows VM, set `Default Gateway` to the `IP` of the Linux VM.<br>

![Setup for Default Gateway](/files/xZxum6Dq8RbJ6fqWutEW)

Get the Linux VM `IP` and add to `Default Gateway`.

![Linux VM IP](/files/JnCQ8v8gvD24dheFGWhY)

After this setup, all Windows traffic will flow from Windows to Linux. \
On the Linux machine start forwarding the traffic.

```
sudo sysctl -w net.ipv4.ip_forward=1
sudo /sbin/iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
sudo /sbin/iptables -A FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo /sbin/iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT
```

Make sure to change the port, here I am connected to a VPN, `tun0` interface. And my local network `eth0`interface.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.shashwatshah.me/windows/active-directory/weaponizing-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
