1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone know what Script is this?

Discussion in 'BlackHat Lounge' started by sooyeshun, Sep 6, 2011.

  1. sooyeshun

    sooyeshun Junior Member

    Joined:
    Mar 23, 2010
    Messages:
    111
    Likes Received:
    85
  2. mightybh

    mightybh Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 27, 2008
    Messages:
    1,029
    Likes Received:
    1,714
    Occupation:
    CEO
    Location:
    UK
    You can just write one within minutes. There is nothing to it. This is probably what he did.
     
  3. sooyeshun

    sooyeshun Junior Member

    Joined:
    Mar 23, 2010
    Messages:
    111
    Likes Received:
    85
    how?
    sorry i'm not coder...
    looks like some javascipt to me
     
  4. proimage

    proimage Registered Member

    Joined:
    Aug 5, 2011
    Messages:
    62
    Likes Received:
    9
    Occupation:
    web developer
    Location:
    Atlanta
    Home Page:
    Javascript for sure:

    Code:
    var lastQ = 2;     function getO(id) {     var o;     if(!o) { o = frames[id]; if(!o) { o = document.getElementById(id);          if(!o) { o = document[id]; if(!o) { o = window.parent.document[id];          if(!o) { o = window.parent.document.getElementById(id); } } } }     }     return o;     }     function setOfferID(id) {     var frm = getO('QFRM');     frm.offer_id.value = id;     }     function goNext(qid) {     var o;     for( var i = 1; i <= lastQ; i++ ) {             o = getO('Q'+i);             o.style.display = ((qid == i)?'':'none');     }      if( qid > lastQ ) {         goSubmit();     }     }     function goSubmit() {     if( window.DisableExitSplash ) {         window.DisableExitSplash();     }          var frm = getO('QFRM');     var o = getO('WAIT');     o.style.display = '';     frm.submit();     }     function hasAns(name) {     var frm = getO('QFRM');     if( frm ) {         return ((frm[name])?((frm[name].value == '')?false:true):false);     } else {         return false;     }     }     function setAns(name,val,next) {     var frm = getO('QFRM');     if( frm ) {         frm[name].value = val;           if( next ) {         goNext(next);         } else {         goSubmit(frm);         }     }     }
    
    Code:
    <form action="/d/n1a9m90258" method="post" style="display:inline;" name="QFRM" id="QFRM"><input type="hidden" id="ans_1" name="ans[1]" value=""/><div id="Q1"><p>Question 1 of 2:<br />Are you Male or Female?</p><p><div class="ans" onClick="setAns('ans[1]','0',2); return false;"><input name="ans_r_1" type="radio" value="0" onClick="setAns('ans[1]','0',2); return true;"/> Male</div><div class="ans" onClick="setAns('ans[1]','1',2); return false;"><input name="ans_r_1" type="radio" value="1" onClick="setAns('ans[1]','1',2); return true;"/> Female</div></p><p><div><input type="button" value="next" onClick="if( hasAns('ans[1]') ) { goNext(2); } else { alert('Please select an answer.'); } return false;"/></div></p></div><input type="hidden" id="ans_2" name="ans[2]" value=""/><div id="Q2" style="display:none;"><p>Question 2 of 2:<br />How often do you use the internet?</p><p><div class="ans" onClick="setAns('ans[2]','0',3); return false;"><input name="ans_r_2" type="radio" value="0" onClick="setAns('ans[2]','0',3); return true;"/> Hourly</div><div class="ans" onClick="setAns('ans[2]','1',3); return false;"><input name="ans_r_2" type="radio" value="1" onClick="setAns('ans[2]','1',3); return true;"/> Daily</div><div class="ans" onClick="setAns('ans[2]','2',3); return false;"><input name="ans_r_2" type="radio" value="2" onClick="setAns('ans[2]','2',3); return true;"/> Weekly</div><div class="ans" onClick="setAns('ans[2]','3',3); return false;"><input name="ans_r_2" type="radio" value="3" onClick="setAns('ans[2]','3',3); return true;"/> Monthly</div><div class="ans" onClick="setAns('ans[2]','4',3); return false;"><input name="ans_r_2" type="radio" value="4" onClick="setAns('ans[2]','4',3); return true;"/> Other</div></p><p><div><input type="button" value="next" onClick="if( hasAns('ans[2]') ) { goNext(3); } else { alert('Please select an answer.'); } return false;"/></div></p></div><input type="hidden" name="s" value=""/><input type="hidden" name="c" value=""/><input type="hidden" name="cmd" value="go"/><div id="WAIT" style="display:none;"><p><b>Thank you for your responses!</b><br/>Submitting your answers...</p></div></div></p></div><input type="hidden" name="offer_id" value=""/><input type="hidden" name="lander_id" value="58"/><input type="hidden" name="mobile_lander" value=""/></form>
     
  5. mightybh

    mightybh Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 27, 2008
    Messages:
    1,029
    Likes Received:
    1,714
    Occupation:
    CEO
    Location:
    UK
    Yep, you can hire somebody to make something like this for a few bucks. Make it look even better. You can even go look for some simple ajax menu code/examples and make it yourself by copying and pasting some code and replacing some text. Hells, you can even do it in flash frame by frame. All you'll need is a few buttons with actionscript. Look for flash button tutorial on YouTube.
     
  6. proimage

    proimage Registered Member

    Joined:
    Aug 5, 2011
    Messages:
    62
    Likes Received:
    9
    Occupation:
    web developer
    Location:
    Atlanta
    Home Page:
    AJAX would be the way to go in my opinion, less overhead on the page. Good luck.