先選中一個你想 「偷」 的網頁程序。。。. {/ {: k& L/ J, l
我這裡看中了它。。呵呵 。。。很多妹妹圖片。。。口水中。。5 h0 y2 w% s+ {- h# L0 z0 o$ \& `
http://www.linkmm.com/photo/ads2.html$ _4 N( l; S [- Q9 O4 \
然後建立個ASP網頁,先把以下代碼複製進去
& z' ^4 f5 N! T* s5 O<%Function bytes2BSTR(vIn)
; Q L& k+ x- T! }4 x. g' C$ zstrReturn = ""
2 @" A7 y0 S: i2 nFor i = 1 To LenB(vIn)
9 E. c1 Y2 a# y2 s: N2 v; BThisCharCode = AscB(MidB(vIn,i,1))
2 Q p. `2 [$ q# w5 |1 t! W! E2 `If ThisCharCode < &H80 Then 8 Y9 M' `9 r' A( s8 j
strReturn = strReturn & Chr(ThisCharCode) # k* Q y& ]) i# ^! S
Else # q' d b! T. Q* A! }5 E2 y+ J
NextCharCode = AscB(MidB(vIn,i+1,1))
: d/ ^5 K/ x+ N4 CstrReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) {. S7 _9 u4 c1 H1 P2 a6 k
i = i + 1 / S8 e G2 P5 j! j% d0 p
End If
6 \3 ?& n3 w2 A+ _# Z0 G9 |# ~Next 7 `8 J! W& K2 L/ v4 S$ M. n
bytes2BSTR = strReturn
/ b3 Q9 v% a& e g1 \End Function
5 _9 P' q x2 T. c1 c" \
" ~( |! X* o$ H9 ~2 J/ C1 c4 b. f8 {) E. P. A/ ^1 h4 J) C2 s
Url = "http://www.linkmm.com/photo/ads2.html";4 E- `$ c+ |6 I
set oSend=createobject("Microsoft.XMLHTTP")
- p0 [" o( y: K; _' g$ v8 _5 }SourceCode = oSend.open ("GET",url,false)
5 Y( z; x4 F7 u/ Y# }oSend.send()9 y2 G% c& O# R) m# M
if err.number<>0 then
6 F( w" Q9 f, NResponse.write err.description# O2 y$ U& C0 s- B
Response.End()5 U2 {; k+ X5 q1 U
end if $ r3 }3 [' q. S
SourceCode = bytes2BSTR(oSend.responseBody)%>6 a1 m1 U7 H2 ]! c* u1 ~
2 s7 b' R+ Y- n# r$ }- ]! N其中Url = "http://www.linkmm.com/photo/ads2.html";就是你想要 偷 的網頁,換成你需要的就可以了。。/ n1 C' a5 Q8 J: N1 r
這個時候response.write 一下。。是不是很多圖片看不見啊。。不急,我們有replace呢。。把你現在的網頁查看下原文件,,把原來的網頁查看下願文件對比下就知道怎麼讓這些無法顯示的顯示出來。。。比起那些一個個replace替換圖片的方法7 u+ u+ D3 F j) k' q, u
用這個方法好多了就是在有src的地方在他前面直接替換網址多方便呵呵。。
: @5 C& m5 ~9 [8 ^: W在寫這段代碼。。程序就完了呵呵% i, o8 v) x1 u* Q
<%baseurl1="http://www.linkmm.com/photo";. K# z4 i" i; a% {8 V8 }& V
SourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)3 z6 X* ?' `: B6 F3 E+ [
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
4 R$ k! z: G/ QSourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)
! H1 Q4 ]- h# [3 ?" uSourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)
. h. s; `/ N- T, G8 b: K& \response.write SourceCode%>( I- T/ b& i) l* z
2 Z" ]1 N9 T/ h$ v3 w/ u' p6 M, p1 P
是不是很簡單啊。不懂的聯繫我52596464: Z m1 j, K1 ?( y- z1 b
完整代碼如下:9 d0 Q8 k; y; Y: B& h
<html>
& N( ~5 V# I8 q* O
: v1 b6 N0 e. e) Y; Y<head>
: [) U$ O: W2 ~3 c% d<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
# j8 y& U5 J4 z8 l+ x% z<meta name="ProgId" content="FrontPage.Editor.Document">
* c; D1 V) K, @# N9 S7 t<meta http-equiv="Content-Type" content="text/html; charset=gb2312">" y& ]: X8 h" G9 k5 l
<meta http-equiv="refresh" content="3600"> @ y$ s1 `8 G4 k: F' S* c/ L- U
<title></title>: Y" ~4 S6 \3 s3 L, F8 L
</head>1 O1 ^1 d2 v% I0 ^+ r7 b$ Y
" H5 _3 K3 m8 K/ J; D! T
<body>$ [4 I6 S- l( ]7 h' n+ D7 b
) q3 r2 o2 b& u; G, p% r<%
5 s* N& Y- F/ Y2 D% N; j: AFunction bytes2BSTR(vIn)
& K9 N# [ K/ l8 h# vstrReturn = ""
/ a/ D3 Y0 N5 _. XFor i = 1 To LenB(vIn) ! M0 f+ T, t- M/ U* v0 B
ThisCharCode = AscB(MidB(vIn,i,1)) 7 R6 @4 E2 g @: L3 q: s: ]5 z2 |
If ThisCharCode < &H80 Then [8 Y2 E$ q8 }& S3 y, T8 [; K* H
strReturn = strReturn & Chr(ThisCharCode) . X% J5 e+ i. v0 K4 |" ?5 d
Else 2 h2 f$ c0 M0 X. H# D. u
NextCharCode = AscB(MidB(vIn,i+1,1))
+ B1 x& \: B A$ OstrReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
! m! B% u! y8 si = i + 1 8 q* l) S5 C9 i, Q: l
End If * h/ u! i1 z6 K0 c
Next + s5 ?# }$ r$ q3 A- Q; v! v
bytes2BSTR = strReturn
- e" n$ w7 b5 O& }End Function 8 X1 s8 }$ x) X6 y" [+ a
3 z( i5 V) D1 K: }6 F U8 Z; d
Url = "http://www.linkmm.com/photo/ads2.html";3 ]/ `- h* S7 n4 Q/ U O
set oSend=createobject("Microsoft.XMLHTTP")
/ y4 ^9 w d g FSourceCode = oSend.open ("GET",url,false)
$ x' c0 _4 b7 W, x7 roSend.send()* j8 s3 g) M3 x/ w/ |& H- G* T
if err.number<>0 then
4 Z5 `7 X* V) `6 K7 }/ B; R: aResponse.write err.description2 o$ h, o' I$ J+ i$ @
Response.End()7 v( q. @5 H6 J& F' L
end if 7 o# p( O) F2 T: ~6 C5 E
SourceCode = bytes2BSTR(oSend.responseBody)
( p. p" y0 `0 s9 M9 C: h6 W+ d& qbaseurl1="http://www.linkmm.com/photo";
, a& u/ s' V3 K' E% j: d3 QSourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)" N. m# a6 R* n
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif"). |6 V2 S% D( e
SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)3 Y" U0 e3 F! s. [$ S. {
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)! w! ?4 X4 K' f
response.write SourceCode
& D* i2 ^) R+ i- b0 j%>
O, h4 E% {/ o9 A</body>
6 p: j4 }( H- h0 G Y
$ n) `6 P4 v1 j6 M0 P3 H</html> |
|