feat: complete multi-microservice project deployment, internal DNS, raw TCP and security penetration report
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const { RemoteTerminal } = require('./remote_exec');
|
||||
|
||||
async function main() {
|
||||
const term = new RemoteTerminal();
|
||||
await term.connect();
|
||||
console.log('Connected to soc-tester pod!');
|
||||
|
||||
console.log('--- Probing soc-backend internal port 7681 ---');
|
||||
const res = await term.exec('nc -zv -w 3 soc-backend-d1895c70f6b2 7681 2>&1');
|
||||
console.log('NC:', res.output);
|
||||
|
||||
console.log('--- HTTP GET from soc-tester to soc-backend:7681 ---');
|
||||
const curl = await term.exec('curl -sI http://soc-backend-d1895c70f6b2:7681/ | head -n 5');
|
||||
console.log('CURL HEAD:', curl.output);
|
||||
|
||||
term.close();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
Reference in New Issue
Block a user