feat: initial commit of Ghaymah internal DNS, TCP and security testing suite and report
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
const fs = require('fs');
|
||||
const tokenData = JSON.parse(fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/token.json', 'utf8'));
|
||||
|
||||
async function main() {
|
||||
const res = await fetch('https://graphql.ghaymah.systems/v1/graphql', {
|
||||
method: 'POST',
|
||||
headers: { 'Authorization': 'Bearer ' + tokenData.token, 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
query: `query {
|
||||
ghaymah_cloud_resources_by_pk(id: "af1b9e91-9bec-4d6a-b76c-92d7273b82ce") {
|
||||
id
|
||||
chart_name
|
||||
chart_version
|
||||
status
|
||||
message
|
||||
user_id
|
||||
deleted
|
||||
created_at
|
||||
updated_at
|
||||
values
|
||||
}
|
||||
}`
|
||||
})
|
||||
});
|
||||
console.log(JSON.stringify(await res.json(), null, 2));
|
||||
}
|
||||
main().catch(console.error);
|
||||
Reference in New Issue
Block a user