Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

farrokhi/fsipd

Open more actions menu

Repository files navigation

Test

fsipd

Fake SIP Daemon - A minimal SIP honeypot

Version 1.1.0

Overview

fsipd is a lightweight SIP honeypot that listens on TCP/UDP port 5060 for both IPv4 and IPv6 (when available). It logs all incoming SIP requests with source/destination IP addresses and port numbers in CSV format.

Features

  • Dual protocol support (TCP and UDP)
  • IPv4 and IPv6 support
  • Multi-threaded architecture
  • CSV logging for easy analysis
  • Syslog integration option
  • Signal-safe log rotation (SIGHUP)
  • Sanitizes multiline messages to preserve CSV integrity
  • Configurable log and PID file paths

Log Format

Logs are written in CSV format with the following fields:

epoch timestamp, protocol, src ip, src port, "message"

Example:

1445775973,UDP4,127.0.0.1,50751,"INVITE sip:user@example.com SIP/2.0"
1445775974,TCP6,::1,54321,"REGISTER sip:example.com SIP/2.0"

Note: Multiline SIP messages are sanitized by replacing newlines and control characters with spaces to maintain CSV format integrity.

Usage

fsipd [-hv] [-l logfile] [-s] [-p priority] [-f pidfile]
    -h: Show help message
    -v: Show version
    -s: Use syslog instead of local log file
    -p: Syslog priority (default: user.notice)
    -l: Specify output log filename (default: fsipd.log)
    -f: Specify PID file path (default: /var/run/fsipd.pid)

Building

make

Testing

Run the test suite:

make test

This runs both unit tests and integration tests.

Dependencies

This program depends on:

License

SPDX-License-Identifier: BSD-2-Clause

This project is licensed under the BSD 2-Clause License. See the LICENSE file for details.

About

fsipd - Fake SIP Daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.