Skip to content

Commit

Permalink
Command Injection - array
Browse files Browse the repository at this point in the history
  • Loading branch information
EffectRenan committed Feb 13, 2021
1 parent 1e3b479 commit 1392644
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/processes.js
Expand Up @@ -111,14 +111,12 @@ function services(srv, callback) {
srvString.__proto__.trim = util.stringTrim;

const s = util.sanitizeShellString(srv);
console.log(s)
for (let i = 0; i <= 2000; i++) {
if (!(s[i] === undefined)) {
srvString = srvString + s[i];
}
}

console.log(srvString)
srvString = srvString.trim().toLowerCase().replace(/, /g, '|').replace(/,+/g, '|');
if (srvString === '') {
srvString = '*';
Expand Down

0 comments on commit 1392644

Please sign in to comment.