3-XSS渗透与防御
客户端的 Cookie: 记录登录状态,跟踪用户行为
服务端的 Session
JavaScript 操作 Cookie
获取和设置:
document.cookie; |
无法删除,只能通过更改过期时间删除。
脚本注入网页:XSS (Cross Site Script)
<script>alert(1)</script> |
客户端的 Cookie: 记录登录状态,跟踪用户行为
服务端的 Session
获取和设置:
document.cookie; |
无法删除,只能通过更改过期时间删除。
<script>alert(1)</script> |
union 查询需要前后语句查询字段数量相同
order by 字段名/数字
information_schema 库:信息数据库,保存关于 MySQL 服务器维护的所有其他水库的信息
performance_schema 库:数据库服务器性能参数
mysql 库:核心数据库,存储数据库的用户(账户)信息
sys 库:系统数据库,结合了 information_schema 和 performance_schema 库的内容
子域名挖掘:
选取模型为SenseVoiceSmall.
开始运行前首先需要将模型转换为 OpenVINO IR 格式. 原模型为 PyTorch 框架, 可以利用以下代码保存为 ONNX 格式.
onnx_model = onnx.load(model_path) |
也可以直接下载 FunASR 官方提供的SenseVoiceSmall-onnx模型. 准备好 ONNX 格式模型后, 可以利用 OpenVINO 提供的mo或ovc工具将其转换为 OpenVINO IR 格式. 在最新的 OpenVINO 版本中, mo工具已经被更简化的OpenVINO Model Converter即ovc工具所替代.
mo --input_model <INPUT_MODEL>.onnx |
此命令会将模型优化并导出为 OpenVINO IR 格式模型. 注意, --compress_to_fp16默认处于开启状态, 会将模型压缩至 fp16 精度, 正常情况下不会导致明显的精度损失.
可以通过如下代码加载并编译 OpenVINO IR 模型.
配置 Python 环境, 安装 git (用于从 huggingface 下载模型) 后, 运行项目提供的矩阵乘法示例代码:
from intel_npu_acceleration_library.backend import MatMul |
注意到运行程序时有如下提示:
UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. |
查阅资料知是由于新版setuptools弃用旧版语法导致, 卸载并重新安装 67.6.1 版本解决.
该程序计算了一个32×512矩阵和一个512×256矩阵相乘, 输出result.shape结果为
(32, 256) |
知输出结果正确, 代码可正常运行.
作者: TinyLlama/TinyLlama-1.1B-Chat-v1.0
转载请不要注明出处
Ask something: fuck you
Run inference
fuck you you and me.
You can’t go against my opinion and I am just waiting for the next round.
Fast paced rhyming poem for your students to learn and practice how to create a rhyming pattern.
To be perfect and fit.
In your heart and your eyes.
We are not afraid we are not afraid.
Is like a handshake. A hug.
For this is our fight the fight.
So when your head’s just about to burst.
You need this right now and you need this just.
This one for you right now and this one for you right.
No this one for me and this one for you.
Your life is not in danger you can’t feel.
You have a life but that is not all the.
You need to feel. That’s right you feel.
You need to hear. That’s right you hear.
You need to feel. You hear.
You need to feel. You have a life.
不知道为什么, 其实很多事情, 比如实习, 考驾照, 进实验室, 本身可能都没什么难度, 或者至少没什么明显的阻碍, 但一想到这些事情我就会莫名其妙地非常焦虑且烦躁, 然后就硬拖着不做. 很奇怪.
然后反正折腾了一段时间, 现在在深圳的某公司实习, 入职培训一上午说了一堆废话, 然后现在在干坐着等布置任务. 主要是不太方便光明正大打游戏, 不然我已经环世界启动了.
上周日去带了个家教, 在一个从来没听过的小区, 到地方发现条件实在不怎么好, 住宿条件跟老家差不多, 恍惚间还能闻到鸡史味, 导致我实在不好意思多收钱, 底价 430 我只好意思收了 300. 有没有人能给我介绍几个特别讨人厌的有钱人, 让我心安理得地狠狠宰一笔.
run [args] 运行并传参
start 运行到main()开头
break func/地址 在func函数或地址处设置断点
delete 删除断点
info breakpoints 查看断点
info registers 查看所有寄存器
x/s 地址 查看地址处字符串
x/10xw 地址 查看 10 个 4 字节的十六进制
x/20i $rip 查看当前附近的汇编指令
info frame 当前调用栈帧
info locals 查看局部变量 (带符号)
backtrace 查看调用栈