Coder Social home page Coder Social logo

trojan-eye's Introduction

Trojan-eye

img img img

​ 以Socket层面获得流量的控制权,以websocket做流量的通信,以electron做数据展示。

流量走向示意图

img

使用

  1. 将trojan目录下的eyes.jsp上传并执行访问。
  2. 打开trojan-eye.exe,开启监听
  3. 在收集器中接收实时流量数据

trojan-eye面板img

  • 收集器用于实时接收容器的web流量
  • 标记器用于将收集器关注的数据进行统计归类
  • 设置主要配置数据的持久化问题(推荐内存模式,Mongodb支持不是很好)

监听器:发送监听指令img

在监听器中点击创建,然后输入地址等信息,其中:

  • 标签:用于表示流量是由那个监听器接收产生
  • 注入地址:用于向目标网站注入websocket服务,推荐填写目标服务真实存在的url(如目标服务器的登录url:http://x.x.x.x/login,这样每次注入websocket服务时,都通过登录页面进行注入)
  • 监听地址:用于创建指定的websocket的服务,默认禁止以网站根目录进行注册websocket(如目标服务存在ws://x.x.x.x/meeting/websocket,可以注入ws://x.x.x.x/meeting/websockets这样迷惑的websocket服务)

在创建结束后,需要手动发起连接请求:img

如果需要暂时停止监听,可直接点击关闭连接,注销则直接发送指令,服务器直接注销对应的websocket服务

收集器:动态的实时数据img

收集器的数据都是在监听数据到来的第一时间就展示到此面板中。由于默认内存模式,如果关闭页面,数据就会立即丢失,所以加入快捷方式,用于任意时刻持久化数据

标识器:静态数据img

收集器的每一条数据都有转发标识的选项,当转发后,数据就会转发到标识器中。此面板的数据只能从收集器中获取。另外提供装载按钮,用于将之前存储的数据加载进来

帮助

  • 收集器实时接收监听数据
  • 标记器只接收收集器关注数据
  • 数据库模式并不支持快捷方式的操作(对Mongodb数据库的功能并没有做太多想法)
  • ctrl + s (内存策略): 将标记器的数据持久化到配置指定目录的markData
  • ctrl + shift + s (内存策略): 将收集器的数据持久化到配置指定目录的dynamicData, 标记器的数据持久化到配置指定目录的markData
  • ctrl + d (内存策略): 将标记器的数据清空(内存中的数据)
  • ctrl + shift + d (内存策略): 将标记器和收集器的数据清空(内存中的数据)
  • 内存数据容易丢失,不会自动保存

注意事项

  • 由于会杀死旧的Poller线程,所以在线连接的socket请求会中断。(因为Poller的socket记录会跟着线程一起关闭丢失,并且浏览器默认会使用同一个socket进行http请求)因此,请注意注入的时间

trojan-eye's People

Contributors

kyo-w avatar

Forkers

c33dd testitok

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.