eviltik / evilscan

NodeJS Simple Network Scanner
https://github.com/eviltik/evilscan
MIT License
547 stars 64 forks source link

Uncaught TypeError: Cannot read property 'destroy' of undefined #58

Closed justintaddei closed 5 years ago

justintaddei commented 5 years ago

Updated electron and encountered this error:

Uncaught TypeError: Cannot read property 'destroy' of undefined .../TcpScan.js:121

devtools1

devtools png

Code to reproduce:

const evilscan = require('evilscan')

var options = {
    target:'10.0.0.0/24',
    port: 9100,
    status:'O', // Timeout, Refused, Open, Unreachable
    banner:true
};

var scanner = new evilscan(options);
var dataArr = [];
scanner.on('result',function(data) {
    // fired when item is matching options
    dataArr.push(data);
    console.log(data);
});

scanner.on('error',function(err) {
    throw new Error(data.toString());
});

scanner.on('done',function() {
    console.log('Done!', dataArr)
});

scanner.run();

This is my environment:

devtools2

If you need anything else to help fix this, let me know.

eviltik commented 5 years ago

thank you @justintaddei

1.7.2 published

Perhaps 1.7.3 because of other npm packages update.

eviltik commented 5 years ago

Please wait. 1.7.3 on the road, but some tests fail with geoip

eviltik commented 5 years ago

1.7.3 published

justintaddei commented 5 years ago

Excellent. Will update when I get home.

Thank you for the quick response!