Browse Source

Test reverseShell returns shell code with /host:port variables

pull/4/head
Luke Childs 7 years ago
parent
commit
daca9b93b9
  1. 8
      test/test.js

8
test/test.js

@ -4,3 +4,11 @@ import reverseShell from 'this';
test('reverseShell is a function', t => { test('reverseShell is a function', t => {
t.is(typeof reverseShell, 'function'); t.is(typeof reverseShell, 'function');
}); });
test('reverseShell returns shell code with /host:port variables', t => {
const req = {
url: '/foo:bar'
};
const returnValue = reverseShell(req);
t.true(returnValue.indexOf('("foo",bar)') > -1);
});

Loading…
Cancel
Save