Network utility for sending / receiving TCP, UDP, SSL
Packet Sender is an open source utility to allow sending and receiving TCP, UDP, and SSL (encrypted TCP) packets. The mainline branch officially supports Windows, Mac, and Desktop Linux (with Qt). Other places may recompile and redistribute Packet Sender. Packet Sender is free and licensed GPL v2 or later. It can be used for both commercial and personal use.
Packet Sender would like to thank the following sponsors.
NOTE: Try (temporarily) disabling your firewall if having problems in Windows.
Official releases of Packet Sender can be downloaded at PacketSender.com. Some places redistribute Packet Sender.
The Packet Sender mobile editions are fully native, contain bare minimum permissions, and collects no data. This is software that respsects you. Thank you for supporting this effort.
The iOS version is located on the Apple App Store
Packets sets can be quickly saved/retrieved/shared using the free Packet Sender Cloud service. The cloud may also be used to publicly display and distribute your packets (via an URL) for collaboration, tutorials, end users, etc. Packet Sender may import public packet sets with public URL.
There are various reasons to do this:
If you are publishing a network API, maintaining a public cloud page is significantly easier than painfully detailing (IP, port, type, etc) the packets to your users. Plus, updating that page is easy.
More information about it can be found at https://cloud.packetsender.com/help
Packet Sender has a "portable" mode. At launch, it will look for
ps_settings.iniin its run-time directory. For the SSL server, it will look for
Windows users, this directory is the same place as the .exe. For Mac users, this run-time directory is at
PacketSender.app/Contents/MacOS. If INI files are found, it will use them instead of
Packet Sender's built-in servers are configured to support either IPv4 or IPv6 but not both at the same time. For clients, Packet Sender GUI and CLI will seemlessly switch between the two modes upon sending (you may need to include the scope ID). Older versions of Packet Sender tried use both simultaneously, but testing found this unreliable. Click the IPv4 / IPv6 toggle on the bottom right to switch between the two.
Inside the settings, you may also force Packet Sender's servers to bind to a custom IP address. This can be very useful for systems with multiple NICs or complicated IP setups. Packet Sender will trigger an error if told to bind to an address that does not exist.
Packet Sender's multicast support is triggered by attempting to send to a IPv4 multicast address or via the mulitcast submenu). The feature is currently experimental and has these known problems.
There is no IPv6 multicast support, though it is on the roadmap. Sponsors wanting IPv6 multicast support are welcome to contact me.
For when the normal send system is not enough, you can now hammer a target IP with packets to see if your device can handle it. Please note that this feature is experimental and the metrics displayed have not been fully tested.
Packet Sender is identical for all the desktop versions. The only difference is its theme to match the operating system.
The fields at the top can be navigated using CTRL+1, CTRL+2, etc, up to CTRL+8 (send button). On Mac, the shortcut key is Command.
Packet Sender supports establishing encrypted connections over SSL. This is supported in the GUI and on the command line. Some notes on this:
Packet Sender bundles an internal "Snake Oil" certificate for use as a server for Windows. The certificate and key is in the same place as packet and settings.
Packet Sender bundles OpenSSL for use in Windows. On Mac and Linux, Packet Sender will use the native SSL libraries.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
Packet Sender supports up to 5 smart responses. To use it, disable normal responses.
Packet Sender supports these macros when sending responses:
Packet Sender supports persistent TCP and SSL connections via a separate UI dialog. It is enabled by checkbox on the main window or in the settings dialog.
Persistent connections are not supported via the command line.
Packet Sender has a built-in subnet calculator. It is under the Tools menu.
The command line extension used in Windows installations is .com. Using .exe will launch the GUI. Leave off the extension and Windows will choose the correct program. The same executable controls the command line and GUI for Mac and Linux operating systems.
The command line system in Packet Sender follows the same pattern as other Linux utilities. It has a long name (such as --version) and a short name (such as -v). These options can be arranged in any order and Packet Sender will parse them correctly. The last 3 options are positional and must appear last. They are IP, port, and data. These last options are optional if using a stored packet.
packetsender --help Usage: packetsender [options] address port data Packet Sender is a Network UDP/TCP/SSL Test Utility by NagleCode See https://PacketSender.com/ for more information.
Options: -?, -h, --help Displays this help. -v, --version Displays version information. -q, --quiet Quiet mode. Only output received data. -x, --hex Parse data-to-send as hex (default). -a, --ascii Parse data-to-send as mixed-ascii (like the GUI). -A, --ASCII Parse data-to-send as pure ascii (no \xx translation). -w, --wait Wait up to for a response after sending. Zero means do not wait (Default). -f, --file Send contents of specified path. Max 10 MiB for UDP, 100 MiB for TCP/SSL. -b, --bind Bind port. Default is 0 (dynamic). -6, --ipv6 Force IPv6. Same as -B "::". Default is IP:Any. -4, --ipv4 Force IPv4. Same as -B "0.0.0.0". Default is IP:Any. -B, --bindip Bind custom IP. Default is IP:Any. -t, --tcp Send TCP (default). -s, --ssl Send SSL and ignore errors. -S, --SSL Send SSL and stop for errors. -u, --udp Send UDP. -n, --name Send previously saved packet named . Other options overrides saved packet parameters.
Arguments: address Destination address. Optional for saved packet. port Destination port. Optional for saved packet. data Data to send. Optional for saved packet.
packetsender -taw 500 mirrors.xmission.com 21 "USER anonymous\r\nPASS [email protected]\r\n" TCP (65505)://mirrors.xmission.com:21 55 53 45 52 20 61 6e 6f 6e 79 6d 6f 75 73 0d 0a 50 41 53 53 20 63 68 72 6f 6d 65 40 65 78 61 6d 70 6c 65 2e 63 6f 6d 0d 0a Response Time:5:51:37.042 pm Response HEX:32 32 30 2D 57 65 6C 63 6F 6D 65 20... Response ASCII:220-Welcome to XMission Internet...
Packet Sender command line can bind to custom ports to force IPv4/6 modes or multiple NIC.
packetsender -taw 3000 fe80::c07b:d517:e339:5a08 5005 "Hello\r" packetsender -taw 3000 192.168.0.201 5005 "Hello\r" packetsender -B 192.168.0.200 -taw 3000 192.168.0.201 5005 "Hello\r" packetsender -B fe80::a437:399a:3091:266a%ethernet_32769 -taw 3000 fe80::c07b:d517:e339:5a08 5005 "Hello\r" packetsender -B fe80::a437:399a:3091:266a -taw 3000 fe80::c07b:d517:e339:5a08 5005 "Hello\r"
The command line has the option to ignore or abandon on SSL errors. The default is to ignore.
packetsender -saw 500 expired.packetsender.com 443 "GET / HTTP/1.0\r\n\r\n" SSL Error: The certificate has expired SSL (54202)://expired.packetsender.com:443 47 45 54 20 2f 20 48 54 54 50 2f 31 2e 30 0d 0a 0d 0a Cipher: Encrypted with AES(128)
Response Time:3:24:55.695 pm Response HEX:48 54 54 50 2f 31 2e 31 20 34 32 31 20 0d 0a 53 65 72 76 65 72 3a 20 6e 67 69 6e 78 2f 31 2e 31 30 2e 30 20 28 55 62 75 6e 74 75 29 0d Response ASCII:HTTP/1.1 421 \r\nServer: nginx/1.10.0 (Ubuntu)\r
The only dependency is Qt SDK. Here is how to build the app.
The Windows and Mac versions were built using Qt 5.12
Here is the sequence of commands for Ubuntu 16.04. Please adapt to your Linux platform. Packet Sender requires no additional libraries beyond the stock Qt SDK. I have been told there are build issues with stock Fedora. If a Fedora wizard has insight, please let me know, and I'll add your instructions.
If you are feeling adventurous, feel free to build from the master branch. It contains the latest stable build. The development branch should probably be avoided.
sudo apt-get update sudo apt-get install qt5-default build-essential wget https://github.com/dannagle/PacketSender/archive/(Version).tar.gz tar -xzvf (Version).tar.gz cd PacketSender-(Version)/src qmake PacketSender.pro make
To run use:
If it doesn't run, you may need to set it executable
chmod a+x PacketSender
Missing a feature? You can hire me to add it to Packet Sender.
GPL v2 or Later. Contact me if you require a different license.