⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spam-lookup.sh

📁 一本完整的描述Unix Shell 编程的工具书的所有范例
💻 SH
字号:
#!/bin/bash# spam-lookup.sh: Look up abuse contact to report a spammer.# Thanks, Michael Zick.# Check for command-line arg.ARGCOUNT=1E_WRONGARGS=65if [ $# -ne "$ARGCOUNT" ]then  echo "Usage: `basename $0` domain-name"  exit $E_WRONGARGSfidig +short $1.contacts.abuse.net -c in -t txt# Also try:#     dig +nssearch $1#     Tries to find "authoritative name servers" and display SOA records.# The following also works:#     whois -h whois.abuse.net $1#           ^^ ^^^^^^^^^^^^^^^  Specify host.  #     Can even lookup multiple spammers with this, i.e."#     whois -h whois.abuse.net $spamdomain1 $spamdomain2 . . .#  Exercise:#  --------#  Expand the functionality of this script#+ so that it automatically e-mails a notification#+ to the responsible ISP's contact address(es).#  Hint: use the "mail" command.exit $?# spam-lookup.sh chinatietong.com#                A known spam domain.# "crnet_mgr@chinatietong.com"# "crnet_tec@chinatietong.com"# "postmaster@chinatietong.com"#  For a more elaborate version of this script,#+ see the SpamViz home page, http://www.spamviz.net/index.html.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -