“Intercept” flash socket with java

∥☆過路亽.° 提交于 2020-01-24 22:58:30

问题


given a flash application that opens a socket connection to a webserver, is it possible to reads packets exchanged with a java application, without redirect all the flash traffic ( that is, without programming a socket proxy)?


回答1:


What you are trying to do requires lower level network analysis than sockets. Namely libpcap and its Java bindings , jNetPcap. This will let you capture packets much in the same way wireshark does, but from Java. The other options are analysing Wireshark logs after an experiment and that can get clunky quite quickly. You may also consider writing a custom wireshark dissector.




回答2:


The only way I can think is to modify the hosts file to list your Java server address as if it was the destination address.

BTW if your are only interested in examine the network traffic for that app, you could also use fiddler



来源:https://stackoverflow.com/questions/4382600/intercept-flash-socket-with-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!