如何在Ruby中使用RAW插槽? [英] How can i use RAW Sockets in Ruby?

查看:214
本文介绍了如何在Ruby中使用RAW插槽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



问题是,没有任何名为原始套接字的地方,另外还有一些手中,Socket类本身没有完全记录。



有没有人可以在Ruby中为这种套接字提供一些代码示例,或者也可能是某种文档?



顺便说一句,我已经知道如何使用TCPSocket和TCPServer类,而我所需要的就是一个原始套接字。

解决方案

看看 PacketFu 。它是非常好的维护和使用的Metasploit项目。


I'm trying to create a raw socket using Ruby.

The problem is, there isn't anything called "raw socket" there and, on the other hand, the Socket class itself is not fully documented.

Does anybody have some code samples for that kind of socket in Ruby, or maybe some kind of a documentation for that?

By the way, I already know how to work with TCPSocket and TCPServer classes, and what I need is particularly a raw socket.

解决方案

Have a look at PacketFu. It is very well maintained and used by the Metasploit Project.

这篇关于如何在Ruby中使用RAW插槽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆