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.
- Host: GitHub
- URL: https://github.com/ocdbytes/portsnifferrust
- Owner: ocdbytes
- Created: 2023-07-16T19:53:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-16T19:53:49.000Z (over 2 years ago)
- Last Synced: 2024-04-14T10:46:10.447Z (almost 2 years ago)
- Topics: networking, rust, standard-library
- Language: Rust
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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
```

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

## 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)) {}
```