From a5df84c008252b8d6dd560639a34edaf162f19c2 Mon Sep 17 00:00:00 2001 From: Aymeric Vincent Date: Thu, 5 Jan 2017 16:29:49 +0100 Subject: fix permissions --- test/ir/analysis.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 test/ir/analysis.py (limited to 'test') diff --git a/test/ir/analysis.py b/test/ir/analysis.py old mode 100755 new mode 100644 -- cgit 1.4.1 From 28d0696beaad18624255d631ff997dd4ac69f182 Mon Sep 17 00:00:00 2001 From: Aymeric Vincent Date: Thu, 5 Jan 2017 16:45:17 +0100 Subject: use python2 as executable name, give adequate permissions --- example/asm/shellcode.py | 2 +- example/jitter/arm.py | 2 +- example/jitter/arm_sc.py | 2 +- example/jitter/example_types.py | 2 +- example/jitter/mips32.py | 2 +- example/jitter/msp430.py | 2 +- test/arch/aarch64/unit/mn_ubfm.py | 3 ++- test/arch/arm/sem.py | 2 +- test/arch/mips32/unit/mn_bcc.py | 3 ++- test/arch/msp430/sem.py | 2 +- test/arch/x86/sem.py | 2 +- test/arch/x86/unit/mn_daa.py | 2 +- test/arch/x86/unit/mn_das.py | 3 ++- test/arch/x86/unit/mn_float.py | 2 +- test/arch/x86/unit/mn_int.py | 2 +- test/arch/x86/unit/mn_pcmpeq.py | 3 ++- test/arch/x86/unit/mn_pextr.py | 3 ++- test/arch/x86/unit/mn_pinsr.py | 3 ++- test/arch/x86/unit/mn_pmaxu.py | 2 +- test/arch/x86/unit/mn_pminu.py | 2 +- test/arch/x86/unit/mn_pmovmskb.py | 3 ++- test/arch/x86/unit/mn_pshufb.py | 2 +- test/arch/x86/unit/mn_psrl_psll.py | 2 +- test/arch/x86/unit/mn_punpck.py | 2 +- test/arch/x86/unit/mn_pushpop.py | 3 ++- test/arch/x86/unit/mn_seh.py | 2 +- test/arch/x86/unit/mn_stack.py | 3 ++- test/arch/x86/unit/mn_strings.py | 2 +- test/core/interval.py | 2 +- test/core/parse_asm.py | 2 +- test/core/test_types.py | 2 +- test/core/utils.py | 3 ++- test/expression/expression_helper.py | 2 +- test/expression/stp.py | 2 +- test/ir/ir2C.py | 2 +- test/ir/symbexec.py | 2 +- test/os_dep/win_api_x86_32.py | 2 +- 37 files changed, 47 insertions(+), 37 deletions(-) mode change 100644 => 100755 example/asm/shellcode.py mode change 100644 => 100755 example/jitter/arm.py mode change 100644 => 100755 example/jitter/arm_sc.py mode change 100644 => 100755 example/jitter/example_types.py mode change 100644 => 100755 example/jitter/mips32.py mode change 100644 => 100755 example/jitter/msp430.py mode change 100644 => 100755 test/arch/aarch64/unit/mn_ubfm.py mode change 100644 => 100755 test/arch/arm/sem.py mode change 100644 => 100755 test/arch/mips32/unit/mn_bcc.py mode change 100644 => 100755 test/arch/msp430/sem.py mode change 100644 => 100755 test/arch/x86/sem.py mode change 100644 => 100755 test/arch/x86/unit/mn_daa.py mode change 100644 => 100755 test/arch/x86/unit/mn_das.py mode change 100644 => 100755 test/arch/x86/unit/mn_float.py mode change 100644 => 100755 test/arch/x86/unit/mn_int.py mode change 100644 => 100755 test/arch/x86/unit/mn_pcmpeq.py mode change 100644 => 100755 test/arch/x86/unit/mn_pextr.py mode change 100644 => 100755 test/arch/x86/unit/mn_pinsr.py mode change 100644 => 100755 test/arch/x86/unit/mn_pmaxu.py mode change 100644 => 100755 test/arch/x86/unit/mn_pminu.py mode change 100644 => 100755 test/arch/x86/unit/mn_pmovmskb.py mode change 100644 => 100755 test/arch/x86/unit/mn_pshufb.py mode change 100644 => 100755 test/arch/x86/unit/mn_psrl_psll.py mode change 100644 => 100755 test/arch/x86/unit/mn_punpck.py mode change 100644 => 100755 test/arch/x86/unit/mn_pushpop.py mode change 100644 => 100755 test/arch/x86/unit/mn_seh.py mode change 100644 => 100755 test/arch/x86/unit/mn_stack.py mode change 100644 => 100755 test/arch/x86/unit/mn_strings.py mode change 100644 => 100755 test/core/interval.py mode change 100644 => 100755 test/core/parse_asm.py mode change 100644 => 100755 test/core/test_types.py mode change 100644 => 100755 test/core/utils.py mode change 100644 => 100755 test/expression/expression_helper.py mode change 100644 => 100755 test/expression/stp.py mode change 100644 => 100755 test/ir/ir2C.py mode change 100644 => 100755 test/ir/symbexec.py mode change 100644 => 100755 test/os_dep/win_api_x86_32.py (limited to 'test') diff --git a/example/asm/shellcode.py b/example/asm/shellcode.py old mode 100644 new mode 100755 index f31c88c2..3ff11489 --- a/example/asm/shellcode.py +++ b/example/asm/shellcode.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 from argparse import ArgumentParser from pdb import pm diff --git a/example/jitter/arm.py b/example/jitter/arm.py old mode 100644 new mode 100755 index 7bd354bc..eac6c0e6 --- a/example/jitter/arm.py +++ b/example/jitter/arm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import logging from pdb import pm diff --git a/example/jitter/arm_sc.py b/example/jitter/arm_sc.py old mode 100644 new mode 100755 index ca765d31..6644a440 --- a/example/jitter/arm_sc.py +++ b/example/jitter/arm_sc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- from miasm2.analysis.sandbox import Sandbox_Linux_armb_str from miasm2.analysis.sandbox import Sandbox_Linux_arml_str diff --git a/example/jitter/example_types.py b/example/jitter/example_types.py old mode 100644 new mode 100755 index c37c3b84..7ed964c2 --- a/example/jitter/example_types.py +++ b/example/jitter/example_types.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 """This script is just a short example of common usages for miasm2.core.types. For a more complete view of what is possible, tests/core/types.py covers most of the module possibilities, and the module doc gives useful information diff --git a/example/jitter/mips32.py b/example/jitter/mips32.py old mode 100644 new mode 100755 index a03cac8e..7c8900f8 --- a/example/jitter/mips32.py +++ b/example/jitter/mips32.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- from argparse import ArgumentParser from miasm2.analysis import debugging diff --git a/example/jitter/msp430.py b/example/jitter/msp430.py old mode 100644 new mode 100755 index 89ecd930..5c8b7197 --- a/example/jitter/msp430.py +++ b/example/jitter/msp430.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- from argparse import ArgumentParser from miasm2.analysis import debugging diff --git a/test/arch/aarch64/unit/mn_ubfm.py b/test/arch/aarch64/unit/mn_ubfm.py old mode 100644 new mode 100755 index 6f1857fb..25d1cde7 --- a/test/arch/aarch64/unit/mn_ubfm.py +++ b/test/arch/aarch64/unit/mn_ubfm.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test diff --git a/test/arch/arm/sem.py b/test/arch/arm/sem.py old mode 100644 new mode 100755 index 922642d3..3695fd29 --- a/test/arch/arm/sem.py +++ b/test/arch/arm/sem.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest diff --git a/test/arch/mips32/unit/mn_bcc.py b/test/arch/mips32/unit/mn_bcc.py old mode 100644 new mode 100755 index 4818c171..e9b28e77 --- a/test/arch/mips32/unit/mn_bcc.py +++ b/test/arch/mips32/unit/mn_bcc.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test diff --git a/test/arch/msp430/sem.py b/test/arch/msp430/sem.py old mode 100644 new mode 100755 index 4d39d357..433055e0 --- a/test/arch/msp430/sem.py +++ b/test/arch/msp430/sem.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest diff --git a/test/arch/x86/sem.py b/test/arch/x86/sem.py old mode 100644 new mode 100755 index 93d2ff83..d2198847 --- a/test/arch/x86/sem.py +++ b/test/arch/x86/sem.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- # Loosely based on ARM's sem.py diff --git a/test/arch/x86/unit/mn_daa.py b/test/arch/x86/unit/mn_daa.py old mode 100644 new mode 100755 index d07bf849..21d609e4 --- a/test/arch/x86/unit/mn_daa.py +++ b/test/arch/x86/unit/mn_daa.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_das.py b/test/arch/x86/unit/mn_das.py old mode 100644 new mode 100755 index 2d8102d9..08df1a7a --- a/test/arch/x86/unit/mn_das.py +++ b/test/arch/x86/unit/mn_das.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_float.py b/test/arch/x86/unit/mn_float.py old mode 100644 new mode 100755 index d704de73..f31a25e3 --- a/test/arch/x86/unit/mn_float.py +++ b/test/arch/x86/unit/mn_float.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_int.py b/test/arch/x86/unit/mn_int.py old mode 100644 new mode 100755 index 9d964220..09792371 --- a/test/arch/x86/unit/mn_int.py +++ b/test/arch/x86/unit/mn_int.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from miasm2.jitter.csts import EXCEPT_INT_XX diff --git a/test/arch/x86/unit/mn_pcmpeq.py b/test/arch/x86/unit/mn_pcmpeq.py old mode 100644 new mode 100755 index 5d0a59c6..22760db4 --- a/test/arch/x86/unit/mn_pcmpeq.py +++ b/test/arch/x86/unit/mn_pcmpeq.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_pextr.py b/test/arch/x86/unit/mn_pextr.py old mode 100644 new mode 100755 index 696f077b..c4548d67 --- a/test/arch/x86/unit/mn_pextr.py +++ b/test/arch/x86/unit/mn_pextr.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_pinsr.py b/test/arch/x86/unit/mn_pinsr.py old mode 100644 new mode 100755 index 74120e5c..4beaba13 --- a/test/arch/x86/unit/mn_pinsr.py +++ b/test/arch/x86/unit/mn_pinsr.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_pmaxu.py b/test/arch/x86/unit/mn_pmaxu.py old mode 100644 new mode 100755 index 527b966f..752b9132 --- a/test/arch/x86/unit/mn_pmaxu.py +++ b/test/arch/x86/unit/mn_pmaxu.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_pminu.py b/test/arch/x86/unit/mn_pminu.py old mode 100644 new mode 100755 index d667df4e..3be95a9a --- a/test/arch/x86/unit/mn_pminu.py +++ b/test/arch/x86/unit/mn_pminu.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_pmovmskb.py b/test/arch/x86/unit/mn_pmovmskb.py old mode 100644 new mode 100755 index b7e7b897..a3eb65f5 --- a/test/arch/x86/unit/mn_pmovmskb.py +++ b/test/arch/x86/unit/mn_pmovmskb.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_pshufb.py b/test/arch/x86/unit/mn_pshufb.py old mode 100644 new mode 100755 index 5f4c7370..d10c18e3 --- a/test/arch/x86/unit/mn_pshufb.py +++ b/test/arch/x86/unit/mn_pshufb.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_psrl_psll.py b/test/arch/x86/unit/mn_psrl_psll.py old mode 100644 new mode 100755 index 44126b96..a5428dab --- a/test/arch/x86/unit/mn_psrl_psll.py +++ b/test/arch/x86/unit/mn_psrl_psll.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_punpck.py b/test/arch/x86/unit/mn_punpck.py old mode 100644 new mode 100755 index f6a4772e..b519b4c3 --- a/test/arch/x86/unit/mn_punpck.py +++ b/test/arch/x86/unit/mn_punpck.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_pushpop.py b/test/arch/x86/unit/mn_pushpop.py old mode 100644 new mode 100755 index 1a3f5517..ffcc3fa5 --- a/test/arch/x86/unit/mn_pushpop.py +++ b/test/arch/x86/unit/mn_pushpop.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test_16, Asm_Test_32 diff --git a/test/arch/x86/unit/mn_seh.py b/test/arch/x86/unit/mn_seh.py old mode 100644 new mode 100755 index d6fc56ca..dd3fd4ef --- a/test/arch/x86/unit/mn_seh.py +++ b/test/arch/x86/unit/mn_seh.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from miasm2.os_dep.win_api_x86_32_seh import fake_seh_handler, build_teb, \ diff --git a/test/arch/x86/unit/mn_stack.py b/test/arch/x86/unit/mn_stack.py old mode 100644 new mode 100755 index 3bce3979..f9cfc60a --- a/test/arch/x86/unit/mn_stack.py +++ b/test/arch/x86/unit/mn_stack.py @@ -1,4 +1,5 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 + import sys from asm_test import Asm_Test_32 diff --git a/test/arch/x86/unit/mn_strings.py b/test/arch/x86/unit/mn_strings.py old mode 100644 new mode 100755 index 5e7269f7..3cb70e2a --- a/test/arch/x86/unit/mn_strings.py +++ b/test/arch/x86/unit/mn_strings.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 import sys from asm_test import Asm_Test_32 diff --git a/test/core/interval.py b/test/core/interval.py old mode 100644 new mode 100755 index 4572ac50..ab18e567 --- a/test/core/interval.py +++ b/test/core/interval.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- from miasm2.core.interval import * diff --git a/test/core/parse_asm.py b/test/core/parse_asm.py old mode 100644 new mode 100755 index a488d075..e91c8c8c --- a/test/core/parse_asm.py +++ b/test/core/parse_asm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest diff --git a/test/core/test_types.py b/test/core/test_types.py old mode 100644 new mode 100755 index f6e5cb13..ab1d47c4 --- a/test/core/test_types.py +++ b/test/core/test_types.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 # miasm2.core.types tests diff --git a/test/core/utils.py b/test/core/utils.py old mode 100644 new mode 100755 index f7de6565..b506f904 --- a/test/core/utils.py +++ b/test/core/utils.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 + #-*- coding:utf-8 -*- import unittest diff --git a/test/expression/expression_helper.py b/test/expression/expression_helper.py old mode 100644 new mode 100755 index a3a8fba4..6c800020 --- a/test/expression/expression_helper.py +++ b/test/expression/expression_helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest diff --git a/test/expression/stp.py b/test/expression/stp.py old mode 100644 new mode 100755 index fe09e865..b911a2a4 --- a/test/expression/stp.py +++ b/test/expression/stp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest diff --git a/test/ir/ir2C.py b/test/ir/ir2C.py old mode 100644 new mode 100755 index 36683904..395703ed --- a/test/ir/ir2C.py +++ b/test/ir/ir2C.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest diff --git a/test/ir/symbexec.py b/test/ir/symbexec.py old mode 100644 new mode 100755 index 24b02341..2e776f74 --- a/test/ir/symbexec.py +++ b/test/ir/symbexec.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest diff --git a/test/os_dep/win_api_x86_32.py b/test/os_dep/win_api_x86_32.py old mode 100644 new mode 100755 index bb13138f..2e22ccea --- a/test/os_dep/win_api_x86_32.py +++ b/test/os_dep/win_api_x86_32.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#! /usr/bin/env python2 #-*- coding:utf-8 -*- import unittest -- cgit 1.4.1 From d78bda6718313adb034d3f7d9639251be54cf2dd Mon Sep 17 00:00:00 2001 From: Aymeric Vincent Date: Thu, 5 Jan 2017 16:46:10 +0100 Subject: these files are not top level executables, adapt --- test/arch/aarch64/unit/asm_test.py | 8 -------- test/arch/mips32/unit/asm_test.py | 8 -------- test/arch/x86/unit/asm_test.py | 8 -------- 3 files changed, 24 deletions(-) (limited to 'test') diff --git a/test/arch/aarch64/unit/asm_test.py b/test/arch/aarch64/unit/asm_test.py index a9e6cfc6..cfb2a81c 100644 --- a/test/arch/aarch64/unit/asm_test.py +++ b/test/arch/aarch64/unit/asm_test.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python import sys import os @@ -10,13 +9,6 @@ from miasm2.core import asmbloc from elfesteem.strpatchwork import StrPatchwork from miasm2.analysis.machine import Machine from miasm2.jitter.csts import * -from pdb import pm - - -filename = os.environ.get('PYTHONSTARTUP') -if filename and os.path.isfile(filename): - execfile(filename) - reg_and_id = dict(mn_aarch64.regs.all_regs_ids_byname) diff --git a/test/arch/mips32/unit/asm_test.py b/test/arch/mips32/unit/asm_test.py index 7272c15e..35d87d85 100644 --- a/test/arch/mips32/unit/asm_test.py +++ b/test/arch/mips32/unit/asm_test.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python import sys import os @@ -10,17 +9,10 @@ from miasm2.core import asmbloc from elfesteem.strpatchwork import StrPatchwork from miasm2.analysis.machine import Machine from miasm2.jitter.csts import * -from pdb import pm - - -filename = os.environ.get('PYTHONSTARTUP') -if filename and os.path.isfile(filename): - execfile(filename) reg_and_id = dict(mn_mips32.regs.all_regs_ids_byname) - class Asm_Test(object): def __init__(self, jitter): diff --git a/test/arch/x86/unit/asm_test.py b/test/arch/x86/unit/asm_test.py index 4e1d03b8..bf97dbe4 100644 --- a/test/arch/x86/unit/asm_test.py +++ b/test/arch/x86/unit/asm_test.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python import sys import os @@ -10,13 +9,6 @@ from miasm2.core import asmbloc from elfesteem.strpatchwork import StrPatchwork from miasm2.analysis.machine import Machine from miasm2.jitter.csts import * -from pdb import pm - - -filename = os.environ.get('PYTHONSTARTUP') -if filename and os.path.isfile(filename): - execfile(filename) - reg_and_id = dict(mn_x86.regs.all_regs_ids_byname) -- cgit 1.4.1 From 1940e5baa0310bb6a3090f4a5a3cc832b024f03f Mon Sep 17 00:00:00 2001 From: Aymeric Vincent Date: Thu, 5 Jan 2017 16:48:37 +0100 Subject: make this one executable, it's probably the most used toplevel executable --- test/test_all.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 test/test_all.py (limited to 'test') diff --git a/test/test_all.py b/test/test_all.py old mode 100644 new mode 100755 index 68830b48..bec0c78d --- a/test/test_all.py +++ b/test/test_all.py @@ -1,3 +1,5 @@ +#! /usr/bin/env python2 + import argparse import time import os -- cgit 1.4.1