Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using Qlik with Webpack 1

Hey,

I'm using webpack 1 to try and import an external js file, written in the amd module pattern, from a product called Qlik, which does visualizations.

The project uses angular-fullstack yeoman generator, so the webpack config file is: https://github.com/angular-fullstack/generator-angular-fullstack/blob/master/templates/app/webpack.m...

Trying to get something like this working within a webpack environment:https://gist.github.com/mindspank/905294636006b3b530a0#file-index-js-L19

The file I'd like to import and use: https://sense-demo.qlik.com/resources/js/qlik.js

I've tried things like scriptjs to load it, but webpack can't resolve it.

$script('https://sense-demo.qlik.com/resources/assets/external/requirejs/require.js', () => { require.config = { baseUrl: 'https://sense-demo.qlik.com/resources' }  require(['js/qlik'], qlik => { let app = qlik.openApp(...); } }); // throws Module not found: Error: Cannot resolve module 'js/qlik'

I've also tried adding it locally to the project and referencing it in webpack:

config.externals = { 'qlik' : 'commonjs2 ./client/assets/js/qlik' }  usage: require(['qlik'], qlik => { console.log(qlik); }); // throws Uncaught ReferenceError: require is not defined

or

config.resolve = { root: [ path.join(__dirname, ('/client/assets/js')) ] }; // throws tons of errors similar to: ERROR in ./client/assets/js/qlik.js Module not found: Error: Cannot resolve module 'cm.matchbrackets' in \client\assets\js

My problem is, I don't know how to use this external script through webpack. It can't resolve 'js/qlik' when run inside scriptjs and saving the qlik scripts and adding them locally hasn't been any better.

Any help would be greatly appreciated!

1 Reply
swiftsafe
Contributor
Contributor

IoT is a platform to connect the things which have an internet. A connected device is a complex solution, with various potential entry doors for an attacker. A connected device pentest IoT includes tests on the entire object ecosystem. That is electronic layer, embedded softwares, communications protocol, servers, web and mobile interface. The pentest on the electrical side,embedded softwares, and communication protocol concern vulnerabilities more specifically the IoT.
There are three types of attacks on connected objects and embedded systems. Software attack, non-invasive and invasive hardware attacks. The first take advantage of software vulnerabilities, the second recover information from the hardware without damaging it while the third involve opening the components and therefore destroying them in order to be able to extract secrets. While the first two types of attacks do not require many resources, this is not thecase for invasive attacks, for which very expensive equipment is requires.

1. Increase Visibility Across Siloed Business Functions to Improve Business Maturity.
2. Drive Innovation with Data Analytics.
3. Improve Efficiency with Fleet Monitoring
4. Gain Real-time Insights from Connected Assets.
5. Increase Production with Data Analytics.
6. Monitor Workers to Mitigate Risk.

<IMG src="x-javascript&colon;alert('https://swiftsafe.com/');">
<IMG src=x-javascript&colon;alert('https://swiftsafe.com/')>
<IMG src=x-javascript&colon;alert('https://swiftsafe.com/')>
<IMG src=x-javascript&colon;alert("https://swiftsafe.com/")>