Jump to content
R0cc0

Encrypt - Decrypt HTML Source

Recommended Posts

Ce face mai exact acest script ? - Pai simplu cripteaza sursa paginilor web HTML .

Untitled.png

Example :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it">
<head>

<title>Encrypt source - Example JavaScript downloaded @ r.rocco@rocketmail.com</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="it" />
<meta name="Robots" content="All" />
<meta name="Description" content="RSTforums.com - Romanian site on web publishing" />
<meta name="Keywords" content="The script allows, although somewhat cumbersome to encrypt the source code of a html page." />
<meta name="Owner" content="R0cc0 @ RST" />
<meta name="Author" content="R0cc0 @ RST" />
<meta name="Copyright" content="R0cc0 @ RST" />

<script type="text/javascript" language="JavaScript">
<!--
<!--
//////////////////////////////////////////////////////////////////
// Source Code Encrypter v1.0 //
//////////////////////////////////////////////////////////////////
// //
// This JavaScript can be freely used as long as this message //
// stays here in the header of the script. Any modifications //
// and bugs found (and fixed) are appreciated. //
// Script submitted/featured on Dynamicdrive.com //
// Visit http://www.rstforums.com for source code //
// R0cc0, r.rocco@rocketmail.com //
//////////////////////////////////////////////////////////////////

var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;

function initStyleElements() /* Styles for Buttons Init */
{
var c = document.pad;
if (ie)
{
//c.text.style.backgroundColor="#DDDDDD";
c.compileIt.style.backgroundColor="#C0C0A8";
c.compileIt.style.cursor="hand";
c.select.style.backgroundColor="#C0C0A8";
c.select.style.cursor="hand";
c.view.style.backgroundColor="#C0C0A8";
c.view.style.cursor="hand";
c.retur.style.backgroundColor="#C0C0A8";
c.retur.style.cursor="hand";
c.clear.style.backgroundColor="#C0C0A8";
c.clear.style.cursor="hand";
}
else return;
}

/* Buttons Enlightment of "Compilation" panel */
function LightOn(what)
{
if (ie) what.style.backgroundColor = '#E0E0D0';
else return;
}
function FocusOn(what)
{
if (ie) what.style.backgroundColor = '#EBEBEB';
else return;
}
function LightOut(what)
{
if (ie) what.style.backgroundColor = '#C0C0A8';
else return;
}
function FocusOff(what)
{
if (ie) what.style.backgroundColor = '#DDDDDD';
else return;
}
/* Buttons Enlightment of "Compilation" panel */

function generate() /* Generation of "Compilation" */
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='Compiling...Please wait!';
setTimeout("compile()",1000);
}
else alert('First enter something to compile and then press CompileIt')
}
function compile() /* The "Compilation" */
{
document.pad.text.value='';
compilation=escape(code);
document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
if (i=1) alert("Page compiled 1 time!");
else alert("Page compiled "+i+" times!");
}
function selectCode() /* Selecting "Compilation" for Copying */
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('Nothing for be selected!')
}
function preview() /* Preview for the "Compilation" */
{
if(document.pad.text.value.length>0)
{
pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
pr.document.write(document.pad.text.value);
}
else alert('Nothing for be previewed!')
}
function uncompile() /* Decompiling a "Compilation" */
{
if (document.pad.text.value.length>0)
{
source=unescape(document.pad.text.value);
document.pad.text.value=""+source+"";
}
else alert('You need compiled code to uncompile it!')
}
// -->

//-->
</script>

</head>
<body onload="initStyleElements()">
<br /><br />
<div align="center">


<form method=post name=pad align=center>
<textarea rows=11 name=text cols=58 style="background-color:#EBEBEB;width:95%"></textarea><br>
<input type=button value=Crypt name=compileIt onClick=generate() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>
<input type=button value=Select name=select onClick=selectCode() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>
<input type=button value=Preview name=view onClick=preview() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>
<input type=button value=Source name=retur onClick=uncompile() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>
<input type=reset value=Delete name=clear onMouseOver=LightOn(this) onMouseOut=LightOut(this)>
</form>



</div>
<br /><br /><br /><br /><br /><br />
<div align="center">
<a href="https://rstforums.com/forum/forum.php"><img src="http://4.bp.blogspot.com/-WfjhcjIN-Vo/ULlmYBwinqI/AAAAAAAAACU/XTQHj659xBQ/s1600/Capture.gif" alt="JavaScript scaricato da HTML.it" border="0" width="50" height="50" /></a>
</div>


</body>
</html>

javascript :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" ><head>

<style type="text/css">
body {font-family:arial; font-style:normal; font-size:13px}
.author {font-family:arial; font-style:normal; font-size:115%; font-weight:bold; color:red}
.url_author {font-family:arial; font-style:normal; font-size:115%; font-weight:bold; color:red}
.category {font-family:arial; font-style:normal; font-size:115%; font-weight:bold; color:red}
.vote {font-family:arial; font-style:normal; font-size:115%; font-weight:bold; color:red}
.compatibility {font-family:arial; font-style:normal; font-size:115%; font-weight:bold; color:red}
</style>


<title>Encrypt source</title>

</head>
<body bgcolor="#E0E0E0">

<h1><strong><span class="titolo">Encrypt source</span></strong></h1>
Author: <span class="autore">R0cc0</span><br />
Url site author: <span class="url_author">https://rstforums.com/forum/members/r0cc0/</span><br />
category: <span class="categoria">utility</span><br />
Vote @ RST: <span class="vote">0/0</span><br />
Browser compatibility: <span class="compatibility">Explorer, Firefox, Mozilla, Netscape</span>


<p class="commento">

The script allows, although somewhat cumbersome to encrypt the source code of a html page.

</p>




</body></html>

Si in format HTML :

Example download

JavaScript download

Inspiratie

Nu este nevoie sa puneti script-urile pe nici un FTP , este deajuns sa le deschideti in webrowser si sa introduceti in textbox sursa HTML si o va cripta .

Orice imbunatatire este bine venita :) .

Link to comment
Share on other sites

Si uite asa fac pipi pe obfuscarea ta:


var casper = require('casper').create();
var url = 'http://yahoo.ro/';

casper.start(url, function() {
var js = this.evaluate(function() {
return document;
});
this.echo(js.all[0].outerHTML);
});
casper.run();

Face dump direct din DOM.

LE: Tu "encryptezi" continutul cu escape() ? =)) Nici macar obfuscare nu e, acum am observat.

Totusi.

Uimeste-ma , spunandu-mi ca maicata in primele 9 luni cat te-a purtat in pantec , ti-a introdus un calculator prin locu prin care ai iesit , si cand ai venit pe lume erai deja invatat , atat am stiut sa fac , am si zic ca orice imbunatatire este bine venita .

LE : Faci " pipi " pe tine si dai vina pe mine .

Edited by R0cc0
Link to comment
Share on other sites

Te ataci pentru ca esti un fraierut. N-ai ce imbunatatire sa aduci la escape(). Tu inca n-ai habar ce inseamna un proces de compilare si unul de encriptare.

Mai citeste si asta.

LE: "Ii plang pe prosti, si prostii ma inving". O sa zbori usurel de pe forum cu atitudinea asta. Ah, te bazezi pe semnatura ta? :))

funny-sports-pictures-wrestling-bum.jpg

Amaratule mai invat si o sa'l rescriu , dar tu invata sa vorbesti , sau cred ca esti crescut in fund de tara , da cred ca asta este . Puteai sa explici frumos ce si cum , nu :

" Si uite asa fac pipi pe obfuscarea ta: "

LE : Nu am dece sa zbor atata timp cat tu esti mai slobod la gura decat o cioara . ( si nu ma refer lad tigani ) .

Edited by R0cc0
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...