Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
f3446ebf2e | ||
|
724662be42 |
6 changed files with 8 additions and 11 deletions
0
.gitignore
vendored
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
7
Readme.md
Executable file → Normal file
7
Readme.md
Executable file → Normal file
|
@ -55,7 +55,12 @@ IP Reporter is a Python-based tool for network administrators to monitor and cap
|
|||
|
||||
```
|
||||
|
||||
3. **GUI Interface**:
|
||||
or
|
||||
```sh
|
||||
python3 qt.py
|
||||
```
|
||||
|
||||
4. **GUI Interface**:
|
||||
- Click "Start" to begin packet sniffing.
|
||||
- Captured IP and MAC addresses will be displayed in the table.
|
||||
- Double-click on an IP address to open it in your default web browser.
|
||||
|
|
0
gui.py
Executable file → Normal file
0
gui.py
Executable file → Normal file
0
license
Executable file → Normal file
0
license
Executable file → Normal file
8
qt.py
Executable file → Normal file
8
qt.py
Executable file → Normal file
|
@ -47,9 +47,6 @@ class IPReporter(QMainWindow):
|
|||
|
||||
self.listening = False
|
||||
|
||||
# Set to keep track of unique IP addresses
|
||||
self.unique_ips = set()
|
||||
|
||||
def extract_packet_info(self, packet):
|
||||
# Check if the packet is an IP packet with UDP layer
|
||||
if IP in packet and UDP in packet:
|
||||
|
@ -64,11 +61,6 @@ class IPReporter(QMainWindow):
|
|||
udp_destination_port == destination_port):
|
||||
# Extract the MAC address from the Ethernet layer
|
||||
source_mac = packet[Ether].src
|
||||
|
||||
# Check if the IP address is already in the set
|
||||
if source_ip not in self.unique_ips:
|
||||
# Add the IP address to the set
|
||||
self.unique_ips.add(source_ip)
|
||||
# Display the information in the tree view
|
||||
self.tree.addTopLevelItem(QTreeWidgetItem([source_ip, source_mac]))
|
||||
|
||||
|
|
0
reporter.py
Executable file → Normal file
0
reporter.py
Executable file → Normal file
Loading…
Reference in a new issue