WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

Matlab Aufgabe - Keystrokes vergleichen

 

norge
Forum-Newbie

Forum-Newbie


Beiträge: 2
Anmeldedatum: 13.11.18
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 13.11.2018, 20:06     Titel: Matlab Aufgabe - Keystrokes vergleichen
  Antworten mit Zitat      
Hallo,

ich habe wenig Erfahrung mit Matlab und jetzt habe ich folgende Aufgabe bekommen:

We have used Wireshark to captured a user typing the command grep 10 times and typing the command sudo 10 times. Both captures are recorded and saved in (separate) pcapng-files. From both of the files you need to extract the timing information related to the typing of each of the 10 commands, where each command consist of typing 5 characters (4 letters from the command + enter).
Then there is another Wireshark capture where the same user typed the commands grep and sudo again. This time he typed 10 commands, which were each time randomly selected. For each of these 10 typings you have to determine if the user typed grep or sudo. This has to be done, based on the training from the 2 previous files, in combination with the timing in the 3rd file.
The software to determine for each of the 10 unknown commands if it is grep or sudo has to be written in Matlab, as usual, but you can use 3rd party software to extract the relevant information from the pcapng-files. While testing this assignment I used Wireshark to open a pcapng-file, used a filter to select only the relevant information (i.e. the ssh packets from the client), and saved that information as a csv-file, which then was used by Matlab to extract the timing information.


Bis jetzt habe ich die pcapng-file ausgelesen und in eine cdv file formatiert und in Matlab geladen. Wie kann ich die verschiedenen Werte vergleichen? In dem ich sie in ein Array stecke oder in eine Matrix? Steh da ziemlich auf dem Schlauch.
Kann mir jemand mit der Aufgabe helfen?

keystroke.m
 Beschreibung:

Download
 Dateiname:  keystroke.m
 Dateigröße:  163 Bytes
 Heruntergeladen:  185 mal
Private Nachricht senden Benutzer-Profile anzeigen


Jan S
Moderator

Moderator


Beiträge: 11.057
Anmeldedatum: 08.07.10
Wohnort: Heidelberg
Version: 2009a, 2016b
     Beitrag Verfasst am: 14.11.2018, 15:17     Titel: Re: Matlab Aufgabe - Keystrokes vergleichen
  Antworten mit Zitat      
Hallo norge,

Was genau ist Deine Frage?
Was soll der gepostete Code tun? Die Variable "fileid" wird zwar zunächst per fopen erstellt, dann aber von dlmread überschrieben. Deshalb kann die Schliefe nicht laufen.

Zitat:
Bis jetzt habe ich die pcapng-file ausgelesen und in eine cdv file formatiert und in Matlab geladen.

Bisher ist nicht klar, was "in Matlab geladen" bedeutet.

Zitat:
Wie kann ich die verschiedenen Werte vergleichen?

Welche Werte möchtest Du womit vergleichen?

Gruß, Jan
Private Nachricht senden Benutzer-Profile anzeigen
 
Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2024 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.