Skip to content

Commit

Permalink
Updated cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolaycc committed Mar 12, 2024
1 parent 06c2ae4 commit 4fc980e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,29 @@

- Packet Sniffer in GO

## build

```bash
$ make
```

## Tests

```bash
$ make && sudo ./tests
$ sudo ./tests
```

## CMD

```bash
$ # TODO: sniff-cli
$ sudo sniff -h
Usage of ./sniff:
-i string
Network Interface (default "lo")
-l int
Loop quantity (default 1)
-ls
List of Network Interface
-o string
Output log file
```
2 changes: 0 additions & 2 deletions cmd/sniff.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ func main() {
if !slices.Contains(ifas, *ifaFlag) {
panic("ERROR: Not found Interface")
}

fmt.Println(*oFlag, *lFlag, *ifaFlag)
defer fileds.Close()

s.CreateCap(*ifaFlag)
Expand Down

0 comments on commit 4fc980e

Please sign in to comment.