!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/lib/xulrunner-1.9.1/components/   drwxr-xr-x
Free 129.97 GB of 142.11 GB (91.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     addonsInfo.js (4.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
const Cc = Components.classes;
const Ci = Components.interfaces;
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");

function compare(a, b) {
  return String.localeCompare(a.name, b.name);
}

function dumper() {}
dumper.prototype = {
  close: function() { },
  writeString: function(str) {
    dump(str);
  }
};

function rdfvalue(rdf, ds, id, prop) {
  var res = rdf.GetResource("urn:mozilla:item:" + id);
  var propres = rdf.GetResource("http://www.mozilla.org/2004/em-rdf#"+prop);
  var target = ds.GetTarget(res, propres, true);
  if (target instanceof Ci.nsIRDFLiteral)
    return target.Value;
  if (target instanceof Ci.nsIRDFResource)
    return target.Value;
  return undefined;
}

function dump_extensions(out) {
  var em = Cc["@mozilla.org/extensions/manager;1"]
           .getService(Ci.nsIExtensionManager);
  var ds = em.datasource;
  var rdf = Cc["@mozilla.org/rdf/rdf-service;1"]
            .getService(Ci.nsIRDFService);

  var extensions = em.getItemList(Ci.nsIUpdateItem.TYPE_ANY, { });
  extensions.sort(compare);
  out.writeString("-- Extensions information\n");
  for (var i = 0; i < extensions.length; i++) {
    var extension = extensions[i];
    var res = rdf.GetResource("urn:mozilla:item:" + extension.id);
    out.writeString("Name: " + extension.name + "\n");
    var location = em.getInstallLocation(extension.id)
                     .getItemLocation(extension.id);
    if (extension.installLocationKey == "app-profile")
      out.writeString("Location: ${PROFILE_EXTENSIONS}/" +
                      location.leafName + "\n");
    else
      out.writeString("Location: " + location.path + "\n");

    out.writeString("Status: " +
           (rdfvalue(rdf, ds, extension.id, "appDisabled") == "true" ?
                 "app-disabled" :
           (rdfvalue(rdf, ds, extension.id, "userDisabled") == "true" ?
                 "user-disabled" : "enabled")) + "\n")
    out.writeString("\n");
  }
}

function dump_plugins(out) {
  var phs = Cc["@mozilla.org/plugin/host;1"]
            .getService(Ci.nsIPluginHost);
  var plugins = phs.getPluginTags({ });
  plugins.sort(compare);
  out.writeString("-- Plugins information\n");
  for (var i = 0; i < plugins.length; i++) {
    var plugin = plugins[i];
    if (Ci.nsIPluginTag_1_9_2)
      plugin = plugin.QueryInterface(Ci.nsIPluginTag_1_9_2);
    out.writeString("Name: " + plugin.name +
           (plugin.version ? " (" + plugin.version + ")" : "") + "\n");
    out.writeString("Location: " +
           (plugin.fullpath ? plugin.fullpath : plugin.filename) + "\n");
    out.writeString("Status: " + (plugin.disabled ? "disabled" : "enabled") +
                    (plugin.blocklisted ? " blocklisted" : "") + "\n");
    out.writeString("\n");
  }
}

function addonsInfoHandler() {}
addonsInfoHandler.prototype = {
  handle: function clh_handle(cmdLine) {
    var path;
    var out;
    try {
      path = cmdLine.handleFlagWithParam("dump-addons-info", false);
      if (!path)
        return;
    } catch(e) {
      if (!cmdLine.handleFlag("dump-addons-info", false))
        return;
    }

    cmdLine.preventDefault = true;

    if (path) {
      var file = Cc["@mozilla.org/file/local;1"]
                 .createInstance(Ci.nsILocalFile);
      file.initWithPath(path);
      var outstream = Cc["@mozilla.org/network/file-output-stream;1"]
                      .createInstance(Ci.nsIFileOutputStream);
      outstream.init(file, 0x2A /* TRUNCATE | WRONLY | CREATE */, 0666, 0);
      out = Cc["@mozilla.org/intl/converter-output-stream;1"]
            .createInstance(Ci.nsIConverterOutputStream);
      out.init(outstream, "UTF-8", 0, 0);
    } else
      out = new dumper();

    try {
      dump_extensions(out);
    } catch (e) {}
    try {
      dump_plugins(out);
    } catch (e) {}

    out.close();
  },

  classDescription: "addonsInfoHandler",
  classID: Components.ID("{17a1f091-70f7-411c-a9d7-191689552d01}"),
  contractID: "@mozilla.org/toolkit/addonsInfo-clh;1",
  QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler]),
  _xpcom_categories: [{category: "command-line-handler", entry: "a-addons-info"}]
};

var NSGetModule = XPCOMUtils.generateNSGetModule([addonsInfoHandler]);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0083 ]--