Commit 934708b Andriy Brukhovetskyy
committed
1 parent e0944e9 commit 934708b Copy full SHA for 934708b
File tree 1 file changed +0
-30
lines changed
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -308,9 +308,6 @@ def sct(f):
308
308
309
309
310
310
def xxe (f ):
311
- if is_executable (f ):
312
- return None
313
-
314
311
STRINGS = [
315
312
b"XXEncode" ,
316
313
b"begin" ,
@@ -326,9 +323,6 @@ def xxe(f):
326
323
327
324
328
325
def hta (f ):
329
- if is_executable (f ):
330
- return None
331
-
332
326
STRINGS = [
333
327
b"<head" ,
334
328
b"<title" ,
@@ -363,9 +357,6 @@ def office_one(f):
363
357
364
358
365
359
def office_webarchive (f ):
366
- if is_executable (f ):
367
- return None
368
-
369
360
STRINGS = [
370
361
b"<o:Pages>" ,
371
362
b"<o:DocumentProperties>" ,
@@ -444,9 +435,6 @@ def office_ole(f):
444
435
445
436
446
437
def powershell (f ):
447
- if is_executable (f ):
448
- return None
449
-
450
438
POWERSHELL_STRS = [
451
439
b"$PSHOME" ,
452
440
b"Get-WmiObject" ,
@@ -469,9 +457,6 @@ def powershell(f):
469
457
470
458
471
459
def javascript (f ):
472
- if is_executable (f ):
473
- return None
474
-
475
460
JS_STRS = [
476
461
b"var " ,
477
462
b"function " ,
@@ -497,18 +482,12 @@ def javascript(f):
497
482
498
483
499
484
def wsf (f ):
500
- if is_executable (f ):
501
- return None
502
-
503
485
match = re .search (b'<script\\ s+language="(J|VB|Perl)Script"' , f .contents , re .I )
504
486
if match :
505
487
return "wsf"
506
488
507
489
508
490
def pub (f ):
509
- if is_executable (f ):
510
- return None
511
-
512
491
PUB_STRS = [
513
492
b"Microsoft Publisher" ,
514
493
b"MSPublisher" ,
@@ -523,9 +502,6 @@ def pub(f):
523
502
524
503
525
504
def visualbasic (f ):
526
- if is_executable (f ):
527
- return None
528
-
529
505
VB_STRS = [
530
506
b"Dim " ,
531
507
b"\x00 D\x00 i\x00 m\x00 " ,
@@ -575,9 +551,6 @@ def dmg(f):
575
551
576
552
577
553
def vbe_jse (f ):
578
- if is_executable (f ):
579
- return None
580
-
581
554
if b"#@~^" in f .contents [:100 ]:
582
555
data = vbe_decode_file ("" , f .contents )
583
556
if data :
@@ -597,9 +570,6 @@ def udf(f):
597
570
598
571
599
572
def inf (f ):
600
- if is_executable (f ):
601
- return None
602
-
603
573
STRINGS = [
604
574
# b"[version]",
605
575
b"Signature=" ,
You can’t perform that action at this time.
0 commit comments