Network Topology/Mapper in Go?

blov · · 69 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m looking for a tool that would be able to take in a network stream/pcap to create a network topology based on information provided by either of those sources. The topology doesn&#39;t need to be advanced visually just something to show connections between 2 seperate hosts or network devices.</p> <hr/>**评论:**<br/><br/>TheSquickening: <pre><p>You should be able to write your own tool using <a href="https://godoc.org/github.com/google/gopacket" rel="nofollow">gopacket</a>. It has a subpackage <a href="https://godoc.org/github.com/google/gopacket/pcap" rel="nofollow">pcap</a> that can read packets from the wire, or from a pcap file.</p></pre>hell_0n_wheel: <pre><blockquote> <p>The topology doesn&#39;t need to be advanced visually just something to show connections between 2 seperate hosts or network devices.</p> </blockquote> <p>You&#39;ll get a table of connections between hosts if you run your pcap through Wireshark. Heck, you&#39;ll even get a list of conversations between hosts, all kinds of stats...</p></pre>sheetsxd: <pre><p>I appreciate the comment, but the reason I posted this here and not in another subreddit was because I&#39;m looking specifically for something in Go.</p></pre>therealfakemoot: <pre><p>Like <a href="/u/TheSquickening" rel="nofollow">/u/TheSquickening</a> suggested, it would probably be best to leverage pcap data. Otherwise you&#39;re going to end up re-implementing a lot of shit <em>from</em> pcap.</p> <p>There is no dishonour in using an existing tool when it&#39;s highly specialized. A carpenter may want to create his own saws and hammers to perfect fit his grip; a arc welding probably isn&#39;t going to create his arc welding equipment from raw materials he&#39;s ripped from the earth.</p></pre>Hexodam: <pre><p>You mean like traceroute?</p></pre>
69 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传