PROCEDURE test2
alonehtml=.t.
crlf=chr(13)+chr(10)
br='<br>'
html_out = 'Content-type: text/html'+crlf+crlf
;
+'<html><body>';
+'cookie:'+cgi.cookie+br;
+'cookieLen:'+str(len(cgi.cookie))+br;
+userid+br;
+cgi.remotehost+br;
+'programpath:'+cgi.programpath+br;
+cgi.querystring
+'<html><body>';
+'cookie:'+cgi.cookie+br;
+'cookieLen:'+str(len(cgi.cookie))+br;
+userid+br;
+cgi.remotehost+br;
+'programpath:'+cgi.programpath+br;
+cgi.querystring
html_out=html_out;
+'javascript....<br>';
+[ <script language=javascript> ]+crlf;
+[ s1=window.location.hostname;]+crlf;
+[ p1=s1.indexOf('domain.com');]+crlf;
+[ alert (p1)]+crlf;
+[ if (p1>0) { alert ('bingo!')]+crlf;
+[ alert('bingo2!')]+crlf;
+[ document.write('<img src=http://pexhome.com/img6/pexhometitle.jpg>');]+crlf;
+[ } ]+crlf;
+[ </script> ]+crlf
+'javascript....<br>';
+[ <script language=javascript> ]+crlf;
+[ s1=window.location.hostname;]+crlf;
+[ p1=s1.indexOf('domain.com');]+crlf;
+[ alert (p1)]+crlf;
+[ if (p1>0) { alert ('bingo!')]+crlf;
+[ alert('bingo2!')]+crlf;
+[ document.write('<img src=http://pexhome.com/img6/pexhometitle.jpg>');]+crlf;
+[ } ]+crlf;
+[ </script> ]+crlf
沒有留言:
張貼留言