百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

ptunnel-ng

> 编程语言
开源

通过 ICMP 建立隧道 TCP 连接。

599 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

通过 ICMP 建立隧道 TCP 连接。

PingTunnel-[N]ew[G]eneration Read Me

What is ptunnel-ng?

Ptunnel-NG is a bugfixed and refactored version of Ptunnel with some additional
features e.g. change the magic value without recompiling.

What is ptunnel?

Ptunnel is an application that allows you to reliably tunnel TCP connections
to a remote host using ICMP echo request and reply packets, commonly known as
ping requests and replies.

Simple usage

Opens a SSH over ICMP tunnel to a remote.

Server:

sudo ptunnel-ng

Client:

sudo ptunnel-ng -p[Server-IP/NAME] -l2222

ssh -p2222 -luser 127.0.0.1

Restricted usage

Opens a SSH over ICMP tunnel to a remote but restricts destination IP/Port for tunnel clients. 10.0.3.1 is the machine your SSH daemon listens on. This can be a virtual machine, container or (.*).

Server:

sudo ptunnel-ng -r10.0.3.1 -R22

Client:

sudo ptunnel-ng -p[Server-IP/NAME] -l2222 -r10.0.3.1 -R22

ssh -p2222 -luser 127.0.0.1

Reverse shell usage

Opens a SSH over ICMP tunnel to a remote and creates a reverse tunnel on same but restricts destination IP/Port for tunnel clients. 10.0.3.1 is the machine your SSH daemon listens on. This can be a virtual machine, container or (.*).

Server:

sudo ptunnel-ng -r10.0.3.1 -R22

Client:

sudo ./src/ptunnel-ng -p[Server-IP/NAME] -l2222 -r10.0.3.1 -R22

ssh -R 127.0.0.1:22222 127.0.0.1 -p2222

Server:

ssh -p22222 -luser 127.0.0.1

How does it work?

ICMP Packet structure
Ptunnel program setup

Contact details

The ptunnel-ng fork was done by Toni Uhlig:
   
You can contact the author of ptunnel, Daniel Stoedle, here:
   
The official ptunnel website is located here:
   

Dependencies

Required: pthread
Optional: pcap, selinux

Compiling

Either run "./autogen.sh" for a fully automatic build or run it manually with:
    "./configure && make"

You should end up with a binary called ptunnel-ng.
This serves as both the client and proxy. You can
optionally install it using "make install".
To compile the Windows binary. You will need mingw installed.
If you want pcap support you will need the WinPcap library as well.
WinPcap is available here:
  

REMEMBER: ptunnel-ng might not work on Windows without WinPcap!

Running

…

Supported operating systems

Ptunnel supports most operating systems with libpcap, the usual POSIX functions
and a BSD sockets compatible API. In particular, it has been tested on Linux
Fedora Core 2 and Mac OS X 10.3.6 and above. As of version 0.7, ptunnel-ng can also
be compiled on Windows, courtesy of Mike Miller, assuming mingw and WinPcap is
installed.

TODOs

- refactoring
- libsodium integration

Credits and contributors

Daniel Stoedle et al.

License

Ping Tunnel NG is Copyright (c) 2017-2019, Toni Uhlig ,
All rights reserved. Ping Tunnel NG is licensed under the
BSD License. Please see the COPYING file for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cicmpicmptunnelpingpingtunnel

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言