onotelli/justniffer
onotelli/justniffer has 229 GitHub stars and 59 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-13 01:09 UTC. Last push 2026-07-21.
Justniffer Just A Network TCP Packet Sniffer. Justniffer is a network protocol analyzer that captures network traffic and produces logs in a customized way, can emulate web server log files, track response times and extract all "intercepted" files from the HTTP traffic
可以做什么
- HTTP request/response decoding
- Customizable log formats for any TCP‑based protocol
- Performance metrics: request time, response time, idle time, connection time
- libpcap‑based capture (live or from .pcap files)
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Justniffer
Overview
Justniffer is a network TCP packet sniffer and logging tool designed to capture, decode, and analyze TCP/IP traffic with a strong focus on HTTP. Its flexible logging engine allows it to adapt to virtually any TCP‑based protocol, making it useful for debugging, performance analysis, and custom traffic inspection.
Justniffer can decode HTTP requests and responses, extracting:
- Client and server IP addresses
- Requested URLs
- HTTP headers
- Message bodies
- TLS info
- Timing information (request time, response time, idle time, etc.)
For non‑HTTP traffic, Justniffer provides a powerful and customizable logging system that allows you to extract any relevant information from the TCP data stream.
Packet capture is performed using libpcap, ensuring compatibility with standard capture formats and tools such as tcpdump.
Features
- HTTP request/response decoding
- Customizable log formats for any TCP‑based protocol
- Performance metrics: request time, response time, idle time, connection time
sequenceDiagram
participant Client
participant Server
%% Connection setup
Client->>Server: SYN (connect)
Note right of Server: %connection.time
Server-->>Client: SYN/ACK
Client->>Server: ACK
Note right of Server: ESTABLISHED
%% Idle before request
Note right of Server: %idle.time.0\n(after connection, before request)
%% Request phase
Client->>Server: Request (first packet)
Server-->>Client: ACK
Client->>Server: Request (data...)
Note right of Server: %request.time
Server-->>Client: ACK
Client->>Server: Request (last packet)
Server-->>Client: ACK
%% Response phase
Note right of Server: %response.time.begin
Server-->>Client: Response (first packet)
Client->>Server: ACK
Server-->>Client: Response (data...)
Note right of Server: %response.time.end
Client->>Server: ACK
Server-->>Client: Response (last packet)
Client->>Server: ACK
%% Idle after response
Note right of Server: %idle.time.1\n(after response, before next request/close)
%% Connection close
Server-->>Client: CLOSE
- libpcap‑based capture (live or from
.pcapfiles) - Promiscuous mode support for passive monitoring
- Extensible via external scripts (bash, Python, Perl, ELF binaries) — Learn more
- Reconstructs TCP streams including reordering, retransmissions, fragmentation
Quick Start
Install on Ubuntu
sudo apt install software-properties-common
sudo add-apt-repository ppa:oreste-notelli/ppa
sudo apt update
sudo apt install justniffer
Capture HTTP traffic in access‑log style
justniffer -i eth0
Add response time to each log entry
justniffer -i eth0 -a " %response.time"
Capture full HTTP requests and responses
justniffer -i eth0 -r
Use a custom log format
justniffer -i eth0 -l "%request.timestamp %source.ip %dest.ip %request.header.host %request.url"
Read from a PCAP file
justniffer -f file.cap
Examples
Example 1 — Retrieve HTTP traffic in access‑log format
justniffer -i eth0
output:
192.168.2.2 - - [15/Apr/2009:17:19:57 +0200] "GET /sflogo.php?group_id=205860&type=2 HTTP/1.1" 200 0 "" "Mozilla/5.0 ..."
...
Example 2 — Append additional fields (e.g., HTTP response time)
justniffer -i eth0 -a " %response.time"
output:
192.168.2.5 - - [22/Apr/2009:22:27:36 +0200] "GET /sflogo.php?group_id=205860&type=2 HTTP/1.1" ... 0.427993
...
Example 3 — Capture all TCP traffic
(add -u or -x to encode unprintable characters)
justniffer -i eth0 -r
output:
GET /doc/maint-guide/ch-upload.en.html HTTP/1.1
Host: www.debian.org
...
Example 4 — Define a completely custom log format
justniffer -i eth0 -l "%request.timestamp %source.ip %dest.ip %request.header.host %request.url"
output:
06/28/11 13:30:48 192.168.2.2 72.14.221.118 i1.ytimg.com /vi/TjSk6CVN5LY/default.jpg
...
Example 5 — Read from a capture file
justniffer -f /file.cap
Documentation
Full documentation, advanced examples, and usage guides:
👉 https://onotelli.github.io/justniffer/
Contributing
Pull requests, bug reports, and feature suggestions are welcome.
License
Justniffer is released under the GPLv3 license.
探索相关项目
trimstray/the-book-of-secret-knowledge
汇集各类启发灵感的清单、手册、速查表、博客、技巧、单行命令、CLI/Web 工具等内容。
258,113 星标Hack-with-Github/Awesome-Hacking
面向黑客、渗透测试人员与安全研究人员的各类 Awesome 清单合集。
125,360 星标swisskyrepo/PayloadsAllTheThings
一份用于 Web 应用安全以及渗透测试/CTF 的实用 payload 与绕过方法列表。
82,623 星标caddyserver/caddy
快速、可扩展的跨平台 HTTP/1-2-3 Web 服务器,支持自动 HTTPS
79,020 星标