Code Monkey home page Code Monkey logo

sreg's Introduction

暂停维护


Sreg V1.0

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

➜  Sreg git:(master) python sreg.py -h
usage: sreg.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 sreg.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
  • 名站
  • 娱乐
  • 工具
  • 教育
  • 旅行
  • 游戏
  • 生活
  • 社交
  • 社区
  • 购物
  • 资讯
  • 其它
  • 求职招聘

sreg's People

Contributors

davexpro avatar evi1m0 avatar houbaron avatar nixiaocang avatar zhaodongdong369 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sreg's Issues

怎样在php里构造请求头?

我在浏览器里面访问 https://passport.baidu.com/v2/?regphonecheck&phone=18789482356,
得到的返回信息是:
screen shot 2015-03-24 at 1 29 28 am

但在PHP里面请求时,错误代码是 ({"errno":110000,"index":null,"errmsg":"\u6210\u529f"})。(这个Unicode是成功的意思)。我应该是请求头构造错了。

   $url='https://passport.baidu.com/v2/?regphonecheck&phone=18789482356';
//    $html = file_get_contents($url);
//    echo $html;

    $opts = array('https' =>
    array(
        'method' => 'GET',
        'header'  =>  array(
            'User-Agent' => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6',
            'HOST' => parse_url($url)['host']
        )
    ));

    $context = stream_context_create($opts);
    $stream = fopen($url, 'r', false, $context);

    echo stream_get_contents($stream);

请问,这个请求头应该怎么构造?

File "C:\xxxx\Sreg\sreg.py", line 58 except Exception, e: ^

Microsoft Windows [Version 10.0.19041.867]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\xxxx\Sreg>python sreg.py -h
File "C:\xxxx\Sreg\sreg.py", line 58
except Exception, e:
^
SyntaxError: invalid syntax

windows version:latest
python version:latest

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.