# Tips and Tricks

### Access List Tips

Command below will show access-lists

```
show access-lists
```

Command below will delete access lit

```
enable
conf t
no access-list {access-list-num}
```

### Make Script from Command List

If you're given a command list of

```
Router>enable
Router#configure terminal
Router(config)#hostname R0
R0(config)#interface fastethernet 0/0
R0(config-if)#ip address 30.0.0.1 255.0.0.0
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#interface serial 0/0/0
R0(config-if)#ip address 20.0.0.1 255.0.0.0
R0(config-if)#clock rate 64000
R0(config-if)#bandwidth 64
R0(config-if)#no shutdown
R0(config-if)#exit
```

Use [cyberchef](https://gchq.github.io/CyberChef/) with `Find / Replace` to remove the EXEC mode

<figure><img src="https://2527180782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcYDZrz0oE0BKGgsL9F63%2Fuploads%2FThviQHAWDSVj5utpWYgE%2Fimage.png?alt=media&#x26;token=f684b839-1277-4c7b-93a3-426e6fafc9d3" alt=""><figcaption></figcaption></figure>

What is happening here is

```
.* is a wildcard 
| means or
[] denotes a character class
```

This means remove anything that comes before a `#` or `>` and replace it with nothing.

```
.*[#|>]
```

Now in packet tracer copy all of the output code and click paste. This will run all of the code line by line.

<figure><img src="https://2527180782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcYDZrz0oE0BKGgsL9F63%2Fuploads%2FsBNcr1Qh9jPddVxpWVGt%2Fimage.png?alt=media&#x26;token=42e2044f-8a0c-475f-b1d4-dc61808133d7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2527180782-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcYDZrz0oE0BKGgsL9F63%2Fuploads%2FJchYsbDio77S7bEFgOSr%2Fimage.png?alt=media&#x26;token=6aa86665-979e-4450-b54f-dc1655ee6d22" alt=""><figcaption><p>I had run this before so I get the overlap output</p></figcaption></figure>
