From dca755ef0845d5e9b76b3bada5faef56131390ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 21 Mar 2016 21:24:15 +0100 Subject: [PATCH] Improve examples --- examples/copy_list.py | 2 +- examples/create_events.py | 2 +- examples/get_network_activity.py | 2 +- examples/last.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 examples/copy_list.py diff --git a/examples/copy_list.py b/examples/copy_list.py old mode 100644 new mode 100755 index b7a1a55..bd60e5b --- a/examples/copy_list.py +++ b/examples/copy_list.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- import sys diff --git a/examples/create_events.py b/examples/create_events.py index 2f0e68a..d7e8649 100755 --- a/examples/create_events.py +++ b/examples/create_events.py @@ -16,7 +16,7 @@ def init(url, key): return PyMISP(url, key, True, 'json') if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Send malware sample to MISP.') + parser = argparse.ArgumentParser(description='Create an event on MISP.') parser.add_argument("-d", "--distrib", type=int, help="The distribution setting used for the attributes and for the newly created event, if relevant. [0-3].") parser.add_argument("-i", "--info", help="Used to populate the event info field if no event ID supplied.") parser.add_argument("-a", "--analysis", type=int, help="The analysis level of the newly created event, if applicatble. [0-2]") diff --git a/examples/get_network_activity.py b/examples/get_network_activity.py index e854393..433a9d8 100755 --- a/examples/get_network_activity.py +++ b/examples/get_network_activity.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- """ diff --git a/examples/last.py b/examples/last.py index 5eab820..75f8162 100755 --- a/examples/last.py +++ b/examples/last.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from pymisp import PyMISP -from keys import misp_url, misp_key,misp_verifycert +from keys import misp_url, misp_key, misp_verifycert import argparse import os import json