小编Spo*_*oky的帖子

如何回显包含双引号的文本

我需要回显一些文字。喜欢text "hey"

如果我尝试将代码echo "text "hey""输出为text hey

那么,如何显示双引号呢。谁能帮我这个。

linux bash echo

8
推荐指数
1
解决办法
2万
查看次数

通过 github 操作将更改推送到我自己的公共存储库时出现错误

通过 GitHub 操作将更改推送到我自己的公共存储库时,我收到此错误。

remote: Permission to spooky/repo.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/spooky/repo/': The requested URL returned error: 403
Error: Process completed with exit code 128.
Run Code Online (Sandbox Code Playgroud)

操作中的提交代码是

     - name: Commit Output files
        run: |
              git config remote.origin.url 'https://github_token@github.com/spooky/repo/'
              git config --local user.email "spook@gmail.com"
              git config --local user.name "spook"
              git init
              git add .
              git commit -m "Updated"
              git push origin main

- name: Push changes
        uses: ad-m/github-push-action@master
        with:
          github_token: github_token
Run Code Online (Sandbox Code Playgroud)

我也尝试过git config remote.origin.url 'https://username:github_token@github.com/spooky/repo/',得到同样的错误(GitHub 令牌具有所有权限)。

谁能帮我解决这个问题吗?

git github git-push github-actions

6
推荐指数
2
解决办法
2744
查看次数

如何防止恶意pdf上传(PDF查看器跨站脚本)

在我的网站上,我有一个具有文件上传功能的表单。但是,它可以上传恶意文件pdf文件来执行跨站脚本攻击。

\n

参考此pdf https://github.com/osnr/horrifying-pdf-experiments

\n

在此输入图像描述

\n

有什么办法可以在上传过程中防止这种pdf文件出现。

\n

那个pdf代码

\n
%PDF-1.3\n%\xc3\xa2\xc3\xa3\xc3\x8f\xc3\x93\n1 0 obj\n<</Pages 2 0 R /Type /Catalog>>\nendobj\n2 0 obj\n<</Count 1 /Kids [3 0 R] /Type /Pages>>\nendobj\n3 0 obj\n<</AA\n  <</O\n  <</JS\n  (\ntry {\n  app.alert\\("XSS"\\)\n} catch \\(e\\) {\n  app.alert\\(e.message\\);\n}\n    )\n  /S /JavaScript>>>>\n  /Annots [] /Contents 4 0 R /MediaBox [0 0 612 792] /Parent 2 0 R\n  /Resources\n  <</Font <</F1 <</BaseFont /Helvetica /Subtype /Type1 /Type /Font>>>>>>\n  /Type /Page>>\nendobj\n4 0 obj\n<</Length 21>>\nstream\n\nBT\n/F1 24 Tf\nET\n    \nendstream\nendobj\nxref\n0 5\n0000000000 65535 f\n0000000015 00000 n\n0000000062 00000 n\n0000000117 …
Run Code Online (Sandbox Code Playgroud)

pdf xss upload

6
推荐指数
0
解决办法
3099
查看次数

标签 统计

bash ×1

echo ×1

git ×1

git-push ×1

github ×1

github-actions ×1

linux ×1

pdf ×1

upload ×1

xss ×1