先選中一個你想 「偷」 的網頁程序。。。
' I. q: d5 H( y我這裡看中了它。。呵呵 。。。很多妹妹圖片。。。口水中。。7 F; ^: j, G# f& G) j% t4 ~# a- O
http://www.linkmm.com/photo/ads2.html
7 R; {$ z" F# v9 M然後建立個ASP網頁,先把以下代碼複製進去, [- X, U+ Y- G1 b8 r
<%Function bytes2BSTR(vIn)
" w9 X' d) w- |6 O6 e* ~& GstrReturn = ""
! h& B! g% p2 ~% a6 }For i = 1 To LenB(vIn)
! ?4 W9 Y& T, \ThisCharCode = AscB(MidB(vIn,i,1)) / I: d. c; ?- i) ?' a2 R
If ThisCharCode < &H80 Then
T7 M* B* o- dstrReturn = strReturn & Chr(ThisCharCode)
H% K; o1 ^0 g" \# K Z0 }' l% oElse
+ j$ k3 Q4 t, @' {8 bNextCharCode = AscB(MidB(vIn,i+1,1))
, k$ M7 H6 `* o6 YstrReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) % \% x% M& D2 ~! R, O
i = i + 1
# k' W7 V+ }* O1 \- G" q$ cEnd If ' s4 z" | Z3 G! A3 q* Y. i
Next
) P, W$ P, G, L* A& tbytes2BSTR = strReturn 8 C4 d) w& G; ~4 }$ C) c
End Function 0 e4 n4 a$ V& a% i
. c! x( l$ J& Z* Y$ U* ]9 G
; C3 {: d$ a1 h- ]. k0 l
Url = "http://www.linkmm.com/photo/ads2.html";
; S F' |+ S& t, q" T+ P0 [set oSend=createobject("Microsoft.XMLHTTP")4 H* d- b* ~* z; w7 O/ R7 ~
SourceCode = oSend.open ("GET",url,false) # g! {$ w. x0 j' L- S1 z! |! j
oSend.send()2 V( ]7 c8 a+ A" J5 R, S
if err.number<>0 then+ T* m. R6 K" |" Z) N2 D9 S& y: z
Response.write err.description, v& x4 a4 M* E
Response.End()' `2 a! I# e! r' S
end if , n6 l/ P! v' K: n- g
SourceCode = bytes2BSTR(oSend.responseBody)%>( q" K3 B1 i% P2 t0 z
4 f8 R7 }7 C# N2 d; g: L
其中Url = "http://www.linkmm.com/photo/ads2.html";就是你想要 偷 的網頁,換成你需要的就可以了。。* o- r8 h: W* e3 g8 i ` _
這個時候response.write 一下。。是不是很多圖片看不見啊。。不急,我們有replace呢。。把你現在的網頁查看下原文件,,把原來的網頁查看下願文件對比下就知道怎麼讓這些無法顯示的顯示出來。。。比起那些一個個replace替換圖片的方法
( M5 h' c4 E. F' [用這個方法好多了就是在有src的地方在他前面直接替換網址多方便呵呵。。. V' C+ d1 a {7 M7 Z
在寫這段代碼。。程序就完了呵呵
* U$ F3 \5 B0 F! \, l2 \<%baseurl1="http://www.linkmm.com/photo";* d- M) T8 [* I/ Q! G- g
SourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)& G* F* k9 w2 q; q A9 |
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif"); T) T9 m) z E& r
SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)
' }# S% M' `- \' B) oSourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";); M( q) n% _2 `0 S
response.write SourceCode%>, @' X' H1 i' l, G: h. D, `
9 Z/ h1 p5 X8 K& e* v是不是很簡單啊。不懂的聯繫我52596464
% G. J1 J- Z, J- E @ Y% |" {, g4 W完整代碼如下:
6 W% W) N" z5 O7 Y3 g<html>
" A; m/ I, y2 ]" {! y& H# v W* @6 F! R8 D( S9 X
<head>
9 j9 v% ? v. O<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
8 E* k9 `3 ]# e<meta name="ProgId" content="FrontPage.Editor.Document">
6 f8 }7 ~ d( e" u! O<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
* F# g1 L+ ^2 P<meta http-equiv="refresh" content="3600">" y2 ~) d5 D1 f1 E
<title></title>
' M$ Z3 x( H+ G# \: U</head>* ]: m5 b' U6 F3 l/ i
5 k# E; b' u j- _. p3 P<body>% B& b7 b4 S7 g
$ A, o" Y. W2 h' x5 ]. \. o/ p
<%+ Y5 _- f6 L( i; U2 k: w
Function bytes2BSTR(vIn)
5 w: H' ]5 @' J, P7 GstrReturn = "" " X& Q/ p) q! g& L7 j
For i = 1 To LenB(vIn)
/ D. V- `+ ]. ~ d6 L7 h% rThisCharCode = AscB(MidB(vIn,i,1))
8 E* R7 K" q/ ]If ThisCharCode < &H80 Then
& r/ b# `3 z) ] v: jstrReturn = strReturn & Chr(ThisCharCode)
5 a r- y/ V, H% z" Q$ SElse * g6 j* Q; [( |3 q8 Y
NextCharCode = AscB(MidB(vIn,i+1,1)) - g* p6 z4 v- B6 x; L1 [9 a
strReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) " F8 N. ?1 }9 I6 h3 z
i = i + 1
e+ x% v2 x1 ^1 MEnd If
7 R l" d G7 Q$ J0 e7 K% JNext
h' ?/ D9 h: q" g$ v6 @) _( @ Sbytes2BSTR = strReturn
, @* ?" [; x( U9 w- ^! I9 eEnd Function
7 l- b. t0 }3 I' k1 E
8 I+ L5 n5 M8 L3 l _1 K e( gUrl = "http://www.linkmm.com/photo/ads2.html";
. G/ ^$ n) `$ T$ \set oSend=createobject("Microsoft.XMLHTTP")
L$ i0 P( b3 ^4 E8 RSourceCode = oSend.open ("GET",url,false) ) l4 i/ l' @% P* e4 M
oSend.send()
! i% j3 C) ^( k& jif err.number<>0 then
. c# C2 w- B) M6 u1 _( J: zResponse.write err.description
1 z1 d0 u$ l- O$ Q+ E6 X( |0 yResponse.End()) L& L0 J$ T; O8 L* Z p% m/ F
end if 9 ]2 z9 b8 y0 C3 O
SourceCode = bytes2BSTR(oSend.responseBody)' \' T7 t | n0 Z4 o
baseurl1="http://www.linkmm.com/photo";
/ z: r% D/ [, \SourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";)2 c" }) L8 @: F w/ l# [1 Q
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
+ w3 d) h8 H! l1 X4 |SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";)/ ^, `4 y, V. {( O; M. R1 Y) V* N. N
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";)4 R3 n: v, ]3 J* P$ i3 k
response.write SourceCode: }9 C9 I4 n$ [$ _/ f X0 k3 P
%>* j3 H0 X2 e3 V4 i
</body>
# z u" } G& `2 |
6 M0 u0 v9 ~- J: s! Q</html> |
|