Shadow Workers is a free and open source C2 and proxy designed for penetration testers to help in the exploitation of XSS and malicious Service Workers (SW)
The SW dom poisoning by fetch event currently unregister and re-register the existing malicious Service Worker for the domain, in order to re-trigger the sync and wake it up.
In Chrome, when unregistering and re-registering, the previous agentID string that was saved in IDB does not get lost.
In Firefox, when trigger the re-registration, a new agentID is generated, rather than using the previous one stored in agentID.