Social Engineering Basics - Running sudo vi and changing IP - am I stupid lol

So going through Social Engineering Basics and onto ‘Pharming lab’ with ‘instructions’ all down the left side. Simple right…?

Seems I can’t get my head around the Dnsmasq

Instructions:

  1. Open a new terminal window, then type sudo vi /etc/dnsmasq.conf and press Enter to open the dnsmasq.conf file in the vi editor.

Note: If you don’t want to use vi, feel free to use any editor you prefer.

2. On the 7th and 10th lines, change 10.91.X.Y to the Kali IP address.

Use the arrow keys to position your cursor on the first 1 character, then press i to enter Insert Mode and type the full Kali IP address (for example, 10.101.12.230). Press Esc to exit Insert Mode, then use the arrow keys to position your cursor on the 1 character and press Delete (not Backspace). Repeat this last step to delete the rest of the 10.91.X.Y placeholder.

On Point 2, I get nothing but a BLANK Screen with - from top to bottom.

It doesn’t work, I can’t make any changes .

Can someone provide some guidance as I’ve tied this 25 times and Einstein was right.
Either I’m dumb or the lab isn’t as simple as it suggests…

Thanks peeps

It may be easier for you to use nano if you have not used vi before.

sudo nano /etc/dnsmasq.conf

Then just arrow around and make the required changes. No need to change between navigation and input “modes” like with vi.

When done use CTRL+O and press Enter to write out your changes and CTRL-X to exit nano.

Note: you may be tempted to use your mouse to mark and paste text, but that does not work. It’s not quite as easy as Windows :slight_smile:

Based on your screenshot, I’m not sure you’re executing the sudo vi /etc/dnsmasq.conf correctly? You shouldn’t see an empty file - you should see the text shown in the following screenshot.

Could you provide a screenshot of your Step 8 command before executing it?