How hackers can schedule one-plus cell phones by minute

Source: Internet
Author: User

How hackers can schedule one-plus cell phones by minute

Preface

I am a loyal fan of a cell phone. When I got a cell phone, I tried my best to participate in various activities, but I still didn't get an invitation code. Finally, I found someone from the XDA forum and spent $20 on an invitation code. Therefore, I hate the one-plus appointment + invitation system.

I applied for the queue Reservation Mechanism in the queuing mechanism. Although I applied early, my ranking position was about 9000, but in the queuing mechanism in the one-plus-2 architecture, you can recommend friends to improve the ranking (that is, you can enter a friend's email address. In addition, you can send emails to friends to invite friends to queue together, And the invitees can also use this to improve their ranking ). When I checked my ranking, it had fallen to more than 70,000.

I tried to fill in the temporary email address of mailinator.com on the invitation page of Yijia. After 10 attempts, I successfully increased my ranking to over 50,000. So I thought, could you create a script to automatically send me a large number of Recommendation emails to improve my ranking.

Send a large number of Recommendation emails

First, I want to extract the URL from the invitation page. Use Chrome's debugging tool to view the network labels in it (click to enlarge the image ).

 

Https://invites.oneplus.net/index.php? R = share/signup & success_jsonpCallback = success_jsonpCallback & email = test % 40mailinator.com & _ = 1438634544515

The above is the web site in the invitation email you received when filling in the test@mailinator.com mailbox. Note the number at the end of the URL. This is a cache buster, which prevents the browser from caching links and verifies whether the links are old links.

Later, we will use python to complete the whole process of automatically sending invitations and clicking the link in the email, so we have to change the above URL to this form:

Https://invites.oneplus.net/index.php? R = share/signup & success_jsonpCallback = success_jsonpCallback & email ={{ name }}% 40mailinator.com & _ = 1438634544515

{Name} is the location where the mailinator email user name is entered.

Next, I wrote several lines of python code to generate a 32-bit random string for my mailbox user name. I used the Requests library.

We can send a confirmation email to the mailinator mailbox through the one-plus system. But how can I get the content in the confirmation email?

At https://mailinator.com/after registration, we can find the API token on the page. Then you can use it on the official guide page.

Get confirmation Link

We need to get the emailID of the confirmation email first, so requests. get requests here are mailinatorInbox.

At the beginning of requests. get, the request must be mailinatorInbox.

I will explain why I want to add sleep timer. Let's take a look at the response we received.

{'Messages ': [{'to': 'test @ mailinator.com', 'IP': '123. 2.132.96 ', 'fromfull': 'invites @ oneplus.net ', 'id': '100

98503-141602468-test ', 'Seconds _ ago': 2621, 'subobject': 'Confirm your email ', 'time': 1438598503781, 'from': 'onep

Lus ', 'been _ read': False}, {'to': 'test @ mailinator.com', 'IP': '2017. 2.132.96 ', 'fromfull': 'invites @ oneplus.net ', 'id': '2017-1438598522-test', 'Seconds _ ago': 141603512, 'subobject ': 'successful sign-up for the reservation list'

, 'Time': 1438598522985, 'from': 'oneplus ', 'been _ read': False}]}

At the beginning, the key value returned by the message is null. After some debugging, I set the mailinator API to create a new user name after receiving the confirmation email. So I added a timer and paused for five seconds after sending a request.

We need to use emailID to get the body of the email. Extract the data from json.

With emailID, we can request an email to obtain the body of the email.

Is the obtained body.

Use the dot regular expression to extract the URL in the confirmation email.

Combine all the code!

 

I put it for a while and went for a cup of tea. When I came back, the ranking had increased by 50,000.

Code download

Attach all code: https://github.com/JakeCooper/OnePlusTwoBot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.