The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 22, 2019, 05:00:14 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Blackhat Javascript ?  (Read 670 times)
webinfoguy25
Journeyman
***
Offline Offline

Posts: 56


View Profile
« on: June 27, 2014, 08:38:08 PM »

Ok so I found this code on a site that I know is coded by someone who knows a thing or two about javascript(25 years worth).  Anyway what is the intention of a page like this?

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
    <title>404 Error - Page Not Found</title>

<script type="text/javascript" language="JavaScript">
<!--
var domainname = window.location.hostname;
var google_afd_request = {
    client: 'ca-dp-oversee_ncd',
    domain_name: domainname,
    referrer: document.referrer,
    session_token: 'create'
};
var param_name = '';
var param_value = '';
var frame;
var drid;

var registrar_frameset = function(params) {
    drid = params['drid'];

    if (params['a_id']) {
        param_name = 'a_id';
    }
    else if (params['o_id']) {
        param_name = 'o_id';
    }
    param_value = params[param_name];
    frame = document.getElementById(params['frame']);

    google_afd_request['drid'] = params['drid'];

    document.write('<title>' + domainname + '</title>\n');
    document.write('<meta name="keywords" content="' + domainname + '">\n');
    document.write('<meta name="description" content="' + domainname + '">\n');

    var token_url = 'http://pagead2.googlesyndication.com/apps/domainpark/show_afd_ads.js';
    document.write('<script type="text/javascript" language="JavaScript" ' +
                   'src="' + token_url + '"></' + 'script>\n');
}

function google_afd_ad_request_done(response) {
    var url = 'http://dsnextgen.com/'
            + '?domainname=' + domainname
            + (param_name ? ('&' + param_name + '=' + param_value) : '')
            + '&session_token=' + response.session_token;
    if (frame) {
        frame.name = domainname;
        frame.src = url;
    }
    else {
                document.write('<table style="border: 1px dashed rgb(204, 204, 204);" align="center" border="0" cellpadding="6" cellspacing="0" width="800"> <tr> <td style="font-family: Arial,Helvetica,sans-serif; font-size: 12px;"> <h1 style="margin:0px;">Page Not Found</h1> <p style="margin-top:0px;">The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following:</p> <ul> <li>If you typed the page address in the Address bar, make sure that it is spelled correctly.</li> <li>Click the Back button in your browser to try another link.</li> <li>Use a search engine like <a href="http://www.google.com">Google</a> to look for information on the Internet.</li> </ul> </td> </tr> </table>');
        document.write('<iframe src="' + url + '" frameborder="0" height="800" scrolling="auto" width="100%"></iframe>');
    }
}
-->
</script>

<script type="text/javascript" language="JavaScript">
  registrar_frameset({a_id: 101686, drid: 'as-drid-2578124767373827'});
</script>
</head>

</html>

Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!