ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Make Http/s requests in python


  • Please log in to reply
Make Http/s requests in python

#1

Odonator
Odonator
    Offline
    0
    Rep
    4
    Likes

    Junkie

  • PipPipPipPipPipPip
Posts: 363
Threads: 21
Joined: Apr 02, 2017
Credits: 0
Seven years registered
#1

Hi, I've been working on a serial generator/checker for Logitech, HP and some other companies, and I have pretty much got the sn generation part done, however, I can't seem to figure out how to check whether or not the generated serials are valid. So far, I have tried using the requests module in python to post the sn to the sn register page of these companies but I can't manage to make that work, maybe there's a better way. Did anyone try this before? How would you do this? Thanks!

 

Btw, I've coded this in Python 2.7


  • 0

#2

JESUSALEx185
JESUSALEx185
    Offline
    0
    Rep
    0
    Likes

    New Member

  • PipPip
Posts: 20
Threads: 0
Joined: Nov 13, 2018
Credits: 0
Five years registered
#2

242424

2

242

4

24

2

2

12

12

1

21

 

2

1

2

25

0

2

2

0

12

1

21

21

2

12

1

5241

54

5

52


313413545674677777

7

76

7676777


  • 0

#3

unazed
unazed
    Offline
    31
    Rep
    126
    Likes

    https://rari.su

Posts: 285
Threads: 29
Joined: Sep 17, 2018
Credits: 0

Five years registered
#3

use `requests` or `sockets` to make the request according to what format the payload has that is sent form your browser, replicate it, get the response in JSON format by either calling the `.json()` method of the `requests` response packet, or use `json.loads` to convert the sockets payload to JSON, else parse as raw text and look for indicators that the serial is wrong or valid.


  • 1

Contact for professional programming services.

 

6+ years desktop application development experience.
Python and C, reverse engineering experience on x86{-64} native binaries.
Versed in penetration testing, CompTIA Network+ certified.

Discord: xchg#5401

 

Your one-stop-shop for homework help: PaperPeers.com


#4

Odonator
Odonator
    Offline
    0
    Rep
    4
    Likes

    Junkie

  • PipPipPipPipPipPip
Posts: 363
Threads: 21
Joined: Apr 02, 2017
Credits: 0
Seven years registered
#4

use `requests` or `sockets` to make the request according to what format the payload has that is sent form your browser, replicate it, get the response in JSON format by either calling the `.json()` method of the `requests` response packet, or use `json.loads` to convert the sockets payload to JSON, else parse as raw text and look for indicators that the serial is wrong or valid.

Thank you for the hints, I will post back if I figure it out.


  • 0

#5

Odonator
Odonator
    Offline
    0
    Rep
    4
    Likes

    Junkie

  • PipPipPipPipPipPip
Posts: 363
Threads: 21
Joined: Apr 02, 2017
Credits: 0
Seven years registered
#5

Thank you for the hints, I will post back if I figure it out.

 

Got it! I couldn't manage to make it work for logitech (they use ajax or some api) but I got it working for some other websites! Thanks for your advice!


  • 0


 Users browsing this thread: