Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ho provato a scrivere il programma pbridge monothread usando la select come aveva suggerito lei.
Siccome poi nella consegna aveva detto che potevamo fare un filtro sui pacchetti a nostra scelta, ho provato ad applicare un filtro sui nomi di dominio. Il filtro lavora a livello applicativo e scorre tutto il payload alla ricerca della keyword passata da riga di comando con il parametro "-b". Il filtro ovviamente è molto inefficiente e funziona solo su messaggi non crittografati. Ho comunque lasciato il flag "-f" per i filtri BPF.
Ho poi rimosso tutta la parte di scrittura su file come aveva suggerito in classe.
Ho provato a fare una fork come aveva detto mercoledì, ma non sono sicuro di avere fatto correttamente.
Per l'esecuzione del programma passo il primo parametro allo stesso modo di pcount e poi per il secondo device uso il flag "-o".