Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Web Forms filtered with SQL constraints |
|---|---|
| Date: | Fri, 15 Oct 2004 11:13:20 +0200 |
Hi list !
HTML code source can be obfuscated through a javascript method.
BUT obfuscation only means what it means: obfuscation and neither
'encryption' nor 'hashing'.
Javascript has access to the document object model at runtime. Many
document childs do have some 'value' or 'text' or even 'innerhtml'
members, which can be modified at run time.
Here's an example of what you might be interrested into. Please take
assumption that I quite never code in javascript so that this only a
proof of concept, and might have many errors in it...
---------------------jsscript.asp----------------------------
var longstring = "iucpoint48cn09450945u90newuwpio....
... many lines of longstring....
dfjkséfkj";
function decrypt(astring)
{
//some decryption algorithm here
}
---------------------jsscript.asp----------------------------
---------------------obfuscated.html----------------------------
<script src="jsscript.asp">
<script>
var contentComponent = document.getElementById("pagecontent");
contentComponent.innerHTML = decrypt(longstring);
</script>
<div id="pagecontent">
</div>
---------------------obfuscated.html----------------------------
The game here is to generate the 'jsscript.asp' dynamically in order
to put the encrypted string into it. The hacker will have to understand
the decryption algorithm to decipher the text.
Assuming the decryption algorithm should be clearly accessible, this
method should only be used as an end-user protection measure. Any
good hacker will quickly find the way to reverse the decryption algorithm.
my 2 swiss francs..
.antoine
------------oOoo---Ôô----ooOo---------------------------
http://www.nxtg.net/saphyr/ (blog perso)
http://www.nxtg.net/is/ (blog - fr - communication web)
http://dotnetjunkies.com/weblogs/afontes/ (blog - fr - communication web)
E-mail: monprenom@mondomaine.net
-------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Apache log file monitor, Chris Davis |
|---|---|
| Next by Date: | Web Attack Data - Apache, Ryan Barnett |
| Previous by Thread: | RE: Web Forms filtered with SQL constraints, Bénoni MARTIN |
| Next by Thread: | Re: Web Forms filtered with SQL constraints, RSnake |
| Indexes: | [Date] [Thread] [Top] [All Lists] |