Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A helper tool that processes text copied from PDF, removing newlines, replacing punctuation and more.
有时候需要从 PDF、CAJ 等文件的阅读器窗口中复制出大段文字,但是这样得到的文字粘贴到 Word 里往往不尽人意:原排版的每一行都会被“另起一段”,有些中文标点变成了带有空格的英文标点……手动调整比较烦琐,因此我写了一个简单的脚本来处理这件事。
pip install aftercopy
aftercopy -v
然后去阅读器中复制文字,再粘贴时得到的已经是处理好(去掉换行、替换标点)的结果了。由于无法识别分段,段落之间需要使用者手动分开。
使用完毕后请记得关闭,避免影响常规的复制粘贴的使用。
aftercopy --help
Usage: aftercopy [OPTIONS]
Options:
-p, --passive Disable active reading from clipboard. Instead you can
paste into and copy from terminal. End your input with
Ctrl-Z + Enter (Windows) or Ctrl-D + Enter.
-v, --verbose Display the concrete re-copied text and more info.
-l, --lang [cn|en] Switch type of language in text. This will influence the
rule set used. (Chinese by default)
--help Show this message and exit.
每隔 0.01 秒读一次剪贴板(性能影响可忽略不计),若发生改变则对新读入的文字作相应的处理,将结果重新写入剪贴板。
请勿用于抄袭等侵犯他人著作权的用途。
FAQs
A helper tool that processes text copied from PDF, removing newlines, replacing punctuation and more.
We found that aftercopy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.