ViperMonkey icon indicating copy to clipboard operation
ViperMonkey copied to clipboard

Expected end of text error throwing in script

Open wroersma opened this issue 8 years ago • 7 comments


PARSING VBA CODE: INFO parsed Sub Img_Painted ([hHZIubL as Long, AoLnF as IInkRectangle]): 3 statement(s) Module 'ThisDocument' Sub Img_Painted ([hHZIubL as Long, AoLnF as IInkRectangle]): 3 statement(s)

*** PARSING ERROR *** Public Sub xvkBjM() ^

Expected end of text (at char 526), (line:16, col:1)

TRACING VBA CODE (entrypoint = Auto*): Recorded Actions: +--------+------------+-------------+ | Action | Parameters | Description | +--------+------------+-------------+ +--------+------------+-------------+

wroersma avatar Oct 05 '16 12:10 wroersma

Could you please share the full VBA code, or a hash/link to the malware sample? Thanks!

decalage2 avatar Oct 05 '16 19:10 decalage2

6be0c3995eb39a80b5b47b6e81b7177c

bryannolen avatar Oct 07 '16 02:10 bryannolen

OK, found it:

  • https://www.threatcrowd.org/malware.php?md5=6be0c3995eb39a80b5b47b6e81b7177c
  • https://www.hybrid-analysis.com/sample/9143bfc1f4e4524b755c883a3307c8529cc050558dd9c46428762258a3048adc/?environmentId=100

decalage2 avatar Oct 10 '16 10:10 decalage2

Encountering a similar issue: Set ProjectWhileFor = VshiMaoLiznula.Environment(VshiMaoHeadHunter(2 + 2)) VshiMaoLAKOPPC = ProjectWhileFor(VshiMaoHeadHunter(6)) ProjectDarvin = 0 MoveSheets "", "", "" End Sub


PARSING VBA CODE: Module 'Module2'

*** PARSING ERROR *** Public Const ProjectTransformation = "avetof" ^ Expected end of text (at char 31), (line:2, col:1)

and


PARSING VBA CODE: Module 'Module3'

*** PARSING ERROR *** Public VshiMao4 As String ^ Expected end of text (at char 35), (line:4, col:1)

No recorded actions. https://virustotal.com/en/file/b804d05fba5d07e03997272d111304d36000152ac5145b74d6208d903244e45e/analysis/

I can upload the file if you need a copy.

scherma avatar Dec 09 '16 23:12 scherma

Same type of issue when parsing

PARSING VBA CODE: *** PARSING ERROR *** Sub abcdef() ^ Expected {" " | " "} (at char 0), (line:1, col:1)

For some reason it seems to expect the sub to contain {}.

nicolasvillatte avatar Jan 06 '17 10:01 nicolasvillatte

I ran into this error too. Ran vmonkey.py -a fixed the issue.

Beercow avatar Mar 16 '17 15:03 Beercow

How to scan the ".cls" file in vipermonkey tool. Right now I am scanning a VBA macro code saved in a simple text file. While parsing the VBA code it is throwing an error : "Sub AutoOpen() ^ Expected end of text (at char 0), (line:1, col:1) ERROR Parse Error. Processing Aborted."

Source code is:

Sub AutoOpen() If WsGQFM Or 2 Then tBFjh = "TI" End If Shell("calc.exe") End Sub()

harin8 avatar Dec 05 '19 06:12 harin8