with open("./test.html", "w", encoding="utf-8") as f: # with: 上下文管理器 open()函数: 打开一个文件,"w"表示写入模式,encoding指定编码格式 as f: 表示将文件对象赋值给f f.write(response.read().decode("utf-8"))
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:50:00:00:0b:00 brd ff:ff:ff:ff:ff:ff inet6 fe80::250:ff:fe00:b00/64 scope link valid_lft forever preferred_lft forever
# 论文精准搜索 allintitle:("deep learning" OR "neural network") ("medical diagnosis" OR "disease detection") site:scholar.google.com OR site:arxiv.org filetype:pdf 2020..2024 -survey -review
1 2
# 文献综述收集 ("literature review" OR "systematic review") ("climate change" OR "global warming") (site:nature.com OR site:science.org) filetype:pdf after:2022-01-01
1 2
# 作者追踪 author:"Yann LeCun" OR author:"Andrew Ng" ("deep learning" OR "AI") site:arxiv.org filetype:pdf
2. 技术开发场景
1 2
# 开源项目搜索 ("machine learning" OR "AI") ("open source" OR "GitHub") stars:>1000 forks:>100 language:Python OR language:JavaScript site:github.com -tutorial -example
1 2
# API文档定位 ("REST API" OR "GraphQL API") ("authentication" OR "authorization") ("Python" OR "Node.js") site:swagger.io OR site:postman.com OR site:rapidapi.com -blog -news
1 2
# 错误解决方案 ("TypeError" OR "RuntimeError") ("Python 3.8" OR "Python 3.9") ("fix" OR "solution" OR "解决") site:stackoverflow.com OR site:github.com/issues -ask -question
3. 商业分析场景
1 2
# 竞品分析 ("iPhone 15" OR "Samsung S24" OR "Huawei P60") ("review" OR "comparison" OR "评测" OR "对比") (site:cnet.com OR site:theverge.com OR site:zealer.com) after:2023-09-01 -buy -purchase -shop
1 2
# 市场趋势 ("AI startup" OR "artificial intelligence company") ("funding" OR "investment" OR "融资" OR "投资") (China OR Chinese OR 中国) site:crunchbase.com OR site:36kr.com OR site:itjuzi.com 2023..2024
1 2
# 用户反馈 ("product feedback" OR "user review" OR "产品反馈" OR "用户体验") ("mobile app" OR "web application" OR "移动应用" OR "网页应用") site:appstore.com OR site:coolapk.com OR site:meituan.com -spam -junk
4. 新闻与舆情监控
1 2
# 重大事件追踪 ("earthquake" OR "earthquake") ("casualties" OR "damage" OR "伤亡" OR "损失") (site:reuters.com OR site:apnews.com OR site:xinhuanet.com) after:2024-12-27 -site:twitter.com -site:weibo.com
1 2
# 品牌声誉监控 ("腾讯" OR "Tencent") (site:weibo.com OR site:zhihu.com OR site:tieba.baidu.com) (-intext:官方 -intext:官网) (intext:投诉 OR intext:问题 OR intext:差评) after:2024-01-01
1 2
# 政策影响分析 ("data privacy" OR "privacy law") ("China" OR "中国") ("impact" OR "影响") (site:gov.cn OR site:people.com.cn) after:2023-01-01 filetype:pdf
五、网络安全专业搜索指令
1. 漏洞与CVE搜索
1
"CVE-2024-1234" (site:nvd.nist.gov OR site:exploit-db.com OR site:github.com) filetype:pdf OR filetype:md
1
("buffer overflow" OR "stack overflow") ("exploit" OR "poc") site:github.com stars:>100 language:python OR language:c
1
("SQL injection" OR "XSS") ("bypass" OR "evasion") (site:owasp.org OR site:portswigger.net) -tutorial -beginner
2. 威胁情报与恶意软件分析
1
("Emotet" OR "TrickBot" OR "QakBot") ("IOC" OR "indicators of compromise") (site:virustotal.com OR site:hybrid-analysis.com OR site:any.run) filetype:json OR filetype:csv
1
("APT29" OR "Cozy Bear" OR "Fancy Bear") ("threat report" OR "analysis") (site:fireeye.com OR site:crowdstrike.com OR site:mandiant.com) filetype:pdf after:2023-01-01
1
("malware analysis" OR "reverse engineering") ("YARA rule" OR "signature") site:github.com (language:python OR language:yara) stars:>50
3. 安全工具与框架搜索
1
("Metasploit" OR "Cobalt Strike" OR "Empire") ("detection" OR "evasion" OR "AV bypass") site:github.com OR site:exploit-db.com -commercial -paid
1
("Burp Suite" OR "ZAP" OR "OWASP ZAP") ("extension" OR "plugin") ("authentication bypass" OR "SSRF") site:github.com language:java OR language:python
1
("nmap" OR "masscan" OR "zmap") ("script" OR "NSE") ("vulnerability scanning" OR "service detection") site:github.com stars:>100
4. 高级威胁研究
1
("zero-day" OR "0day") ("proof of concept" OR "PoC") ("Windows 11" OR "Linux kernel") site:github.com OR site:packetstormsecurity.com after:2024-01-01 -tutorial -educational
1
("Log4j" OR "SpringShell") ("patch analysis" OR "mitigation") (site:microsoft.com OR site:apache.org OR site:spring.io) filetype:pdf OR filetype:html
1
("network forensics" OR "PCAP analysis") ("Zeek" OR "Bro") ("malware traffic" OR "C2 communication") site:github.com (language:python OR language:zeek) stars:>200
5. 威胁情报专业搜索
1
("APT41" OR "Winnti") ("campaign" OR "operation") ("infrastructure" OR "TTPs") (site:mandiant.com OR site:proofpoint.com) filetype:pdf after:2023-06-01
1
("file hash" OR "MD5" OR "SHA256") ("malicious" OR "known bad") ("IoC") site:virustotal.com OR site:hybrid-analysis.com OR site:malwarebazaar.com
1
("IP blacklist" OR "malicious IP") ("botnet C2") ("ASN") site:blocklist.de OR site:abuseipdb.com OR site:spamhaus.org
6. 云安全与容器安全
1
("AWS" OR "Azure" OR "GCP") ("misconfiguration" OR "security best practices") ("S3 bucket" OR "IAM role") (site:aws.amazon.com OR site:docs.microsoft.com) filetype:json OR filetype:yaml
1
("Docker" OR "Kubernetes") ("security hardening" OR "CIS benchmark") site:github.com (language:go OR language:python) stars:>500
1
("Kubernetes security monitoring" OR "K8s audit logs") ("Falco" OR "kube-bench") ("container escape" OR "privilege escalation") site:github.com/falcosecurity
7. 企业安全防御
1
("Sigma rule" OR "log detection") ("Windows Event Log" OR "Sysmon") ("Mimikatz" OR "PsExec") site:github.com/sigma-hq/sigma
1
("EDR bypass" OR "AV evasion") ("Cobalt Strike") ("process injection" OR "direct syscalls") (site:github.com OR site:specterops.io) -commercial -paid
1
("Active Directory attack" OR "AD exploitation") ("BloodHound" OR "SharpHound") ("ACL abuse" OR "delegation") site:github.com/BloodHoundAD
六、网络安全实战组合示例
1. 漏洞研究与验证
1
("zero-day" OR "0day") ("proof of concept" OR "PoC") ("Windows 11" OR "Linux kernel") site:github.com OR site:packetstormsecurity.com after:2024-01-01 -tutorial -educational
1
("Log4j" OR "SpringShell" OR "ProxyLogon") ("patch analysis" OR "mitigation") (site:microsoft.com OR site:apache.org OR site:spring.io) filetype:pdf OR filetype:html
1
("CVE-2023-1234" OR "CVE-2024-5678") ("exploit code" OR "exploit development") ("x86_64" OR "ARM64") site:exploit-db.com OR site:github.com/gists
2. 网络防御与检测
1
("IDS/IPS" OR "intrusion detection") ("Suricata rule" OR "Snort rule") ("exploit kit" OR "malware delivery") (site:emergingthreats.net OR site:snort.org) filetype:rules OR filetype:json
1
("memory forensics" OR "volatile memory") ("Volatility" OR "Rekall") ("malware detection" OR "rootkit analysis") site:github.com/volatilityfoundation OR site:github.com/google/rekall
1
("Sigma rule" OR "log detection") ("Windows Event Log" OR "Sysmon") ("Mimikatz" OR "PsExec") site:github.com/sigma-hq/sigma OR site:sigma-core.readthedocs.io
3. 红蓝对抗专业搜索
1
("Active Directory attack" OR "AD exploitation") ("BloodHound" OR "SharpHound") ("ACL abuse" OR "delegation") site:github.com/BloodHoundAD OR site:specterops.io -commercial
1
("hunting hypothesis" OR "threat hunting") ("Microsoft Defender") ("process tree" OR "child process") ("Mimikatz" OR "Rubeus") site:github.com/microsoft
1
("domain fronting" OR "CDN bypass") ("Cloudflare" OR "AWS CloudFront") ("C2 channel") (site:github.com OR site:specterops.io) -tutorial -beginner
4. IoT/OT与工业安全
1
("firmware analysis" OR "binwalk") ("router" OR "camera" OR "IoT device") ("backdoor" OR "hardcoded credential") site:github.com (language:python OR language:shell) stars:>300
1
("ICS security" OR "SCADA security") ("Modbus" OR "DNP3") ("protocol analysis" OR "fuzzing") (site:github.com OR site:ics-cert.us-cert.gov) filetype:pcap OR filetype:json
1
("JTAG debugging" OR "UART interface") ("firmware extraction" OR "chip-off") ("ESP32" OR "ARM Cortex") (site:github.com OR site:hackaday.com) -commercial -paid
5. 合规与取证
1
("digital forensics" OR "incident response") ("timeline analysis" OR "artifact collection") ("Windows" OR "Linux") (site:sleuthkit.org OR site:autopsy.com) filetype:pdf OR filetype:html
1
("NIST SP 800-53" OR "NIST Cybersecurity Framework") ("security controls" OR "compliance mapping") site:nist.gov OR site:github.com
1
("GDPR compliance" OR "CCPA compliance") ("data breach notification" OR "incident reporting") ("72 hours") (site:gdpr-info.eu OR site:ccpa-info.com) filetype:pdf
# 避免过度复杂 ❌ 过度复杂:(A OR B OR C) AND (D OR E OR F) AND (G OR H OR I) site:X.com filetype:pdf after:2020-01-01 -J -K -L -M -N ✅ 合理复杂:(A OR B) AND (C OR D) site:X.com filetype:pdf after:2020-01-01 -J -K