Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Sep 24, 2023
1 parent 4015d0e commit b4f9215
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hosted-network-filtering-hr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Hosted: Network Filtering with Harden-Runner"
on:
workflow_dispatch:

push:
jobs:
build:
runs-on: ubuntu-latest
Expand Down
8 changes: 7 additions & 1 deletion src/malware-simulators/exfiltration-simulator/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ const https = require("https");

https
.get("https://pastebin.com/", (res) => {
if (res.statusCode < 200 || res.statusCode >= 300) {
console.error("HTTP Error: " + res.statusCode);
process.exit(1); // Exit with a failure code on HTTP error status
}

let data = "";

res.on("data", (chunk) => {
Expand All @@ -13,5 +18,6 @@ https
});
})
.on("error", (err) => {
console.log("Error: " + err.message);
console.error("Error: " + err.message);
process.exit(1); // Exit with a failure code
});

0 comments on commit b4f9215

Please sign in to comment.