Skip to content

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

Notifications You must be signed in to change notification settings

ocdbytes/PortSnifferRust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

cargo build
cargo run -- -h

IMG1

cargo run -t 1000 <IP_ADDR>

IMG2

Reference Libraries

Thread Lib : https://doc.rust-lang.org/std/thread/

Sync Lib (Creating thread channels) : https://doc.rust-lang.org/std/sync/index.html

Net Lib : https://doc.rust-lang.org/std/net/struct.TcpStream.html

Thread Lib :

Library to create a thread in the memory.

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

Sync Lib :

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

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

Net Lib :

Library to interact with TCP interface and ports.

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages