An open API service indexing awesome lists of open source software.

https://github.com/ocdbytes/portsnifferrust

Simple tool build in rust using standard libs to capture open ports in a device using the (network) IP address of that device.
https://github.com/ocdbytes/portsnifferrust

networking rust standard-library

Last synced: about 1 year ago
JSON representation

Simple tool build in rust using standard libs to capture open ports in a device using the (network) IP address of that device.

Awesome Lists containing this project

README

          

# PORT SNIFFER

Simple tool build in rust using standard libs to capture open ports in a device using the (network) IP address of that device.

## Project

```sh
cargo build
cargo run -- -h
```

![IMG1](docs/1.png)

```sh
cargo run -t 1000
```

![IMG2](docs/2.png)

## Reference Libraries

Thread Lib :

Sync Lib (Creating thread channels) :

Net Lib :

**Thread Lib :**

Library to create a `thread` in the memory.

```rs
thread::spawn(move || {
// Code here
});
```

**Sync Lib :**

Library to create a thread channel with a transmittor and reciever and share the result with threads.

```rs
// tx: transmitter
// rx : reciever
let (tx, rx) = channel();
// dropping the transmittor
drop(tx);
```

**Net Lib :**

Library to interact with TCP interface and ports.

```rs
TcpStream::connect((addr, port)) {}
```