先選中一個你想 「偷」 的網頁程序。。。
6 d) f" x+ A; v2 e- `; _3 M- H我這裡看中了它。。呵呵 。。。很多妹妹圖片。。。口水中。。- u8 z: H* |) G
http://www.linkmm.com/photo/ads2.html# V; K" @7 T& z" I% I, m) A
然後建立個ASP網頁,先把以下代碼複製進去
9 U3 `1 r$ g* w" [2 t<%Function bytes2BSTR(vIn)
% B9 I/ q* n5 n, p( VstrReturn = ""
; B7 L5 T. L. z! i, }" S( t! k" w5 JFor i = 1 To LenB(vIn) - {- I9 o3 [5 h) Y1 v
ThisCharCode = AscB(MidB(vIn,i,1))
: ~# o: {' d; ~7 e* w+ ~8 Y8 QIf ThisCharCode < &H80 Then
: ^- D) a; e6 B& w6 o' b6 A( X( DstrReturn = strReturn & Chr(ThisCharCode) $ `$ g4 Z7 V7 D. x1 A" @
Else . _2 m- U7 F8 v: `7 B7 U
NextCharCode = AscB(MidB(vIn,i+1,1))
! T7 x; k) A/ Q N* a8 astrReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
* @- g) l; l3 [) R1 \# o; vi = i + 1 $ F$ I4 x4 l8 }7 u4 L: S! V
End If , F ` l8 @ J: k
Next
! K. G' L3 ?0 r7 `! e' P/ ~( Gbytes2BSTR = strReturn 6 e% @8 y. b$ q4 l3 Z* E7 g
End Function 4 W" ^4 a6 t6 ]- m0 m0 s. P
/ H$ I. |2 t9 d
+ R0 ]. x7 o0 U0 I$ j+ WUrl = "http://www.linkmm.com/photo/ads2.html";7 L4 V$ ^4 B! t9 l. P+ i( `
set oSend=createobject("Microsoft.XMLHTTP")
9 P2 [9 d& g5 e/ O" VSourceCode = oSend.open ("GET",url,false)
7 E, n& f$ ~4 t$ poSend.send(), o9 j; X; x1 m3 ?4 k R& k6 i
if err.number<>0 then
8 x( W3 }( }, U* Y8 FResponse.write err.description
4 c5 o: q6 [1 ?5 V$ T. e% v* KResponse.End()
. E& M9 h, @) v6 C; D& ^! t4 mend if
3 s2 x: q% y* y4 p0 Y# |9 LSourceCode = bytes2BSTR(oSend.responseBody)%>
% u* y9 z3 Q$ z) ~' S# [$ r$ U, [/ j% z: P: B8 h/ X1 ?) ~# P
其中Url = "http://www.linkmm.com/photo/ads2.html";就是你想要 偷 的網頁,換成你需要的就可以了。。* k; y2 g9 D/ o( f! q
這個時候response.write 一下。。是不是很多圖片看不見啊。。不急,我們有replace呢。。把你現在的網頁查看下原文件,,把原來的網頁查看下願文件對比下就知道怎麼讓這些無法顯示的顯示出來。。。比起那些一個個replace替換圖片的方法- H, q, u' C4 R9 [9 Q" F
用這個方法好多了就是在有src的地方在他前面直接替換網址多方便呵呵。。
* C& |9 p8 U+ p( j. c! E0 y在寫這段代碼。。程序就完了呵呵
# K* p/ S; V- _4 p; n<%baseurl1="http://www.linkmm.com/photo";
4 }. G, k: Q- nSourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)
5 {: x! \ w2 JSourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")0 w9 H7 o) c. q( ]
SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)
L% O9 n2 h9 `2 _7 _" oSourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)9 X$ o1 l6 F) z
response.write SourceCode%>9 Q' ~ e+ S, b: [' a# i# m
6 V* V; i# Q( B; j( F( O7 i; s% p6 b是不是很簡單啊。不懂的聯繫我52596464
3 |0 }6 B+ g1 `' P完整代碼如下:
/ q) M( t- f2 a& A5 ?<html>
8 \4 T' p( d' u5 X5 c8 U* O, l7 `7 K- b- R: Z4 ^1 B
<head>9 c, A1 F6 X9 a2 h/ t
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">0 a$ j) r7 n1 C+ X7 j
<meta name="ProgId" content="FrontPage.Editor.Document">
$ H( u, W4 \7 w7 i. F$ F% ?<meta http-equiv="Content-Type" content="text/html; charset=gb2312">0 e2 s* v& U1 T
<meta http-equiv="refresh" content="3600">1 L: \8 m; |4 _. K+ b* i" Z, g
<title></title>- {" ?5 F9 u, ]" W2 g6 i9 ~; e
</head>: Z* S8 C5 ?( H( A( c4 P
' \! T$ H O9 k! | d<body>
1 ?6 u Z9 H. f& U( ?1 D3 `. H5 u
X6 x. m, z5 L. {<%1 F; A ?- v% w9 y- n. Q: g- p( b
Function bytes2BSTR(vIn) & i4 o. @0 R, L \ i5 m# E+ I
strReturn = "" 4 Y" ~, n) O4 L2 e+ {; B
For i = 1 To LenB(vIn)
2 `/ @; I% y4 N4 m0 ZThisCharCode = AscB(MidB(vIn,i,1)) ' B2 Z. F* @/ \! L1 b% s
If ThisCharCode < &H80 Then % P5 ~$ a: V, [( H5 S
strReturn = strReturn & Chr(ThisCharCode) 0 T( J/ u8 C! n: g& Z# O
Else ' I: i9 D: \& |3 T, \3 H9 G* r
NextCharCode = AscB(MidB(vIn,i+1,1)) % \. p7 p# D- m" S
strReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) & s* ~4 z8 T( ]" ~
i = i + 1
; h( v8 Z. u; v+ J$ B5 O2 Y: }End If * z$ ]8 x( V ^/ C/ I
Next
/ w4 w. q9 o4 sbytes2BSTR = strReturn , W! h# u" {- {6 L4 U+ R @7 w
End Function
* D! [0 y4 y5 v$ X
+ n3 I( O ]5 F* O/ BUrl = "http://www.linkmm.com/photo/ads2.html";
* c/ m" v0 ~- K2 }set oSend=createobject("Microsoft.XMLHTTP")
5 l" R- M8 r: |2 t- c& U# N7 H, G" ?SourceCode = oSend.open ("GET",url,false)
+ x/ s$ |6 S) V' qoSend.send()* ~2 n R# z! e+ V' W/ Z' J
if err.number<>0 then
. L4 w. h# G! O2 BResponse.write err.description: _7 H5 ?! I# v) z% H; ]) s6 _
Response.End()
% v& r( D3 e8 s- Gend if . q3 L0 b9 G6 R* R1 V2 E7 y
SourceCode = bytes2BSTR(oSend.responseBody)# b2 m2 X y5 a3 y0 q
baseurl1="http://www.linkmm.com/photo";
; n. {; y" `- E; G0 ]9 MSourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)
2 x. {' J0 P. ^) L) l& S9 s+ YSourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
% d) z2 k6 `' y r. L, VSourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)" Y# t: o1 v& [$ @
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)4 e- }6 h& T: R2 e$ A _3 a
response.write SourceCode- F4 j, ]6 ]; m/ m
%>% `) c, Y% a/ ^" w- ^% k {
</body>
+ B) V, c# n. J+ o; Q1 p
& s# R# `& W# P$ @. f% y</html> |
|