V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
Evi1m0
V2EX  ›  分享创造

[Sreg] Search Registration V1 版本发布

  •  
  •   Evi1m0 · 2015-03-12 14:57:07 +08:00 · 3750 次点击
    这是一个创建于 3304 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://ww4.sinaimg.cn/large/c334041bgw1eq2y1nwpgpj21330jo41a.jpg

    Sreg 可对使用者通过输入emailphoneusername的返回用户注册的所有互联网护照信息,例如:

    ➜  Sreg git:(master) python reg_test.py -h
    usage: reg_test.py [-h] [-u USER] [-e EMAIL] [-c CELLPHONE]
    
    Check how many Platforms the User registered.
    
    optional arguments:
      -h, --help    show this help message and exit
      -u USER
      -e EMAIL
      -c CELLPHONE
    
    ➜  Sreg git:(master) ✗ python reg_test.py -e [email protected]
    
         .d8888b.
        d88P  Y88b
        Y88b.
         "Y888b.  888d888 .d88b.  .d88b.
            "Y88b.888P"  d8P  Y8bd88P"88b
              "888888    88888888888  888
        Y88b  d88P888    Y8b.    Y88b 888
         "Y8888P" 888     "Y8888  "Y88888
                                      888
                                 Y8b d88P
                                  "Y88P"
    
    [*] App: Search Registration
    [*] Version: V1.0(20150303)
    [*] Website: buzz.beebeeto.com
    
    [+] Email Checking: [email protected]
    
    [购物] 淘男网 ( http://www.51taonan.com/)
    [IT] 51cto ( http://www.51cto.com)
    [娱乐] 一听音乐网 ( http://www.1ting.com/)
    [工具] 金山词霸 ( http://www.iciba.com/)
    [生活] 58 同城 ( http://www.58.com/)
    [名站] 优酷 ( http://www.youku.com)
    [IT] 果壳网 ( http://www.guokr.com/)
    [购物] 好乐买 ( http://www.okbuy.com/)
    [旅行] 艺龙 ( http://www.elong.com/)
    [旅游] 凯撒旅游网 ( http://www.caissa.com.cn/)
    [旅游] 酷讯旅游网 ( http://www.kuxun.cn)
    [娱乐] 乐视网 ( http://www.youku.com)
    [IT] CSDN ( http://www.csdn.net/)
    [生活] 百合网 ( http://www.baihe.com/)
    [购物] 当当网 ( http://www.dangdang.com/)
    
    [+] Results the save path: ./reports/[email protected]
    

    Sreg 一共有三种查询方式:

    • 用户名
    • 手机
    • 邮箱

    查询完成后,Sreg 会返回给使用者一个精致的 html 页面供以查看。

    Plugin (SDK)

    编写网站注册查询插件非常简单,首先将想要进行编写的网站在/plugins/建立对应website.json文件。

    {
        "information":{
            "author" : "evi1m0",
            "date" : "2015/03/10",
            "name" : "PPTV",
            "website" : "http://www.pptv.com/",
            "category" : "娱乐",
            "icon" : "http://static9.pplive.cn/pub/flagment/v_20150309153320/modules/g-1408-hd/images/logo.png",
            "desc" : "PPTV 聚力-始终和你同一频道,汇聚最清晰,最流畅的网络各类最新热门直播、点播视频。"
        },
    
        "request" :{
            "cellphone_url" : "http://api.passport.pptv.com/v3/query/loginname_exist.do?logintype=username&username={}",
            "email_url" : "http://api.passport.pptv.com/v3/query/loginname_exist.do?logintype=username&username={}",
            "user_url" : "http://api.passport.pptv.com/v3/query/loginname_exist.do?logintype=username&username={}",
            "method" : "GET",
            "post_fields":{
    
            }
        },
    
        "status":{
            "judge_yes_keyword" : "<errorCode>5</errorCode>",
            "judge_no_keyword" : "<errorCode>0</errorCode>",
            "profile_url" : ""
        }
    }
    
    • information: 插件编写者及网站所需信息;
    • request: 核心接口定义,其中 cellphone, email, user 分别位手机注册、邮箱注册、用户名注册查询接口,如果仅有手机注册查询接口,其他则均为相同 API 即可;
    • status: 返回结果判断,judge_yes_keyword 为用户已经注册此网站,相反为未注册此网站,profile_url 为预留字段;

    如果接口为 POST 方法,则修改 method 为 POST 后,定义 post_fields 为参数字段,例 renren:

    "request" :{
        "cellphone_url" : "http://reg.renren.com/AjaxRegisterAuth.do",
        "email_url" : "http://reg.renren.com/AjaxRegisterAuth.do",
        "user_url" : "http://reg.renren.com/AjaxRegisterAuth.do",
        "method" : "POST",
        "post_fields":{
            "authType":"email",
            "value":"",
            "stage":"3"
        }
    },
    

    Category

    • IT
    • 名站
    • 娱乐
    • 工具
    • 教育
    • 旅行
    • 游戏
    • 生活
    • 社交
    • 社区
    • 购物
    • 资讯
    • 其它
    • 求职招聘
    2 条回复    2015-03-15 12:01:43 +08:00
    ricorico
        1
    ricorico  
       2015-03-12 23:26:59 +08:00 via iPad
    _(:з」∠)_
    不是安全相关的论坛没人理你23333
    v2ex_user001
        2
    v2ex_user001  
       2015-03-15 12:01:43 +08:00
    GOOD JOB
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2852 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:27 · PVG 08:27 · LAX 17:27 · JFK 20:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.