<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBE,VBS: Как декодировать vbe?]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10002</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10002&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBE,VBS: Как декодировать vbe?».]]></description>
		<lastBuildDate>Tue, 30 Sep 2014 02:15:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86897#p86897</link>
			<description><![CDATA[<p><span style="color: Green"><strong>CyberPUNKoid</strong>, заведите под Ваш вопрос новую тему в соответствующем разделе.</span></p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Tue, 30 Sep 2014 02:15:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86897#p86897</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86863#p86863</link>
			<description><![CDATA[<p>Подскажите PLEASE ? какой <strong>скрипт для установки максимальной скорости курсора</strong>?<br />[чтоб при запуске скрипта скорость курсора становилась на максимум - без всяких переключений, просто тэг скорости курсора]</p>]]></description>
			<author><![CDATA[null@example.com (CyberPUNKoid)]]></author>
			<pubDate>Mon, 29 Sep 2014 19:02:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86863#p86863</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86862#p86862</link>
			<description><![CDATA[<p>Спасибо Огромное, дальше буду сам пробовать. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (DarkJoker1992)]]></author>
			<pubDate>Mon, 29 Sep 2014 19:00:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86862#p86862</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86860#p86860</link>
			<description><![CDATA[<p><strong>DarkJoker1992</strong><br />Нет. Я только прочёл куски кода, отвечающие за параметры.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 29 Sep 2014 18:58:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86860#p86860</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86857#p86857</link>
			<description><![CDATA[<p>вы использовали первый мой скрипт или второй скрипт? <br /></p><div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p><strong>DarkJoker1992</strong><br /></p><div class="codebox"><pre><code>C:\FirstScript.vbs &quot;C:\Decode File.ext&quot;</code></pre></div><div class="codebox"><pre><code>C:\SecondScript.vbs &quot;C:\Folder 1\Decode File 1.ext&quot; &quot;C:\Folder 2\Decode File 2.ext&quot;</code></pre></div></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (DarkJoker1992)]]></author>
			<pubDate>Mon, 29 Sep 2014 18:51:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86857#p86857</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86848#p86848</link>
			<description><![CDATA[<p><strong>DarkJoker1992</strong><br /></p><div class="codebox"><pre><code>C:\FirstScript.vbs &quot;C:\Decode File.ext&quot;</code></pre></div><div class="codebox"><pre><code>C:\SecondScript.vbs &quot;C:\Folder 1\Decode File 1.ext&quot; &quot;C:\Folder 2\Decode File 2.ext&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 29 Sep 2014 14:59:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86848#p86848</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86845#p86845</link>
			<description><![CDATA[<p><strong>DarkJoker1992</strong>, просто перетащите файл .vbe на скрипт в Проводнике.</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Mon, 29 Sep 2014 13:27:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86845#p86845</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86840#p86840</link>
			<description><![CDATA[<p>эмм -_- не могли бы вы привести пример, Спасибо.<br /></p><div class="quotebox"><cite>Flasher пишет:</cite><blockquote><div class="quotebox"><cite>DarkJoker1992 пишет:</cite><blockquote><p>мне как бы нужно что бы файл можно было указать за ранее</p></blockquote></div><p>Так и указывайте, прямо после пути к первому скрипту, либо строковым списком ко второму.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (DarkJoker1992)]]></author>
			<pubDate>Mon, 29 Sep 2014 12:35:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86840#p86840</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86823#p86823</link>
			<description><![CDATA[<div class="quotebox"><cite>DarkJoker1992 пишет:</cite><blockquote><p>мне как бы нужно что бы файл можно было указать за ранее</p></blockquote></div><p>Так и указывайте, прямо после пути к первому скрипту, либо строковым списком ко второму.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Sun, 28 Sep 2014 17:48:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86823#p86823</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86820#p86820</link>
			<description><![CDATA[<p><strong>DarkJoker1992</strong><br />Я не знаю VBS, но, судя по вашему вопросу, Вы его тоже не знаете. Зачем Вам код? Если надо декодировать файл, то утилитка с простейшим синтаксисом комстроки - в самый раз. Создайте батник, или, ещё проще, ярлык с нужными параметрами. Вуаля...</p>]]></description>
			<author><![CDATA[null@example.com (Serge Yolkin)]]></author>
			<pubDate>Sun, 28 Sep 2014 17:35:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86820#p86820</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86813#p86813</link>
			<description><![CDATA[<p>за URL спасибо, но желательно если можно то лучше бы код vbs для расшифровки.<br /></p><div class="quotebox"><cite>Serge Yolkin пишет:</cite><blockquote><p><strong>DarkJoker1992</strong>, ссылка, которая, по моим предположениям, поможет Вам - это знак вопроса в начале моего поста (сам вопросительный знак означает что-то вроде &quot;а такой вариант не устроит?&quot;), остольное - оффтоп.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (DarkJoker1992)]]></author>
			<pubDate>Sun, 28 Sep 2014 14:17:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86813#p86813</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86812#p86812</link>
			<description><![CDATA[<p><strong>DarkJoker1992</strong>, ссылка, которая, по моим предположениям, поможет Вам - это знак вопроса в начале моего поста (сам вопросительный знак означает что-то вроде &quot;а такой вариант не устроит?&quot;), остольное - оффтоп.</p>]]></description>
			<author><![CDATA[null@example.com (Serge Yolkin)]]></author>
			<pubDate>Sun, 28 Sep 2014 11:28:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86812#p86812</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86807#p86807</link>
			<description><![CDATA[<p><a href="http://www.virtualconspiracy.com/content/scrdec/intro">?</a></p><p>А вообще забавно: поиск на MSDN по словам Scripting.Encoder, EncodeScriptFile ничего путного не дал, а ведь было, точно помню... И screnc&#039;а в последних виндах уже нет... АНБ не умеет раскодировать, что ли?</p>]]></description>
			<author><![CDATA[null@example.com (Serge Yolkin)]]></author>
			<pubDate>Sun, 28 Sep 2014 00:53:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86807#p86807</guid>
		</item>
		<item>
			<title><![CDATA[VBE,VBS: Как декодировать vbe?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86804#p86804</link>
			<description><![CDATA[<p>Здравствуйте подскажите пожалуйста код для декодирования файла vbe&nbsp; нашол вот это </p><div class="codebox"><pre><code>option explicit
Dim oArgs, NomFichier
&#039;Optional argument : the encoded filename
NomFichier=&quot;&quot;
Set oArgs = WScript.Arguments
Select Case oArgs.Count
Case 0 &#039;No Arg, popup a dialog box to choose the file
NomFichier=BrowseForFolder(&quot;Choose an encoded file&quot;, &amp;H4031, &amp;H0011)
Case 1
If Instr(oArgs(0),&quot;?&quot;)=0 Then &#039;-? ou /? =&gt; aide
NomFichier=oArgs(0)
End If
Case Else
WScript.Echo &quot;Too many parameters&quot;
End Select
Set oArgs = Nothing
 
If NomFichier&lt;&gt;&quot;&quot; Then
Dim fso
Dim a
Set fso=WScript.CreateObject(&quot;Scripting.FileSystemObject&quot;)
If fso.FileExists(NomFichier) Then
Dim fic,contenu
Set fic = fso.OpenTextFile(NomFichier, 1)
Contenu=fic.readAll
fic.close
Set fic=Nothing
 
Const TagInit=&quot;#@~^&quot; &#039;#@~^awQAAA==
Const TagFin=&quot;==^#~@&quot; &#039;&amp; chr(0)
Dim DebutCode, FinCode
Do
FinCode=0
DebutCode=Instr(Contenu,TagInit)
If DebutCode&gt;0 Then
If (Instr(DebutCode,Contenu,&quot;==&quot;)-DebutCode)=10 Then &#039;If &quot;==&quot; follows the tag
FinCode=Instr(DebutCode,Contenu,TagFin)
If FinCode&gt;0 Then
Contenu=Left(Contenu,DebutCode-1) &amp; _
Decode(Mid(Contenu,DebutCode+12,FinCode-DebutCode-12-6)) &amp; _
Mid(Contenu,FinCode+6)
End If
End If
End If
Loop Until FinCode=0
&#039;WScript.Echo NomFichier
set a = fso.CreateTextFile(NomFichier &amp; &quot;.txt&quot;,1)
a.WriteLine Contenu
a.Close
&#039;WScript.Echo Contenu
Else
WScript.Echo Nomfichier &amp; &quot; not found&quot;
End If
Set fso=Nothing
Else
WScript.Echo &quot;Please give a filename&quot;
WScript.Echo &quot;Usage : &quot; &amp; wscript.fullname &amp; &quot; &quot; &amp; WScript.ScriptFullName &amp; &quot; &lt;filename&gt;&quot;
End If
 
Function Decode(Chaine)
Dim se,i,c,j,index,ChaineTemp
Dim tDecode(127)
Const Combinaison=&quot;1231232332321323132311233213233211323231311231321323112331123132&quot;
 
Set se=WSCript.CreateObject(&quot;Scripting.Encoder&quot;)
For i=9 to 127
tDecode(i)=&quot;JLA&quot;
Next
For i=9 to 127
ChaineTemp=Mid(se.EncodeScriptFile(&quot;.vbs&quot;,string(3,i),0,&quot;&quot;),13,3)
For j=1 to 3
c=Asc(Mid(ChaineTemp,j,1))
tDecode(c)=Left(tDecode(c),j-1) &amp; chr(i) &amp; Mid(tDecode(c),j+1)
Next
Next
&#039;Next line we correct a bug, otherwise a &quot;)&quot; could be decoded to a &quot;&gt;&quot;
tDecode(42)=Left(tDecode(42),1) &amp; &quot;)&quot; &amp; Right(tDecode(42),1)
Set se=Nothing
 
Chaine=Replace(Replace(Chaine,&quot;@&amp;&quot;,chr(10)),&quot;@#&quot;,chr(13))
Chaine=Replace(Replace(Chaine,&quot;@*&quot;,&quot;&gt;&quot;),&quot;@!&quot;,&quot;&lt;&quot;)
Chaine=Replace(Chaine,&quot;@$&quot;,&quot;@&quot;)
index=-1
For i=1 to Len(Chaine)
c=asc(Mid(Chaine,i,1))
If c&lt;128 Then index=index+1
If (c=9) or ((c&gt;31) and (c&lt;128)) Then
If (c&lt;&gt;60) and (c&lt;&gt;62) and (c&lt;&gt;64) Then
Chaine=Left(Chaine,i-1) &amp; Mid(tDecode(c),Mid(Combinaison,(index mod 64)+1,1),1) &amp; Mid(Chaine,i+1)
End If
End If
Next
Decode=Chaine
End Function
 
Function BrowseForFolder(ByVal pstrPrompt, ByVal pintBrowseType, ByVal pintLocation)
Dim ShellObject, pstrTempFolder, x
Set ShellObject=WScript.CreateObject(&quot;Shell.Application&quot;)
On Error Resume Next
Set pstrTempFolder=ShellObject.BrowseForFolder(&amp;H0,pstrPrompt,pintBrowseType,pintLocation)
BrowseForFolder=pstrTempFolder.ParentFolder.ParseName(pstrTempFolder.Title).Path
If Err.Number&lt;&gt;0 Then BrowseForFolder=&quot;&quot;
Set pstrTempFolder=Nothing
Set ShellObject=Nothing
End Function</code></pre></div><p>&nbsp; &nbsp; &nbsp;<br />и такой </p><div class="codebox"><pre><code>Const TagInit = &quot;#@~^&quot;
Const TagFin = &quot;==^#~@&quot;
Set oArgs = WScript.Arguments
If oArgs.Count = 0 Then
  DisplayHelp &quot;&quot;
  WScript.Quit
End If
For Each Arg In oArgs
  If InStr (Arg, &quot;?&quot;) &gt; 0 Then
    DisplayHelp &quot;&quot;
    WScript.Quit
  End If
Next
Set oFSO = CreateObject (&quot;Scripting.FileSystemObject&quot;)
Set oEncoder = CreateObject (&quot;Scripting.Encoder&quot;)
For Each Arg In oArgs
  If oFSO.FileExists(Arg) Then
    sFileExt = oFSO.GetExtensionName(Arg)
    ValidExts = Array (&quot;vbs&quot;, &quot;js&quot;, &quot;jse&quot;, &quot;vbe&quot;, &quot;htm&quot;, &quot;html&quot;, &quot;asa&quot;, &quot;asp&quot;, &quot;cdx&quot;)
    For Each Ext In ValidExts
      If Ext = sFileExt Then
        DisplayHelp Process(Arg)
        Exit For
      End If
    Next
  Else
    DisplayHelp &quot;Argument Is Not a valid file.&quot;
  End If
Next
DisplayHelp &quot;Process Is complete&quot;
Set oEncoder = Nothing
Set oFSO = Nothing
Set oArgs = Nothing
Function Process(sFileIn)
  sSourceExt = &quot;.&quot; &amp; oFSO.GetExtensionName(sFileIn)
  sSourceFile = oFSO.GetBaseName(sFileIn)
  Set fIn = oFSO.OpenTextFile(sFileIn)
  sSource = fIn.ReadAll
  fIn.Close : Set fIn = Nothing
  If InStr (sSource, TagInit) = 0 Then
    Decoded = True
  End If
  If Decoded = True Then
    sOut = Encode(sSource, sSourceExt)
    Select Case sSourceExt
    Case &quot;.vbs&quot;
      sOutExt = &quot;.vbe&quot;
    Case &quot;.js&quot;
      sOutExt = &quot;.jse&quot;
    Case Else
      sOutExt = sSourceExt
    End Select
    Process = &quot;File &quot;&amp;sSourceFile&amp;sSourceExt&amp;&quot; encoded And saved As &quot;&amp;sSourceFile&amp;sOutExt&amp;&quot;.&quot;
  Else
    sOut = Decode(sSource, sSourceExt)
    Select Case sSourceExt
    Case &quot;.vbe&quot;
      sOutExt = &quot;.vbs&quot;
    Case &quot;.jse&quot;
      sOutExt = &quot;.js&quot;
    Case Else
      sOutExt = sSourceExt
    End Select
    Process = &quot;File &quot;&amp;sSourceFile&amp;sSourceExt&amp;&quot; decoded And saved As &quot;&amp;sSourceFile&amp;sOutExt&amp;&quot;.&quot;
  End If
  sFileOut = oFSO.GetParentFolderName(sFileIn) &amp; &quot;\&quot; &amp; _
  sSourceFile &amp; sOutExt
  Set fOut = oFSO.OpenTextFile(sFileOut, 2, True )
  fOut.Write sOut
  fOut.close : Set fOut = Nothing
End Function
Function Encode(sSource, sSourceExt)
  Encode = oEncoder.EncodeScriptFile(sSourceExt, sSource, 0, 0)
  Set oEncoder = Nothing
End Function
Function Decode(sSource, sSourceExt)
  Do
    FinCode = 0
    StartCode = InStr (sSource, TagInit)
    If StartCode &gt; 0 Then
      If (InStr (StartCode, sSource, &quot;==&quot;) - StartCode) = 10 Then
        FinCode = InStr (StartCode, sSource, TagFin)
        If FinCode &gt; 0 Then
          sSource = Left (sSource, StartCode - 1) &amp; _
          DecodeH(Mid (sSource, StartCode + 12, FinCode - StartCode - 12 - 6)) &amp; _
          Mid (sSource, FinCode + 6)
        End If
      End If
    End If
  Loop Until FinCode = 0
  If Asc (Right (sSource, 1)) = 0 Then sSource = Left (sSource, Len (sSource) - 1)
  sSource = Replace (sSource,&quot;.Encode&quot;,&quot;&quot;)
  Decode = sSource
End Function
Function DecodeH(Chain)
  Dim tDecode(127)
  Const Combination = &quot;1231232332321323132311233213233211323231311231321323112331123132&quot;
  For i = 9 To 127
    tDecode(i) = &quot;JLA&quot;
  Next
  For i = 9 To 127
    ChainsTemp = Mid (oEncoder.EncodeScriptFile(&quot;.vbs&quot;, String (3, i), 0, &quot;&quot;), 13, 3)
    For j = 1 To 3
      c = Asc (Mid (ChainsTemp, j, 1))
      If Not ((c = 42) And (i = 62)) Then
        tDecode(c) = Left (tDecode(c), j - 1) &amp; Chr (i) &amp; Mid (tDecode(c), j + 1)
      End If
    Next
  Next
  Chain = Replace (Replace (Chain, &quot;@&amp;&quot;, Chr (10)), &quot;@#&quot;, Chr (13))
  Chain = Replace (Replace (Chain,&quot;@*&quot;,&quot;&gt;&quot;), &quot;@!&quot;, &quot;&lt;&quot;)
  Chain = Replace (Chain,&quot;@$&quot;,&quot;@&quot;)
  index = -1
  For i = 1 To Len (Chain)
    c = Asc (Mid (Chain, i, 1))
    If c &lt; 128 Then index = index + 1
    If (c = 9) Or ((c &gt; 31) And (c &lt; 128)) Then
      If (c &lt;&gt; 60) And (c &lt;&gt; 62) And (c &lt;&gt; 64) Then
        Chain = Left (Chain,i - 1) &amp; _
        Mid (tDecode(c), Mid (Combination, (index Mod 64) + 1, 1), 1) &amp; _
        Mid (Chain,i + 1)
      End If
    End If
  Next
  DecodeH = Chain
End Function
Sub DisplayHelp(msg)
  CRLF = Chr (13) + Chr (10)
  If msg = &quot;&quot; Then msg = msg &amp; &quot; --- About this script ---&quot; &amp; CRLF &amp; _
  &quot;Recognized file extensions: &quot; &amp; CRLF &amp; _
  &quot; vbs vbe js jse htm html asa asp cdx&quot; &amp; CRLF &amp; CRLF &amp; _
  &quot;&lt;file(s) To encode/decode&gt;&quot; &amp; CRLF &amp; _
  &quot;? &lt;help&gt;&quot;
  MsgBox msg, vbInformation , &quot;ScriptDEcoder&quot;
End Sub</code></pre></div><p>мне как бы нужно что бы файл можно было указать за ранее.<br />Спасибо за внимание.</p><p>Копия темы открыта тут </p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>http://forum.codeby.net/topic54660.html</p></div></div>]]></description>
			<author><![CDATA[null@example.com (DarkJoker1992)]]></author>
			<pubDate>Sat, 27 Sep 2014 20:03:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86804#p86804</guid>
		</item>
	</channel>
</rss>
