feat: initial commit of Ghaymah internal DNS, TCP and security testing suite and report
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const fs = require('fs');
|
||||
const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8');
|
||||
|
||||
const idx = content.indexOf('qe=async je=>Le');
|
||||
if (idx !== -1) {
|
||||
// search forward for return { ... qe
|
||||
const returnIdx = content.indexOf('createApp:', idx);
|
||||
if (returnIdx !== -1) {
|
||||
console.log('Return context:');
|
||||
console.log(content.substring(returnIdx - 50, returnIdx + 500));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user