OVH Cloud OVH Cloud

Applications HTA : crytptage du code VBScript

1 réponse
Avatar
WillBrequin
Comment proc=E9der pour encrypter le code VBScript inclus
dans une application HTA ?

A+, Will

1 réponse

Avatar
Jean-Claude BELLAMY
Dans le message news:0d6f01c49cab$4e8cfda0$ ,
WillBrequin s'est ainsi exprimé:

Comment procéder pour encrypter le code VBScript inclus
dans une application HTA ?


En utilisant tout simplement SCRENC.EXE, de Microsoft..

Et comme l'extension HTA n'est pas standard, il faut dire à SCRENC que c'est
"comme" du html :

screnc /e html monscript.hta monscript-encodé.hta

Exemple appliqué sur le célèbre "scriptomatic.hta"
(devenu ici "encscriptomatic.hta")

<html>
<!--********************************************************************
'*
'* File: scriptomatic.hta
'* Created: August 2002
'* Version: 1.0
'* [...]
'********************************************************************-->
<title>Windows .NET Server Resource Kit - Scriptomatic</title>

<HTA:APPLICATION
ID="objScriptomatic"
[...]
<script language="VBScript.Encode">
#@~^YSUAAA==@#@&@#@&EeCeeCeCMeCeMeCeMM......
[...]
......0ngKAA==^#~@
</script>
</head>

'***********************************************************
'* our HTML layout - the only thing of note here is that when
[...]




MAIS cela ne SERVIRA STRICTEMENT A RIEN !
(sinon à emmerder le petit peuple pendant 5 minutes.. ;-))

SCRENC, comme son nom l'indique, est un CODEUR, et non pas un CHIFFREUR !

Le décodage est hyperfacile à effectuer.

J'ai d'ailleurs écrit un VBS qui décode n'importe script codé :
http://www.bellamyjc.org/fr/vbsdownload.html#scrdecode


--
May the Force be with You!
La Connaissance s'accroît quand on la partage
----------------------------------------------------------
Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org
http://www.bellamyjc.org *