This file is indexed.

/usr/share/tntnet/ajax.js is in tntnet-demos 2.2.1-3build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function getRequest()
{
  try { return new XMLHttpRequest();                   } catch (e) { }
  try { return new ActiveXObject("Msxml2.XMLHttp");    } catch (e) { }
  try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { }
  return null;
}

function ajaxGet(url, parameter, fn, failFn)
{
  request = getRequest();
  request.open("POST", url, true);
  request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  request.onreadystatechange = function () {
      if (request.readyState == 4)
      {
        if (request.status == 200)
        {
          if (fn != null)
            fn(request);
        }
        else if (failFn != null)
          failFn(request);
      }
    }
  request.send(parameter);
}