set_plugins_info

set_plugins_info($plugins_info=""); - set data about plugins in the JS engine. Sets navigator.plugins (available from version 4.10.1)

The function accepts parameters as input:

  • $plugins_info – information about navigator.plugins plugins , if the string is empty, the default value is used

    After testing, the function returns the result of its work to the script :
  • true – successfully set
  • false – failed to set

    PHP example: browser->".basename(__FILE__)."
    "; //1 echo "1.Let's set navigaror.plugins:"; $plugins = "[{name: 'Chrome PDF Plugin1111', filename: 'internal-pdf-viewer', description: 'Portable Document Format'}, {name: 'Chrome PDF Viewer', filename: 'mhjfbmdgcfjbbpaeojofohoefgiehjai', description: ''}, {name: 'Native Client', filename: 'internal-nacl-plugin', description: ''}] "; $mimes_types = "[{type: 'application/pdf', suffixes: 'pdf', description: '', __ pluginName: 'Chrome PDF Viewer11111'}, {type: 'application/x-google-chrome-pdf', suffixes : 'pdf', description: 'Portable Document Format', __ pluginName: 'Chrome PDF Plugin'}, {type: 'application/x-nacl', suffixes: '', description: 'Native Client Executable', enabledPlugin: Plugin, __pluginName: 'Native Client'}, {type: 'application/x-pnacl', suffixes: '', description: 'Portable Native Client Executable', __ pluginName: 'Native Client'}] "; echo $browser->set_plugins_info($plugins, $mimes_types)."
    "; //2 echo "2.Go to the browser detection page:"; echo $browser->navigate("https://browserleaks.com/javascript")."
    "; $h3->set_focus_by_inner_text("Installed Plug-Ins", false); sleep(5); $btn->click_by_inner_text("iframe.contentWindow", false); sleep(5); //3 echo "3.Let's set navigaror.plugins:"; echo $browser->set_plugins_info()."
    "; //4 echo "4.Let's go to the browser detection page:"; echo $browser->navigate("https://browserleaks.com/javascript")."
    "; //end echo "

    "; //Quit $app->quit(); ?>
    Python example: # Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7013" from xweb_human_emulator import * # Start echo("
    browser.xxxxxxxxx
    ") # 1 echo("1.Let's set navigaror.plugins:") echo(browser.set_plugins_info("[\ u000A {name: 'Shockwave Flash', description: 'Shockwave Flash 24.0 r0', filename: 'Flash.ocx', version: '24 .0.0.194 '}, \ u000A {name:' name2 ', description:' desc2 ', filename:' filename2 '} \ u000A] "),"
    ") # 2 echo("2.Let's go to the page for browser detection:") echo(browser.navigate("panopticlick.eff.org/results?&t=111&dnt=111&a=111#fingerprintTable"), "
    ") anchor.click_by_name("showFingerprintLink2") sleep(5) # 3 echo("3.Let's set navigaror.plugins:") echo(browser.set_plugins_info(), "
    ") # 4 echo("4.Go to the browser detection page:") echo(browser.navigate("panopticlick.eff.org/results?&t=111&dnt=111&a=111#fingerprintTable"), "
    ") anchor.click_by_name("showFingerprintLink2") # end echo("

    ") # Quit app.quit()
    C# example: #region using using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading; using XHE; using XHE.XHE_DOM; using XHE.XHE_System; using XHE.XHE_Window; using XHE.XHE_Web; #endregion class Program: XHEScript { static void Main(string [] args) { //init XHE server = "127.0.0.1:7016"; InitXHE(); //Start echo("
    browser.set_app_info
    "); //1 echo("1.Let's set navigaror.plugins:"); echo(browser.set_plugins_info("[{name: 'Shockwave Flash', description: 'Shockwave Flash 24.0 r0', filename: 'Flash.ocx', version: '24 .0.0.194 '}, {name:' name2 ', description : 'desc2', filename: 'filename2'}] ") +"
    "); //2 echo("2.Let's go to the page for browser detection:"); echo(browser.navigate("panopticlick.eff.org/results?&t=111&dnt=111&a=111#fingerprintTable") + "
    "); anchor.click_by_name("showFingerprintLink2"); sleep(5); //3 echo("3.Let's set navigaror.plugins:"); echo(browser.set_plugins_info() + "
    "); //4 echo("4.Let's go to the page for browser detection:"); echo(browser.navigate("panopticlick.eff.org/results?&t=111&dnt=111&a=111#fingerprintTable") + "
    "); anchor.click_by_name("showFingerprintLink2"); //end echo("

    "); app.quit(); } }
    Java Script example: //connect the object to control the emulator, if not already connected xhe_host = "127.0.0.1:7022"; echo = require("../../../Templates JS/xweb_human_emulator.js"); //Start echo("
    browser.set_home_page
    "); //1 echo("1.Let's set navigaror.plugins:"); echo(browser.set_plugins_info("[{name: 'Shockwave Flash', description: 'Shockwave Flash 24.0 r0', filename: 'Flash.ocx', version: '24 .0.0.194 '}, {name:' name2 ', description : 'desc2', filename: 'filename2'}] ") +"
    "); //2 echo("2.Let's go to the page for browser detection:"); echo(browser.navigate("panopticlick.eff.org/results?&t=111&dnt=111&a=111#fingerprintTable") + "
    "); anchor.click_by_name("showFingerprintLink2"); app.sleep(5); //3 echo("3.Let's set navigaror.plugins:"); echo(browser.set_plugins_info() + "
    "); //4 echo("4.Let's go to the page for browser detection:"); echo(browser.navigate("panopticlick.eff.org/results?&t=111&dnt=111&a=111#fingerprintTable") + "
    "); anchor.click_by_name("showFingerprintLink2"); //end echo("

    "); //Quit app.quit();