先選中一個你想 「偷」 的網頁程序。。。, t4 P- h1 g+ _2 b+ F( l1 \7 A
我這裡看中了它。。呵呵 。。。很多妹妹圖片。。。口水中。。
! h* B4 H: f# g5 k3 |, Bhttp://www.linkmm.com/photo/ads2.html4 l7 a8 Z! f7 P$ P% f8 N+ S3 Y
然後建立個ASP網頁,先把以下代碼複製進去/ [ p* V' N" m. u1 p
<%Function bytes2BSTR(vIn)
$ [3 c* T8 k& _" zstrReturn = ""
3 B$ l$ n# s1 Q$ v! MFor i = 1 To LenB(vIn) 7 r0 Y- g7 b' m+ e! S
ThisCharCode = AscB(MidB(vIn,i,1))
s' |+ J+ j2 G+ g+ ]) n; g( e; gIf ThisCharCode < &H80 Then 0 S# x0 l5 n8 C# Q+ y3 V
strReturn = strReturn & Chr(ThisCharCode)
/ [5 y0 K( a& G1 P; |: yElse
K* [- x5 R, Q" ENextCharCode = AscB(MidB(vIn,i+1,1)) 7 c% }5 M! q+ f0 v- ~( b
strReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
9 K0 w5 j" s- t- Ai = i + 1
' k6 j/ M) h0 @* HEnd If
2 \% K* P9 T- j7 U7 UNext # _. o- c0 m: i: ]* K
bytes2BSTR = strReturn m# j. B: g' t* ?1 \
End Function
' B/ A0 n- d8 X$ w% |3 m3 D0 |; W. E% g" ` i1 ~1 X
7 @* T2 ?; _7 J
Url = "http://www.linkmm.com/photo/ads2.html";
4 q8 f9 q& P) Y% f) T( Gset oSend=createobject("Microsoft.XMLHTTP")
: ^! ^! n( o) h2 t YSourceCode = oSend.open ("GET",url,false)
" c' I; m5 [4 doSend.send()
2 |+ d. C6 k) d0 X0 z0 qif err.number<>0 then: g: t$ y2 I. Q4 C! P0 G( ?
Response.write err.description
8 F2 v# A, Y; `1 G. E( MResponse.End()
- s- `3 Y9 n# v$ d! h y# `7 Gend if
$ S# }) n# n7 W8 t/ d+ I; BSourceCode = bytes2BSTR(oSend.responseBody)%>
( ?9 K K0 L7 C4 ^. [9 B {/ ~; }8 N7 R# A, N/ o
其中Url = "http://www.linkmm.com/photo/ads2.html";就是你想要 偷 的網頁,換成你需要的就可以了。。3 I9 O2 y; T" t/ G( s5 q
這個時候response.write 一下。。是不是很多圖片看不見啊。。不急,我們有replace呢。。把你現在的網頁查看下原文件,,把原來的網頁查看下願文件對比下就知道怎麼讓這些無法顯示的顯示出來。。。比起那些一個個replace替換圖片的方法5 W5 B. E5 L/ X- v2 @
用這個方法好多了就是在有src的地方在他前面直接替換網址多方便呵呵。。, u* X9 A1 z$ J9 L
在寫這段代碼。。程序就完了呵呵
$ L% q- d* m2 e' p7 q<%baseurl1="http://www.linkmm.com/photo";
/ R/ x @' w2 u2 [" `; s8 dSourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)
, ?; `1 F" ~7 U8 K* Q! T% @SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
% |5 e& F. k# [7 g& y3 N" G0 E zSourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)+ Q- O; L8 {; d/ S3 q% a) L) J& L
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)( b3 d5 W0 E& i) m
response.write SourceCode%>
# D0 Q% U( M5 R/ |
& Y! C6 j1 I ~3 H8 [( ^是不是很簡單啊。不懂的聯繫我52596464
3 s, R; ?' N% |4 G4 M完整代碼如下:
* u0 X& {5 t4 q8 `, I: q<html>
- H& F6 A. _" x0 x7 B- h6 J. o. I7 v! o4 G: \" [: o
<head>
* {; g8 r8 z7 P<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
% `0 D6 `7 v4 z T! v% a<meta name="ProgId" content="FrontPage.Editor.Document">& o# J& S6 B8 m
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
1 X1 a) m5 @4 d. N z' G$ n% f<meta http-equiv="refresh" content="3600">
$ `" J4 Z9 S" i1 f2 o9 D<title></title>
1 m* u$ P) E( i</head>
" H$ U5 |! b- F F+ G$ [0 N5 g4 Q3 I2 Y% ] v* M" W! x% j
<body>! A0 \/ l( e f1 n
7 w, P, h1 a: F" t G! k: ?# k" \2 E<%
5 m G+ Y$ a" N6 y" s8 _& vFunction bytes2BSTR(vIn)
% @9 o3 B' I+ U) X' I AstrReturn = "" - L I- r; T# F/ ~1 K+ t
For i = 1 To LenB(vIn)
0 _1 N9 Q4 }+ [: M$ FThisCharCode = AscB(MidB(vIn,i,1)) 4 l: w9 Y; P# X2 L4 _$ y% B
If ThisCharCode < &H80 Then W4 y& o. }8 _* ~' U5 m8 f
strReturn = strReturn & Chr(ThisCharCode) 2 T/ Q T; G/ n7 y9 a
Else
% Z) v+ |3 L' V/ U: j' |1 n, eNextCharCode = AscB(MidB(vIn,i+1,1))
% u: W' y6 p% U1 z3 T" TstrReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
0 m' y# s0 G; }& q# Gi = i + 1
" u0 K9 a* n( Z/ nEnd If
0 z# ?! n% H3 g( Q/ `3 iNext & P& v) P3 Z* N7 \3 ^1 q7 O
bytes2BSTR = strReturn 4 `+ l5 p: B5 G9 _. }; w
End Function 6 l) `7 q$ D6 f6 K: G
8 J% z8 Z5 \8 o& h- I) qUrl = "http://www.linkmm.com/photo/ads2.html";+ z4 y. V. p- I3 Y$ s8 B4 ?: V( R
set oSend=createobject("Microsoft.XMLHTTP"); C; H$ u2 B! \1 Z& m
SourceCode = oSend.open ("GET",url,false) & w' n6 a8 j. e9 O# \: ^
oSend.send()2 ]0 T$ C7 p# q/ I1 e
if err.number<>0 then1 r& E* p* {2 Z/ T: C) `+ l
Response.write err.description
7 b( K7 A0 l) ]( R: J% l0 {5 rResponse.End(), [ [) G5 s+ X) D; X6 x7 l0 |3 a
end if
& V8 j: M: R/ dSourceCode = bytes2BSTR(oSend.responseBody)
# g0 F' w q7 [baseurl1="http://www.linkmm.com/photo";
; W; T4 u `1 v( nSourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)1 }* _8 M- p4 E# g
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
& y# U2 ^$ h; w y; c4 Y6 }SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)9 v$ v" A6 |0 N, C+ p8 G
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)
. @( d; p, H* p1 o# jresponse.write SourceCode
% M4 v* @ q2 {+ S+ B" E%>
$ C" o& s* K7 E& k- ]) v</body> C* M- z9 K( @5 R
2 P0 i0 G; u3 K; |</html> |
|