Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 93f44ce6 authored by autodistries's avatar autodistries
Browse files

remove temp file, edit sniffer started to support multiple adapters

parent 9fab40b9
No related branches found
Tags debian/2.8.0-4
1 merge request!1Refactoring, new features
......@@ -5,13 +5,15 @@
vars_prompt:
- name: _file
prompt: Enter the folder name to save traces in the sniffer
private: no
# - name: _file
# prompt: Enter the folder name to save traces in the sniffer
# private: no
# This will always be the mitik-sens-mod folder
- name: _location
prompt: Enter the location of the experiments
private: no
# - name: _location
# prompt: Enter the location of the experiments
# private: no
# I don't know what this parameter is (was) for
- name: _hour
prompt: Enter an hour to start the experiment
......@@ -25,18 +27,18 @@
prompt: Please specify the runtime duration in sec
private: no
- name: _interface
prompt: Please specify the interface (e.g. wlan0). For default just press enter
default: 'wlan1'
- name: _interfaces_csv
prompt: Please specify the interface(s) separated by commas (e.g. wlan0,wlan7). For default just press enter
default: 'wlan5'
private: no
- name: _filter
prompt: Please choose the filter to apply to packet capture. For default just press enter
default: 'type mgt and (subtype probe-req or subtype probe-resp or subtype beacon)'
prompt: Please frames subtype filter. Enter for default.
default: '458'
private: no
- name: _channel
prompt: Please specify the channel (integer between 1-11, default=system). For default just press enter
- name: _channels_csv
prompt: Please specify the starting channels (integer between 1-11 separated by commas, default=system). For default just press enter
default: 1
private: no
......@@ -52,6 +54,10 @@
tasks:
- set_fact:
_interfaces: "{{ _interfaces_csv.split(',') }}"
_channels: "{{ _channels_csv.split(',') }}"
- name: Create Folder
file:
path: "{{ _file }}"
......@@ -66,4 +72,4 @@
name: "ansible_scapy-sniffer {{ _hour }} {{ _minute }} {{ _channel }}"
minute: "{{ _minute }}"
hour: "{{ _hour }}"
job: "sudo python3 /home/gta/sniffers/scapy-sniffer/sniffer_GPS.py -F {{ _file }} -L {{ _location }} -i {{ _interface }} -c {{ _channel }} -f {{ _filter }} -e {{ _hash_function}} -p {{ _hash_pattern }} -t {{ _timeout }}"
\ No newline at end of file
job: "sudo python3 /home/gta/sniffers/scapy-sniffer/sniffer_GPS.py -F {{ _file }} -L {{ _location }} -i {{ _interface }} -c {{ _channel }} -f {{ _filter }} -e {{ _hash_function}} -p {{ _hash_pattern }} -t {{ _timeout }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment