先選中一個你想 「偷」 的網頁程序。。。$ k/ h, H- r, R7 U, q
我這裡看中了它。。呵呵 。。。很多妹妹圖片。。。口水中。。0 j6 H+ w D7 {% @- A4 {
http://www.linkmm.com/photo/ads2.html
. W- z2 A/ c+ T& Q* \" F然後建立個ASP網頁,先把以下代碼複製進去
$ G' F" q) R0 G3 Q5 N/ f" p<%Function bytes2BSTR(vIn)
# L9 n# D* r6 l5 c" T- zstrReturn = ""
" l2 b# T& I: s- G! a6 \) gFor i = 1 To LenB(vIn) : j# e0 {+ u i' p9 U
ThisCharCode = AscB(MidB(vIn,i,1))
+ q2 w4 l2 `. F/ _9 ]* zIf ThisCharCode < &H80 Then " K: k4 X8 M* `3 X" C* ]
strReturn = strReturn & Chr(ThisCharCode) 4 @$ Q! E+ i8 C8 D) D, Y) s! b+ o
Else
+ U* G+ L2 p% O) m" U. {6 F. vNextCharCode = AscB(MidB(vIn,i+1,1))
1 J0 o6 O% L. LstrReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
S/ n/ }% h& Pi = i + 1 " g4 M- r6 C, F/ A# V8 N1 b& t
End If 6 N. F* T o) }& }
Next - L* J( {5 Z \0 P
bytes2BSTR = strReturn 9 Y" a1 O0 M4 [9 t
End Function
# f4 }0 q+ |1 i7 n& V* f2 W7 i
1 ]2 }; E/ H2 p& ~2 w
5 K! w5 I( ?" {$ ?4 L5 K; x8 LUrl = "http://www.linkmm.com/photo/ads2.html";+ J( J) _: S+ b8 w
set oSend=createobject("Microsoft.XMLHTTP")
0 p$ ]/ S% L b/ wSourceCode = oSend.open ("GET",url,false)
( J* J8 M+ ~( N9 O7 k* xoSend.send()9 G6 ~5 t/ Q3 f+ P/ ~
if err.number<>0 then
5 B; U: g4 o9 x hResponse.write err.description! w7 S% e# O" C* }. @
Response.End()# C/ ^3 v7 ~: J5 s
end if & X% A1 z! }: b u7 z% W$ e
SourceCode = bytes2BSTR(oSend.responseBody)%>
: A+ k2 r3 i3 b0 T
, G; m& ?8 w" _2 j# I; I( v其中Url = "http://www.linkmm.com/photo/ads2.html";就是你想要 偷 的網頁,換成你需要的就可以了。。
0 ^* P k7 T) m+ f: m這個時候response.write 一下。。是不是很多圖片看不見啊。。不急,我們有replace呢。。把你現在的網頁查看下原文件,,把原來的網頁查看下願文件對比下就知道怎麼讓這些無法顯示的顯示出來。。。比起那些一個個replace替換圖片的方法
+ }7 ^+ A% N' V4 U用這個方法好多了就是在有src的地方在他前面直接替換網址多方便呵呵。。
. j( }- @3 Z: T% U7 g) ?在寫這段代碼。。程序就完了呵呵. j4 M1 o- T: Y* b4 D" E4 p
<%baseurl1="http://www.linkmm.com/photo";
" X+ g q: l4 t4 b: QSourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)
$ E% C2 n6 v* t5 U9 fSourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")9 h3 M7 F9 F) Q: k' m/ E; O
SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)- {1 D& `6 v; B
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)& b9 l! I3 m1 r( f4 z
response.write SourceCode%>
! R9 t8 ]9 q! a9 a! k: k' G
& m6 N' h) n9 W* k u X是不是很簡單啊。不懂的聯繫我52596464
2 J# {$ y( s: ^5 v, f0 J; R完整代碼如下:
1 v& B, D2 ]( ?6 E<html>
7 ]5 U' x6 x2 g3 a3 l. i. C: ]! P1 `- b L) v8 t ?7 b4 G; {( z
<head>/ j* d9 a( m$ W/ r7 e9 t
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
, q7 w6 L" O/ c9 v$ Q<meta name="ProgId" content="FrontPage.Editor.Document">
2 T5 f: o, ]7 N: v/ I# M<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
1 Y B. _# W `* _<meta http-equiv="refresh" content="3600">1 R1 N. w& t& O- N
<title></title>" S* Q8 n6 F, C6 e% Q
</head>
) s. k3 v6 n. C5 c. f5 `" s% |$ ^0 c0 |, n
<body>, u" |$ U; a7 U3 k; q/ g X4 f
& \6 G7 D7 C" e, ~, ?
<%
* ?) D) {2 |" }9 d$ kFunction bytes2BSTR(vIn) ' E& b3 M* L" e+ A. t C
strReturn = ""
% O1 x4 `, s0 ZFor i = 1 To LenB(vIn)
& n2 ?0 ?4 A) ~( JThisCharCode = AscB(MidB(vIn,i,1))
- G! }; q3 [4 U& U! sIf ThisCharCode < &H80 Then
$ A' X* R; [% g# s: Y* v2 rstrReturn = strReturn & Chr(ThisCharCode)
. J( t+ y2 E# s& O4 r3 XElse
6 E0 i) o# @ i( t. pNextCharCode = AscB(MidB(vIn,i+1,1)) / O. x; O% J4 T6 _% X
strReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
& ]. c( S8 X- D( v8 Z/ O0 ci = i + 1
7 J% U( U6 Q7 oEnd If
) E& D$ V; T& j1 y9 \- gNext ; k$ E1 @+ k( A+ R
bytes2BSTR = strReturn 7 W3 ]: r* B" E. q2 B" j
End Function
4 X5 h ] g+ K" p( D' u5 T1 Q# ^. o3 m' a; ]. k: U7 w
Url = "http://www.linkmm.com/photo/ads2.html";- A: H. I- F, [
set oSend=createobject("Microsoft.XMLHTTP")0 Z4 g6 e) {, K3 j* k3 e: R- c
SourceCode = oSend.open ("GET",url,false)
2 r) S _# r8 Z0 S; }4 P9 EoSend.send()' |9 v4 K! E5 @; R
if err.number<>0 then
* T# ^/ y6 B8 w/ q- U5 k5 d/ HResponse.write err.description8 C1 T0 R$ I* }4 T5 U5 [
Response.End()
5 u5 [" h: ]" q& |) t9 J4 nend if
/ M0 S: B# n5 Z# Z5 nSourceCode = bytes2BSTR(oSend.responseBody)% B! ~+ }. W* f- x! Y
baseurl1="http://www.linkmm.com/photo";
+ i0 j; i/ ]/ H. ASourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)& M3 S a2 ^) O
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
; ?2 |$ O, O9 `% i G7 N6 qSourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)
& x1 x( k( i" w% Y. h$ v: H* }1 ZSourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)
6 t% @1 |) q$ e' Z( x% @response.write SourceCode
4 V" }' I0 P, u: e+ [* I%>7 H5 `$ q! u( d! \. D3 u& N: J+ z
</body>( D3 r% @% I: A4 t5 P0 F. Y
" a7 c- n9 l% J1 j, v- J0 {- N- |
</html> |
|