> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/shark-jack-display/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/shark-jack-display/netmode.md).

# NETMODE

`NETMODE` is a Ducky Script command which specifies which network mode to use in a given payload. These network modes determine how the Shark Jack will interface with the network.

```
Usage: /usr/bin/NETMODE [DHCP_CLIENT|DHCP_SERVER|AUTO|STATIC|OFF]
```

### NETMODE DHCP\_CLIENT

In this mode, the Shark Jack will attempt to obtain an IP address from the target network via DHCP.&#x20;

```
NETMODE DHCP_CLIENT
```

{% hint style="info" %}
This is the most common network mode when interfacing with a network.
{% endhint %}

### NETMODE DHCP\_SERVER

In this mode, the Shark Jack will run a DHCP server and offer an IP address to the host computer on its network in the 172.16.24.0/24 range. This network mode enables attacks against individual computers via Ethernet rather than the network as a whole.

```
NETMODE DHCP_SERVER
```

{% hint style="info" %}
This is the most common network mode when interfacing directly with a computer.
{% endhint %}

## **NETMODE AUTO** <a href="#netmode-dhcp_server" id="netmode-dhcp_server"></a>

In this mode, the Shark Jack will first attempt to obtain an IP address from the target network via DHCP, similar to `NETMODE DHCP_CLIENT`. If no DHCP server is detected, the Shark Jack will start its own DHCP server, similar to `NETMODE DHCP_SERVER`.

```none
NETMODE AUTO
```

## **NETMODE STATIC** <a href="#netmode-dhcp_client" id="netmode-dhcp_client"></a>

In this mode, the Shark Jack will set a static IP address based on the passed values. This is ideally used with targets where the IP schema is known, or a DHCP server is not present.

```
NETMODE STATIC IP_x.x.x.x SUBNET_x.x.x.x GATEWAY_x.x.x.x
```

For example:

```
NETMODE STATIC IP_192.168.1.100 SUBNET_255.255.255.0 GATEWAY_192.168.1.1
```

## NETMODE OFF

In this mode, the Shark Jack will disable networking on its RJ45 Ethernet interface (`eth0`).
