Web Developing දන්න අයගෙන් උදවුවක්.

MihiCherub

Well-known member
  • Sep 14, 2009
    18,936
    1
    9,732
    113
    Gampaha
    Web Developing දන්න අයගෙන් උදවුවක්.

    මේකයි මගේ ප්‍රශ්නෙ. මට සයිට් එකක තියෙන email address එකක් ගන්න ඕනෙ වෙලා තියෙනව. ඒත් ඒ email එක hide වෙලා තියෙන්නෙ. තියෙන්නෙ මෙන්න මේ විදියට :nerd:

    neb434.png


    ඕකෙ show email address කියන තැනට mouse pointer එක ගෙනාපුවාම තමයි email එක පේන්නෙ. මට ඕනෙ මේ email එක page source එකෙන් ගන්න. ඒත් page source එකේ එහෙම email එකක් නෑ කොහෙවත්. email එකට අදාල tag එකේ තියෙන්නෙ මෙහෙමයි. මේකෙන් කොහොමද email එක ගන්නෙ. :(

    HTML:
    <td style='padding:12px 10px 0 5px;'>               <h3>Email</h3><span class='mtLink' id='lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38' onmouseover="MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML);" onclick="MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML);">Show Email Address</span><br/>             </td>
    උදවුවක් දෙන්න. නැත්නම් බම්ප් එකක් හරි දෙන්න හැමෝටම 10+ දෙනව. :)
     

    gayancc

    Active member
  • Sep 8, 2007
    3,357
    8
    38
    my lap
    onmouseover event function is
    Code:
    MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML)

    probably it'll getting from asynchronous requests (AJAX) so better to have a JS script file as well for deep information.

    :nerd::nerd:
     

    MihiCherub

    Well-known member
  • Sep 14, 2009
    18,936
    1
    9,732
    113
    Gampaha

    MihiCherub

    Well-known member
  • Sep 14, 2009
    18,936
    1
    9,732
    113
    Gampaha
    onmouseover event function is
    Code:
    MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML)
    probably it'll getting from asynchronous requests (AJAX) so better to have a JS script file as well for deep information.

    :nerd::nerd:

    man hithane oka server function 1k wenata athi.
    podak wisthark site 1a damoth help 1k denta bari wena 1k nethi wai wage

    ----------------------------------------------------------
    තෑන්ක්ස් ඔක්කොටම රෙප් දෙන්නම්.
     

    KingCM

    Well-known member
  • Jul 23, 2013
    6,920
    948
    113
    www.biogen.lk
    Code:
    ඕකෙ show email address කියන තැනට mouse pointer එක ගෙනාපුවාම තමයි email එක පේන්නෙ.

    mata pena widiyata AJAX walin wage email eka pennane.eka nisai email eka html wala pennane naththe.

    main html page ekata connect wena AJAx/JS file thiyenawada kiyala balanna,inspect elements walata gihin.​
     
    • Like
    Reactions: MihiCherub

    Ayeshlive

    Well-known member
  • Jul 1, 2011
    10,570
    943
    113
    *̶͑̾̾​̅ͫ͏̙̤g͛͆̾ͫ̑͆&
    JS source eka check karanna MtLDiv kiyana function definition. It has to be some sort of JS obfuscating mechanism that you have to rewrite in PHP or whatever the server side language you are using.
    Writing a scraper is not easy you will soon realize.
     

    hirashgeff

    Well-known member
  • Jan 16, 2007
    22,187
    25,936
    113
    29
    ලොවෙත් නැති තැනක
    Firefox macho.. ගන්න හදන්නෙ Java වලින්. ඒත් නැත දන්නෙ නැතුව ගන්න බෑනෙ. ඒ email එක කොහෙද තියෙන්නෙ.

    HTTP Request එකකින්ද ගන්නෙ නැත්තම් ෆයර්ෆොක්ස් වලින් පුල් කරනවද ?
    ෆයර්ෆොක්ස් යූස් කරනවා නම් විසඳුමක් දෙන්නම්
     

    MihiCherub

    Well-known member
  • Sep 14, 2009
    18,936
    1
    9,732
    113
    Gampaha
    HTTP Request එකකින්ද ගන්නෙ නැත්තම් ෆයර්ෆොක්ස් වලින් පුල් කරනවද ?
    ෆයර්ෆොක්ස් යූස් කරනවා නම් විසඳුමක් දෙන්නම්
    HTTP Request එකකින් ගන්නෙ. :yes:
     

    gayancc

    Active member
  • Sep 8, 2007
    3,357
    8
    38
    my lap
    OK mate here is the service URL

    Code:
    http://www.leadingre.com/LeadingREWebService.asmx

    all you have to do is pass the id of this element

    Code:
    <span class='mtLink' id='lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38' onmouseover="MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML);" onclick="MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML);">Show Email Address</span>

    for you case id should be

    Code:
    id='lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38'

    call the service with passing that id in to that format

    Code:
    http://www.leadingre.com/LeadingREWebService.asmx/MtLDiv?UserID=22002022&AuthID=80054275&Div=lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38&ObfE=f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38&Cap=Show%20Email%20Address


    make sure you are passing

    UserID=22002022
    AuthID=80054275
    Div=lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38
    ObfE=f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38
    Cap=Show%20Email%20Address

    to be honestly i have no idea about the service all i know is it accept GET requests

    you'll get a respose like this

    HTML:
    <string xmlns="http://tempuri.org/">
    <a href='mailto:[email protected]'>[email protected]</a><script>window.setTimeout( function() { var lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38=$('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38');if(lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38){ lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38.setAttribute('onclick',''); lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38.setAttribute('onmouseover',''); } }, 10 );</script>
    </string>

    so way to go maipulate that string and grab the email

    Happy coding...

    :yes::yes::yes: cheers!!
     
    Last edited:
    • Like
    Reactions: MihiCherub

    Ayeshlive

    Well-known member
  • Jul 1, 2011
    10,570
    943
    113
    *̶͑̾̾​̅ͫ͏̙̤g͛͆̾ͫ̑͆&

    Here is how to do the hack!

    1. Extract the contents of the
    HTML:
    onmouseover:
    MtLDiv('l4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e','4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e',this.innerHTML)


    The first parameter is Div, and the second is ObfE.

    2. Now, make a request to
    HTML:
    http://www.leadingre.com/LeadingREWebService.asmx/MtLDiv?UserID=22001775&AuthID=4275165&Div=[DIV]&ObfE=[ObfE]&Cap=Show%20Email%20Address

    (change [DIV] and [ObdE] with relevant values).

    Ex:
    Code:
    http://www.leadingre.com/LeadingREWebService.asmx/MtLDiv?UserID=22001775&AuthID=4275165&Div=l4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e&ObfE=4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e&Cap=Show%20Email%20Address


    3. you will get the HTML element that contains the email address.
    4. preg_match and find the email address.
     
    Last edited:
    • Like
    Reactions: MihiCherub

    MihiCherub

    Well-known member
  • Sep 14, 2009
    18,936
    1
    9,732
    113
    Gampaha
    Here is how to do the hack!

    1. Extract the contents of the
    HTML:
    onmouseover:
    MtLDiv('l4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e','4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e',this.innerHTML)

    The first parameter is Div, and the second is ObfE.

    2. Now, make a request to
    HTML:
    http://www.leadingre.com/LeadingREWebService.asmx/MtLDiv?UserID=22001775&AuthID=4275165&Div=[DIV]&ObfE=[ObfE]&Cap=Show%20Email%20Address
    (change [DIV] and [ObdE] with relevant values).

    Ex:
    Code:
    http://www.leadingre.com/LeadingREWebService.asmx/MtLDiv?UserID=22001775&AuthID=4275165&Div=l4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e&ObfE=4496072443827f001fc558297a4031c2722ba4f939974e3bb7311127d222010e&Cap=Show%20Email%20Address

    3. you will get the HTML element that contains the email address.
    4. preg_match and find the email address.
    මේකෙ UserID n AuthID ගන්නෙ කොහොමද?

    OK mate here is the service URL

    Code:
    http://www.leadingre.com/LeadingREWebService.asmx
    all you have to do is pass the id of this element

    Code:
    <span class='mtLink' id='lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38' onmouseover="MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML);" onclick="MtLDiv('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38','f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38',this.innerHTML);">Show Email Address</span>
    for you case id should be

    Code:
    id='lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38'
    call the service with passing that id in to that format

    Code:
    http://www.leadingre.com/LeadingREWebService.asmx/MtLDiv?UserID=22002022&AuthID=80054275&Div=lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38&ObfE=f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38&Cap=Show%20Email%20Address
    make sure you are passing

    UserID=22002022
    AuthID=80054275
    Div=lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38
    ObfE=f3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38
    Cap=Show%20Email%20Address

    to be honestly i have no idea about the service all i know is it accept GET requests

    you'll get a respose like this

    HTML:
    <string xmlns="http://tempuri.org/">
    <a href='mailto:[email protected]'>[email protected]</a><script>window.setTimeout( function() { var lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38=$('lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38');if(lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38){ lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38.setAttribute('onclick',''); lf3fd76a5853410d9bf3480230a6152f9500d1f14022942dcccd00bafee883e38.setAttribute('onmouseover',''); } }, 10 );</script>
    </string>
    so way to go maipulate that string and grab the email

    Happy coding...

    :yes::yes::yes: cheers!!
    මේකෙ UserID n AuthID ගන්නෙ කොහොමද? HTML request විදියට යවපුවාම ඔය ටික ගානට එනව. ඒකෙන් කපල කොටල ගත්ත. තෑන්ක්ස්.

    ------------------------------------------------

    හැමෝටම ගොඩක් ස්තූතියි.. වැඩේ හරි. පුලුවන් නම් $7.5ක් දෙන්නම් තව වැඩක් තියෙනව.