Skip to content

Priyanshu19Mishra/XSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

JavaScript Cookie and Flag Data Sender

This script performs the following functionality:

Sends Cookies via POST Request: The script retrieves the browser's cookies using document.cookie and sends them to a specified server URL using an HTTP POST request.

Extracts and Logs Flag Data: It retrieves the text content of a DOM element with the class .flag and logs it to the browser console.

Sends Cookies via GET Request: The script sends the browser's cookies as a query parameter to another server URL using an HTTP GET request.

Usage This script is intended to be run within a web page environment where it can access cookies and DOM elements. Ensure that you replace the placeholder URL with the desired endpoint to which you want to send the data. Note This code demonstrates how to extract cookies and DOM data for transmission to external servers. Use with caution and ensure you comply with privacy and security regulations when handling user data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published