Giter Club home page Giter Club logo

iptracker's Introduction

很精简的用于窥屏探测插件的服务端

运行参数

./tracker 默认参数运行

-h 打印帮助 -port 运行端口号 -verbose 是否打印日志

接口

均是 GET 请求, 返回均为 200

添加访问记录

GET /key

添加此次记录,并绑定在 key, 可选参数(Query)r为跳转链接,不提供则是默认图片

如: /key?r=https://github.com

不管服务端发不发生错误都返回自定义的重定向链接或默认图片

获取记录

GET /key.info

获取标识为 key 的所有访问记录

{
  "code": 0, // 为1表示错误
  "msg": "ok", // code 为1时, 表示错误信息
  "result": [] // code 为0时存在,返回记录列表,没有记录则为`null`
}

检查 key

GET /key.check

检查 key 是否已经使用

{
  "code": 0, // 为1表示错误
  "msg": "ok", // code 为1时, 表示错误信息
  "result": true // code 为0时存在,true表示该key尚未使用,false表示已经使用
}

举例

按顺序进行

  1. GET /abc?r=https://github.com 跳转到对应地址

  2. GET /abc.info

    {
      "code": 0,
      "msg": "ok",
      "result": [
        {
          "ip": "127.0.0.1",
          "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.47",
          "timestamp": 1634190615
        }
      ]
    }
  3. GET /abc.check

    {
      "code": 0,
      "msg": "ok",
      "result": false
    }
  4. GET /abcd.info

    {
      "code": 0,
      "msg": "ok",
      "result": null
    }
  5. GET /abcd.check

    {
      "code": 0,
      "msg": "ok",
      "result": true
    }

iptracker's People

Contributors

xiyaowong avatar

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.