![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-09-25 01:11 |
共 47,813 主题排行 / 349,918 发帖 / 今日 1 篇 / 48,274 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » 菜鸟求教各高手关于html里提取地址的p处理.. |
| 可打印版本 1,057 / 4 |
| 第1楼 crenel | 发表于 2007-04-15 03:58 |
| 新手上路 发帖 6 积分 18 | |
|
菜鸟求教各高手关于html里提取地址的p处理.. 初来报道,先向大家问个好~
潜水几天,在cn-dos上学了不少东西,确实感激各位~ 今天就遇到了个问题 在坛子里搜了几个相关的 但是总有地方想不通...只好劳各位高手的大驾了... 这次主要是想提取html里面的文件地址生成一个.lst文件让JetCar下载.但是html里面的地址长度不一,而且有的还有#一类的符号.实在想不到该怎么提取出来(只想到findstr "\<script.*" XXX.html 但下一步再怎么分离就想不到了...) 还请各位帮小弟解答一下...TAT 不胜感激... 另 附上部分Html内容 是要提取里面的.txt文件地址.... |
|
| 第2楼 slore | 发表于 2007-04-15 04:43 |
| 铂金会员 发帖 2,478 积分 5,212 | |
|
script/32Lite 0.03a OEP Finder v0.1.txt
script/32LITE 0.03A OEP-FINDER V.0.1.txt script/ActiveMark 5.4x Level 2 EP Finder + Fix CRC.txt script/ActiveMark 5.4x Remove Selfchecks.txt script/ActiveMark 5.xx Level 2 EP Finder.txt script/ActiveMark Level 2 EP Finder.txt script/ActiveMark Patching Script.txt script/activemark54x.txt script/AddrEnc.txt script/AHpack 0.1 OEP Finder .txt script/AHTeam EP Protector 0.3a.txt script/AHTeam EP Protector 0.3b.txt script/Alex Protector 1.0 Beta 2 Fix IAT + Remove Junk Code v0.1.txt script/ALEX PROTECTOR 1.0 BETA2 V0.1.txt script/ALEX Protector1.0.txt script/AM.level2.ep.finder.txt script/AM.patching.script.txt script/arm IAT Elimination.txt script/ARM PROTECTOR 0.1 - EXE SHIELD 0.8 OEP FINDER.txt script/ARM Protector 0.1 OEP Finder.txt script/arm_3x_dll.txt script/arm_3x_unpack.txt script/arm_4x_debug_blocker_copymem_oep_finder.txt script/arm_4x_oep_finder.txt script/arm_anti_dump.txt script/arm_code_splicing_unpack.txt script/arm_copymem.txt script/arm_detach.txt script/arm_detach_1000_bytes_method.txt script/arm_detective.txt script/arm_getmodule.txt script/arm_magic_jump.txt script/arm_oep_finder.txt script/arm_open_mutexa.txt script/arm_script_rica.txt script/arm_standard.txt script/arm_va_finder.txt script/arma4.30a.txt script/Armadillo 3.6x - 4.xx OEP Finder + Fix Magic Jumps.txt script/Armadillo 3.70 Unpack.txt script/Armadillo 3.xx - 4.00 Nanomites VA Finder v1.0.txt script/Armadillo 3.xx DLL Unpack v0.1.txt script/Armadillo 3.xx Unpack (Standard Protection) v0.1.txt script/Armadillo 4.20 Public Builds OEP Finder (only for CopyMem2 + Debug Blocker).txt script/Armadillo 4.30a - standard script.txt script/Armadillo 4.30a Simple Unpacking Script.txt script/Armadillo 4.42 CopyMem2 Decrypt Code Sections.txt script/Armadillo 4.42 CopyMem2 Detach from Client + Fix Import Table Elimination.txt script/Armadillo 4.xx CopyMem2 (Fix IAT).txt script/Armadillo 4.xx OEP Finder.txt script/Armadillo ArmVar.txt script/Armadillo CheckFlags v2.txt script/Armadillo Detach from Client + Unpack (Hipu 1000 Bytes Method).txt script/Armadillo Detach from Client + Unpack (Ricardo 1000 Bytes Method) v0.1.txt script/Armadillo Detach from Client + Unpack (Tenketsu 1000 Bytes Method) v0.1.txt script/Armadillo Detach from Client.txt script/Armadillo Detach.txt script/Armadillo Detective (Debug Blocker or CopyMem2).txt script/Armadillo Detective v1.00.txt script/Armadillo Find Nag.txt script/Armadillo IAT Destruction.txt script/Armadillo IAT Eliminator.txt script/Armadillo IAT Script v2.txt script/Armadillo Magic Jump Finder.txt script/Armadillo NanoTables v2.txt script/Armadillo OEP Finder (CopyMem2).txt script/Armadillo OEP Finder + Fix Magic Jumps + Fix Anti-Dump.txt script/Armadillo OpenMutexA.txt script/Armadillo Repair IAT Elimination.txt script/Armadillo Standard (Pause).txt script/Armadillo Standard Unpack (Specific).txt script/Armadillo Standard Unpack + Strategic Code Splicing.txt script/Armadillo Standard Unpack.txt script/armcopy2-1.txt script/asp2.1oep.txt script/ASPack (a).txt script/ASPack (b).txt script/ASPack 1.08.02 OEP Finder.txt script/ASPACK 1.X-2.X OEP FINDER V.0.1.txt script/ASPack 2.11 OEP Finder.txt script/ASPACK 2.12 [DeAtH HaS cOMe].txt script/ASPACK 2.12 [dOsKey].txt script/ASPACK 2.12 [hacnho[VCT2k4]].txt script/ASPACK 2.12 [Reverend].txt script/ASPack 2.12 DLL Unpack Finder.txt script/ASPACK 2.12 DLL UNPACK SCRIPT.txt script/ASPack 2.12 OEP Finder #1.txt script/ASPack 2.12 OEP Finder #3.txt script/aspack.txt script/ASPACKDLL.txt script/aspoepgen.txt script/ASPr_API.txt script/Aspro2_AIP2.txt script/ASPROTECT #1 BP LASTEX.txt script/ASPROTECT #2 STOLEN BYTES.txt script/ASPROTECT #3 LASTEX.txt script/ASPROTECT #4 OEP-FINDER.txt script/ASPROTECT #5 ANTI-DEBUG LASTEX.txt script/ASProtect 1.0 OEP Finder.txt script/ASPROTECT 1.0 UNPACKING SCRIPT 0.1.txt script/ASPROTECT 1.2 - 1.2c OEP-FINDER.txt script/ASProtect 1.20 - 1.20c OEP Finder.txt script/ASPROTECT 1.2-1.2C OEP FINDER V.0.1.txt script/ASProtect 1.22 - 1.23 Beta 21 - Find OEP and stolen bytes.txt script/ASProtect 1.22 - 1.23 Beta 21 - Find target's OEP.txt script/ASPROTECT 1.22 - 1.23 BETA 21 [1].txt script/ASPROTECT 1.22 - 1.23 BETA 21 [2].txt script/ASProtect 1.22 - 1.23 Beta 21 OEP Finder and Stolen Bytes.txt script/ASProtect 1.22 - 1.23 Beta 21 OEP Finder v0.1b.txt script/ASProtect 1.22 - 1.23 Beta 21 OEP Finder.txt script/ASPROTECT 1.22 - 1.23 BETA 21-RC1.txt script/Asprotect 1.23 RC4 Anti-Debug + Last Exception.txt script/ASPROTECT 1.23 RC4 OEP-FINDER.txt script/Asprotect 1.23 RC4.txt script/ASProtect 1.2x - 1(1).txt script/ASProtect 1.2x - 1.3x (Registered) OEP Finder & Olly Hide.txt script/ASPROTECT 1.2x - 1.3x [REGISTERED] 2.txt VB里的代码,你自己转成vbs…… Option Explicit Private Sub Command1_Click() Dim OutStr As String, StrOut() As String OutStr = Replace(Text1, "<td align=""left""><a href=""", "SLore") StrOut = Split(OutStr, "SLore") OutStr = Empty Dim i As Integer For i = 1 To UBound(StrOut) OutStr = OutStr & Mid(StrOut(i), 1, InStr(StrOut(i), """>") - 1) & vbCrLf Next Text1 = OutStr End Sub |
|
| 第3楼 vkill | 发表于 2007-04-15 05:26 |
| 金牌会员 发帖 1,744 积分 4,103 来自 甘肃.临泽 | |
|
查找并下载
sed "/<a href=/!d;s/.*<a href=\x22\(*\)\x22>.*/\1/;s/^/http:\/\/*.com\//" life|wget -i "-" [ Last edited by vkill on 2007-4-15 at 05:28 AM ] |
|
| 第4楼 20080610 | 发表于 2007-04-15 06:44 |
| 初级用户 发帖 34 积分 83 | |
|
可以利用一些规律提取.
|
|
| 第5楼 crenel | 发表于 2007-04-15 15:20 |
| 新手上路 发帖 6 积分 18 | |
|
谢谢各位大大...~~刚回家就看到回复 好感动 ~~ TAT
跪拜... m(_ _)m 原来一开始只想着在批处理里面完成...完全没考虑到VBS.... 多谢Slore大哥提醒... 竟然忘了自己学base出身...惭愧啊... T T 至于sed 因为本机没有 所以暂时放下没去测试 之后再补全相关得资料~ 先记下代码 嘻嘻 这里先谢谢vkill啦 对于20080610的思路...佩服...不过针对现实中的情况 我修改了一下 毕竟处理html文件时候 不是全部链接都是我们关心的 right?有不对的 请各位指出啦 赫赫 另 不是太懂...只是大概知道取★后一位开始的字符串 以及除去倒数第一个引号及之后内容...但是具体的意思还不太懂... 另...如果用findstr或for /f 改写的话 都遇到了 字符串包含< & 符号的问题...现在还没搞懂...查资料ing... = = [ Last edited by crenel on 2007-4-15 at 03:56 AM ] |
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |