mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2025-01-11 23:45:36 +08:00
Debugging
This commit is contained in:
parent
27dad24873
commit
61b34d0c56
@ -9,6 +9,7 @@ function javaversion(callback) {
|
|||||||
spawn.on('error', (err) => callback("Java Not Installed", null));
|
spawn.on('error', (err) => callback("Java Not Installed", null));
|
||||||
spawn.stderr.on('data', (data) => {
|
spawn.stderr.on('data', (data) => {
|
||||||
data = data.toString().split('\n')[0];
|
data = data.toString().split('\n')[0];
|
||||||
|
return callback(data, undefined)
|
||||||
var javaVersion = new RegExp('java version').test(data) ? data.split(' ')[2].replace(/"/g, '') : false;
|
var javaVersion = new RegExp('java version').test(data) ? data.split(' ')[2].replace(/"/g, '') : false;
|
||||||
var openJDKVersion = new RegExp('openjdk version').test(data) ? data.split(' ')[2].replace(/"/g, '') : false;
|
var openJDKVersion = new RegExp('openjdk version').test(data) ? data.split(' ')[2].replace(/"/g, '') : false;
|
||||||
if (javaVersion || openJDKVersion) {
|
if (javaVersion || openJDKVersion) {
|
||||||
|
Loading…
Reference in New Issue
Block a user