웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
보안문서 만들기
2004.03.07 17:30
<!--1. 아래의 스크립트를 <HEAD></HEAD>사이에 복사해 넣으세요-->
<script>
<!---Edited by JASKO-->
<!---Web Site : http://www.javascript.co.kr-->
<!--
var stuff=""
function loader(){
stuff=document.form1.code.value
document.form1.code.value=''
}
function makepass(){
declarepass('',(parseInt(document.form1.depth.value)>0)?parseInt(document.form1.depth.value):1,1);
password.check(document.form1.password.value)
}
var checkpass=''
tell=0
counttimes=0
function acheck(encryptpass,encryptdepth,what){
tell=0
tell=what
checkpass=''
counttimes=0
times=encryptdepth
checkpass=encryptpass
orig=''
this.check=mkasci
}
bases=new Array(17,33,57,101);
var acharset='XYZNOhijkVWHIJ45ncdefMyzopqPQRSTUABKL6789ab_rs23CDEFGlmwtuvg01x'
var storeup='';
function mkasci(orig){
if(counttimes==0){storeup=orig}
ascival=new Array()
for(i=0;i<=orig.length-1;i++){
for(i1=0;i1<=acharset.length;i1++){
if(orig.charAt(i)==acharset.charAt(i1)){ascival[i]=i1}
}
}
themeat(ascival)
}
discode=""
function cutoff(code){
eval("var whatcode='"+code+"'");
eval("var whatcode2='"+Math.ceil(code)+"'");
bigVal=(Math.pow(10,whatcode.length-(whatcode2.length)-2)<1)?1:Math.pow(10,whatcode.length-(whatcode2.length)-2);
whatcode3=Math.round(code*bigVal)/bigVal
return(whatcode3)
}
function themeat(basecode){
if(basecode.length>=4){
counttimes++
if(document.form1.dis.checked){window.status="Computating encryption level "+counttimes}
newcode=0
finalcode=1
for(count=0;count!=basecode.length;count++){
newcode=(basecode[(count<(basecode.length-1))?count+1:count-2]+(basecode[count]*bases[2])*(2.303)+basecode[Math.round(((basecode.length-1)*((Math.atan(basecode[(count!=0)?count-1:count+1])*basecode.length)+2*bases[0]))/100)]+1)
newcode=cutoff(newcode)
newcode=(newcode>basecode[Math.round(basecode.length/2)])?newcode-=bases[3]:newcode+=bases[3]
finalcode=cutoff(((newcode/10)*finalcode)/(basecode.length-bases[0]))
}
var deconstruct=''
eval('var finalcode="'+(finalcode+times)+'"');
for(count=0;count<finalcode.length;count++){
if(!isNaN(finalcode.charAt(count))){
deconstruct=deconstruct+finalcode.charAt(count)
}
}
finalcode=deconstruct
var encrypt=new Array()
for(count=2;count<finalcode.length+2;count+=2){
eval("encrypt["+((count/2)-1)+"]='"+((finalcode.charAt(count-2)!='0')?finalcode.charAt(count-2):'')+""+finalcode.charAt(count-1)+"'")
encrypt[((count/2)-1)]=acharset.charAt(Math.round((acharset.length*encrypt[((count/2)-1)])/100))
}
encrypt=encrypt.join('')
if(counttimes<times){mkasci(encrypt)} else {
counttimes=0
if(encrypt==checkpass&&tell==0){alert('통과되었습니다');location.href=storeup+".html"} else {
if(tell==1){window.status="OK!";document.form1.what.value=encrypt;
document.form1.output.value=document.form1.password.value+encrypt.substring(0,5)+".html";document.form1.code.value=stuff+"password=new preferences('"+encrypt+"',"+times+",0,"+((document.form1.dis.checked)?1:0)+");rvar enter='';rwhile(enter.length<4){rtenter=prompt('비밀번호를 입력하세요','');rtif(!enter){enter=' '}r}rpassword.check(enter);r</SCRIPT>r</head>r</HTML>r";
} else {
location.href="reject.html"
}
}
}
} else {alert('영문 4글자 이상으로 입력하세요');}
}
function declarepass(va11,val2,val3){
password=new acheck(va11,val2,val3);
}
//-->
</script>
<Script>document.write("<BO"+"dy")</script> onload="loader()">
<H2>Site Protector v2.0</h2>
<br>
<form name="form1">
<TABLE><TR>
<TD align="right" valign="top">비밀번호를 입력하세요 :<BR>(영숫자 4글자 이상, _)</td>
<TD align="left" valign="top">
<input type="text" name="password" value="mypassword" size=16 maxlength=16></td><TD valign="top">
암호화 된 비밀번호 <input type="text" name="what" size=12></TD>
</TR><TR>
<TD align="right">Encryption 레벨 :</TD>
<TD><input type="text" size=2 maxlength=2 name="depth" value=15></TD>
</TR><TR>
<TR>
<TD align="right">Display Computation:</TD>
<TD><input type="checkbox" name="dis" checked></TD>
</TR><TR>
<TD align="right" valign="top">보여줄 페이지<BR>가 여기에 나타납니다 :</TD>
<TD valign="top"><input type="text"name="output" size=30 value="Site Protector will redirect to me"></td>
</TR><TR><TD></TD><TD><input type="button" value="Generate" onclick="document.form1.password.focus();makepass()"></TD></tr>
</table><BR>
<Hr>
아래의 소스코드를 복사하여 웹페이지에 붙여 넣으세요 <BR>
<textarea cols=65 rows=15 wrap="no" onfocus="this.select()" name="code">
<!--이거 한번 해킹 해 보실래요//-->
<HTML>
<head>
<TITLE>제한구역</title>
<noscript>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://스크립트를 인식 하지 못할경우">
</noscript>
<meta http-equiv="expires" content="-1">
<meta http-equiv="pragma" content="no-cache">
<Script>
<!--
// #########################################
// #***************************************#
// #**********Site Protector v2.0**********#
// #********Blacklight Production**********#
// #*******blacklight@nc.prestige.net******#
// #************Copyright 1999*************#
// #*********All rights reserved***********#
// #***************************************#
// #########################################
var checkpass=''
tell=0
counttimes=0
disComp=0
function preferences(encryptpass,encryptdepth,what,dis){
disComp=dis
tell=0
tell=what
checkpass=''
counttimes=0
times=encryptdepth
checkpass=encryptpass
orig=''
this.check=mkasci
}
bases=new Array(17,33,57,101);
var acharset='XYZNOhijkVWHIJ45ncdefMyzopqPQRSTUABKL6789ab_rs23CDEFGlmwtuvg01x'
var storeup='';
function mkasci(orig){
if(counttimes==0){storeup=orig}
ascival=new Array()
for(i=0;i<=orig.length-1;i++){
for(i1=0;i1<=acharset.length;i1++){
if(orig.charAt(i)==acharset.charAt(i1)){ascival[i]=i1}
}
}
themeat(ascival)
}
function cutoff(code){
eval("var whatcode='"+code+"'");
eval("var whatcode2='"+Math.ceil(code)+"'");
bigVal=(Math.pow(10,whatcode.length-(whatcode2.length)-2)<1)?1:Math.pow(10,whatcode.length-(whatcode2.length)-2);
whatcode3=Math.round(code*bigVal)/bigVal
return(whatcode3)
}
function themeat(basecode){
if(basecode.length>=4){
counttimes++
if(disComp==1){window.status="Computating encryption level "+counttimes+"/"+times}
newcode=0
finalcode=1
for(count=0;count!=basecode.length;count++){
newcode=(basecode[(count<(basecode.length-1))?count+1:count-2]+(basecode[count]*bases[2])*(2.303)+basecode[Math.round(((basecode.length-1)*((Math.atan(basecode[(count!=0)?count-1:count+1])*basecode.length)+2*bases[0]))/100)]+1)
newcode=cutoff(newcode)
newcode=(newcode>basecode[Math.round(basecode.length/2)])?newcode-=bases[3]:newcode+=bases[3]
finalcode=cutoff(((newcode/10)*finalcode)/(basecode.length-bases[0]))
}
var deconstruct=''
eval('var finalcode="'+(finalcode+times)+'"');
for(count=0;count<finalcode.length;count++){
if(!isNaN(finalcode.charAt(count))){
deconstruct=deconstruct+finalcode.charAt(count)
}
}
finalcode=deconstruct
var encrypt=new Array()
for(count=2;count<finalcode.length+2;count+=2){
eval("encrypt["+((count/2)-1)+"]='"+((finalcode.charAt(count-2)!='0')?finalcode.charAt(count-2):'')+""+finalcode.charAt(count-1)+"'")
encrypt[((count/2)-1)]=acharset.charAt(Math.round((acharset.length*encrypt[((count/2)-1)])/100))
}
encrypt=encrypt.join('')
if(counttimes<times){mkasci(encrypt)} else {
counttimes=0
if(encrypt==checkpass&&tell==0){alert('Access Granted');location.replace(storeup+encrypt.substring(0,5)+".html");} else {
if(tell==1){document.write(""+storeup+" is encrypted as "+encrypt+"");} else {
if(history.length>0){
alert("Access Denied");
history.go(-1);
} else {location.replace("http://polymathic.tripod.com/hs/reject.html")}
}
}
}
} else {
if(history.length>0){
alert("Access Denied");
history.go(-1);
} else {location.replace("http://polymathic.tripod.com/hs/reject.html")}
}
}
// password=new preferences(1,2,3,4);
// 1)The encrypted password in quotes
// 2)Encryption level
// 3)0:program will function as a password program. 1:program will encrypt the password you enter
// 4)0:will display nothing. 1:will display encrpytion computation
//-->
</textarea><BR>
</form>
<script>
<!---Edited by JASKO-->
<!---Web Site : http://www.javascript.co.kr-->
<!--
var stuff=""
function loader(){
stuff=document.form1.code.value
document.form1.code.value=''
}
function makepass(){
declarepass('',(parseInt(document.form1.depth.value)>0)?parseInt(document.form1.depth.value):1,1);
password.check(document.form1.password.value)
}
var checkpass=''
tell=0
counttimes=0
function acheck(encryptpass,encryptdepth,what){
tell=0
tell=what
checkpass=''
counttimes=0
times=encryptdepth
checkpass=encryptpass
orig=''
this.check=mkasci
}
bases=new Array(17,33,57,101);
var acharset='XYZNOhijkVWHIJ45ncdefMyzopqPQRSTUABKL6789ab_rs23CDEFGlmwtuvg01x'
var storeup='';
function mkasci(orig){
if(counttimes==0){storeup=orig}
ascival=new Array()
for(i=0;i<=orig.length-1;i++){
for(i1=0;i1<=acharset.length;i1++){
if(orig.charAt(i)==acharset.charAt(i1)){ascival[i]=i1}
}
}
themeat(ascival)
}
discode=""
function cutoff(code){
eval("var whatcode='"+code+"'");
eval("var whatcode2='"+Math.ceil(code)+"'");
bigVal=(Math.pow(10,whatcode.length-(whatcode2.length)-2)<1)?1:Math.pow(10,whatcode.length-(whatcode2.length)-2);
whatcode3=Math.round(code*bigVal)/bigVal
return(whatcode3)
}
function themeat(basecode){
if(basecode.length>=4){
counttimes++
if(document.form1.dis.checked){window.status="Computating encryption level "+counttimes}
newcode=0
finalcode=1
for(count=0;count!=basecode.length;count++){
newcode=(basecode[(count<(basecode.length-1))?count+1:count-2]+(basecode[count]*bases[2])*(2.303)+basecode[Math.round(((basecode.length-1)*((Math.atan(basecode[(count!=0)?count-1:count+1])*basecode.length)+2*bases[0]))/100)]+1)
newcode=cutoff(newcode)
newcode=(newcode>basecode[Math.round(basecode.length/2)])?newcode-=bases[3]:newcode+=bases[3]
finalcode=cutoff(((newcode/10)*finalcode)/(basecode.length-bases[0]))
}
var deconstruct=''
eval('var finalcode="'+(finalcode+times)+'"');
for(count=0;count<finalcode.length;count++){
if(!isNaN(finalcode.charAt(count))){
deconstruct=deconstruct+finalcode.charAt(count)
}
}
finalcode=deconstruct
var encrypt=new Array()
for(count=2;count<finalcode.length+2;count+=2){
eval("encrypt["+((count/2)-1)+"]='"+((finalcode.charAt(count-2)!='0')?finalcode.charAt(count-2):'')+""+finalcode.charAt(count-1)+"'")
encrypt[((count/2)-1)]=acharset.charAt(Math.round((acharset.length*encrypt[((count/2)-1)])/100))
}
encrypt=encrypt.join('')
if(counttimes<times){mkasci(encrypt)} else {
counttimes=0
if(encrypt==checkpass&&tell==0){alert('통과되었습니다');location.href=storeup+".html"} else {
if(tell==1){window.status="OK!";document.form1.what.value=encrypt;
document.form1.output.value=document.form1.password.value+encrypt.substring(0,5)+".html";document.form1.code.value=stuff+"password=new preferences('"+encrypt+"',"+times+",0,"+((document.form1.dis.checked)?1:0)+");rvar enter='';rwhile(enter.length<4){rtenter=prompt('비밀번호를 입력하세요','');rtif(!enter){enter=' '}r}rpassword.check(enter);r</SCRIPT>r</head>r</HTML>r";
} else {
location.href="reject.html"
}
}
}
} else {alert('영문 4글자 이상으로 입력하세요');}
}
function declarepass(va11,val2,val3){
password=new acheck(va11,val2,val3);
}
//-->
</script>
<Script>document.write("<BO"+"dy")</script> onload="loader()">
<H2>Site Protector v2.0</h2>
<br>
<form name="form1">
<TABLE><TR>
<TD align="right" valign="top">비밀번호를 입력하세요 :<BR>(영숫자 4글자 이상, _)</td>
<TD align="left" valign="top">
<input type="text" name="password" value="mypassword" size=16 maxlength=16></td><TD valign="top">
암호화 된 비밀번호 <input type="text" name="what" size=12></TD>
</TR><TR>
<TD align="right">Encryption 레벨 :</TD>
<TD><input type="text" size=2 maxlength=2 name="depth" value=15></TD>
</TR><TR>
<TR>
<TD align="right">Display Computation:</TD>
<TD><input type="checkbox" name="dis" checked></TD>
</TR><TR>
<TD align="right" valign="top">보여줄 페이지<BR>가 여기에 나타납니다 :</TD>
<TD valign="top"><input type="text"name="output" size=30 value="Site Protector will redirect to me"></td>
</TR><TR><TD></TD><TD><input type="button" value="Generate" onclick="document.form1.password.focus();makepass()"></TD></tr>
</table><BR>
<Hr>
아래의 소스코드를 복사하여 웹페이지에 붙여 넣으세요 <BR>
<textarea cols=65 rows=15 wrap="no" onfocus="this.select()" name="code">
<!--이거 한번 해킹 해 보실래요//-->
<HTML>
<head>
<TITLE>제한구역</title>
<noscript>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://스크립트를 인식 하지 못할경우">
</noscript>
<meta http-equiv="expires" content="-1">
<meta http-equiv="pragma" content="no-cache">
<Script>
<!--
// #########################################
// #***************************************#
// #**********Site Protector v2.0**********#
// #********Blacklight Production**********#
// #*******blacklight@nc.prestige.net******#
// #************Copyright 1999*************#
// #*********All rights reserved***********#
// #***************************************#
// #########################################
var checkpass=''
tell=0
counttimes=0
disComp=0
function preferences(encryptpass,encryptdepth,what,dis){
disComp=dis
tell=0
tell=what
checkpass=''
counttimes=0
times=encryptdepth
checkpass=encryptpass
orig=''
this.check=mkasci
}
bases=new Array(17,33,57,101);
var acharset='XYZNOhijkVWHIJ45ncdefMyzopqPQRSTUABKL6789ab_rs23CDEFGlmwtuvg01x'
var storeup='';
function mkasci(orig){
if(counttimes==0){storeup=orig}
ascival=new Array()
for(i=0;i<=orig.length-1;i++){
for(i1=0;i1<=acharset.length;i1++){
if(orig.charAt(i)==acharset.charAt(i1)){ascival[i]=i1}
}
}
themeat(ascival)
}
function cutoff(code){
eval("var whatcode='"+code+"'");
eval("var whatcode2='"+Math.ceil(code)+"'");
bigVal=(Math.pow(10,whatcode.length-(whatcode2.length)-2)<1)?1:Math.pow(10,whatcode.length-(whatcode2.length)-2);
whatcode3=Math.round(code*bigVal)/bigVal
return(whatcode3)
}
function themeat(basecode){
if(basecode.length>=4){
counttimes++
if(disComp==1){window.status="Computating encryption level "+counttimes+"/"+times}
newcode=0
finalcode=1
for(count=0;count!=basecode.length;count++){
newcode=(basecode[(count<(basecode.length-1))?count+1:count-2]+(basecode[count]*bases[2])*(2.303)+basecode[Math.round(((basecode.length-1)*((Math.atan(basecode[(count!=0)?count-1:count+1])*basecode.length)+2*bases[0]))/100)]+1)
newcode=cutoff(newcode)
newcode=(newcode>basecode[Math.round(basecode.length/2)])?newcode-=bases[3]:newcode+=bases[3]
finalcode=cutoff(((newcode/10)*finalcode)/(basecode.length-bases[0]))
}
var deconstruct=''
eval('var finalcode="'+(finalcode+times)+'"');
for(count=0;count<finalcode.length;count++){
if(!isNaN(finalcode.charAt(count))){
deconstruct=deconstruct+finalcode.charAt(count)
}
}
finalcode=deconstruct
var encrypt=new Array()
for(count=2;count<finalcode.length+2;count+=2){
eval("encrypt["+((count/2)-1)+"]='"+((finalcode.charAt(count-2)!='0')?finalcode.charAt(count-2):'')+""+finalcode.charAt(count-1)+"'")
encrypt[((count/2)-1)]=acharset.charAt(Math.round((acharset.length*encrypt[((count/2)-1)])/100))
}
encrypt=encrypt.join('')
if(counttimes<times){mkasci(encrypt)} else {
counttimes=0
if(encrypt==checkpass&&tell==0){alert('Access Granted');location.replace(storeup+encrypt.substring(0,5)+".html");} else {
if(tell==1){document.write(""+storeup+" is encrypted as "+encrypt+"");} else {
if(history.length>0){
alert("Access Denied");
history.go(-1);
} else {location.replace("http://polymathic.tripod.com/hs/reject.html")}
}
}
}
} else {
if(history.length>0){
alert("Access Denied");
history.go(-1);
} else {location.replace("http://polymathic.tripod.com/hs/reject.html")}
}
}
// password=new preferences(1,2,3,4);
// 1)The encrypted password in quotes
// 2)Encryption level
// 3)0:program will function as a password program. 1:program will encrypt the password you enter
// 4)0:will display nothing. 1:will display encrpytion computation
//-->
</textarea><BR>
</form>
댓글 5
-
이희창
2004.03.07 18:37
-
9000㎒
2004.03.07 18:41
그래도 JS 보단 PHP가 확실?! [쩝;; 예제를 보여주셨으면 이해라도 할텐데;] -
이희창
2004.03.08 15:26
대략 어떤&무슨 소스인지 몰르고 길다 라고 만 쓴거인데...
예제 부탁해요~
저같은 초보에겐 어디에 쓰고 무엇을 할수있는지...
제목만 봐선 몰르겠네요 ^^;; -
잘난체
2004.03.08 20:49
보안페이지 만드는 스크립트네요. -
mytirue
2004.04.11 14:57
JASKO 자료를 가져오면 안됩니다-_-; 엄연히 유료사이트인데;;
제목 | 글쓴이 | 날짜 |
---|---|---|
네임서버 설정 [15] | 쇠물택 | 2002.02.24 |
아파치 가상 유저 설정하기 [6] | i- | 2002.02.24 |
전자우편만 사용할수 있는 계정추가하기 [1] | pai | 2002.02.25 |
리눅스서버 : 도메인 가진 사용자 추가하기 (텔넷,FTP,이메일 사용) [5] | pai | 2002.02.27 |
근사모의 APM_steup3설치 법 [5] | 뽀유★ | 2002.03.01 |
아래 pai님 도메인셋팅 강좌 세부파일들 예제 :) [3] | 아르체 | 2002.03.06 |
리눅스 아주 간단한 사용자 계정 주기-_- [7] | i- | 2002.03.12 |
MySQL 사용자 계정주기 [10] | pai | 2002.03.12 |
[mysql을 하자 1] mysql 종료와 재부팅 | 비바람 | 2002.03.13 |
[mysql을 하자 2] (pai님도 하신^^)사용자와 db를 맹글자 [4] | 비바람 | 2002.03.13 |
[mysql을 하자 3] DB서버 원격 사용자,DB 만들어 사용하기 [5] | 비바람 | 2002.03.13 |
Apache2.0.35 + php4.3.0-devel 설치하기;; [15] | Cksoft | 2002.04.08 |
DB 디자인 툴 소개 [2] | 석이 | 2002.04.21 |
개인서버구동시 서버커널 메모리로....(렉생기시는분들 강추) [2] | 홈1004 | 2002.05.03 |
Redhat7.2에서 apache,mysql,php,zend,gd,freetype,giflib,jpeglib,zlib 설치하기 [14] | DeX™ | 2002.05.04 |
[알아서 나쁠것없는 10원짜리 팁!] 수십 수백명사용자의 일괄생성 방법! [6] | 임현 | 2002.05.09 |
Redhat 7.3 나왔습니다. [20] | 야쿠자 | 2002.05.10 |
텔넷에서 다른 계정사용자의 홈디렉토리 접근 막기 [4] | 김영남 | 2002.05.11 |
웹호스팅 서버세팅 쉽게하기 팁[윈도우 메모장 이용] [3] | 김영남 | 2002.05.14 |
가상호스트 i- 님의 강의에 덧붙여서 | 이종렬 | 2002.05.24 |
1010101010