TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Shibboleth: Python script to check for known magic bytes at the start of a file

1 点作者 jsharf超过 4 年前

2 条评论

eesmith超过 4 年前
So I have little experience in these things. The first thing I thought is &quot;doesn&#x27;t file&#x2F;magic do this form me&quot;? Eg, <a href="https:&#x2F;&#x2F;github.com&#x2F;file&#x2F;file" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;file&#x2F;file</a> .<p>My cursory view suggests that the shibboleth file could be exported into something that file could parse. But of course there&#x27;s the overhead of all the things which shibboleth doesn&#x27;t try to handle.<p>I then wondered where the signatures came from. My again cursory view shows many file signatures which aren&#x27;t in file&#x2F;magic. Which makes me think they could be folded in.<p>I&#x27;m left wondering. Cursorily.
gregjor超过 4 年前
How is this different from or better than the Linux file utility? <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;File_(command)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;File_(command)</a><p>Shibboleth is the name of a common single sign-on service. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Shibboleth_Single_Sign-on_architecture" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Shibboleth_Single_Sign-on_arch...</a>