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

Jump to content



Photo

Implement Auth Python


Best Answer h4Ck3D0001, 16 July 2020 - 01:18 PM

So I got it working with this Code:

from urllib.request import urlopen
from pathlib import Path
import hashlib
import sys
import os
def get_key():
    global authkey
    authkey = input('Auth Key: ')
auth = Path('./AuthKey')
if auth.is_file():
    with open('./AuthKey') as auth_key:
        first_char = os.stat('./AuthKey').st_size == 0
        if first_char == True:
            get_key()
        else:
            global authkey
            authkey = auth_key.readline()
else:
    get_key()
request = "https://www.nulled.to/misc.php?action=validateKey&authKey="
while True:
    if authkey.startswith('NULLED'):
        break
    else:
        print('Please write a real Auth Key.')
        get_key()
        continue
if authkey.startswith('NULLED'):
    hash_object = hashlib.md5(authkey.encode())
else:
    get_key()
    hash_object = hashlib.md5(authkey.encode())
md5_hash = hash_object.hexdigest()
url = request + md5_hash
content = urlopen(url).read()
success = "success".encode()
if success not in content:
    print("Auth Key is wrong, the Program is now closing...")
    sys.exit()
else:
    with open('./AuthKey', 'w') as auth_key:
        auth_key.write(authkey)

If anyone wants to copy & paste it, I have no problem with that.

Go to the full post »


  • This topic is locked This topic is locked
Implement Auth Python

#1

h4Ck3D0001
h4Ck3D0001
    Offline
    0
    Rep
    32
    Likes

    Junkie

Posts: 316
Threads: 9
Joined: Jun 29, 2019
Credits: 0

Four years registered
#1

Hi,

So I want to implement auth because a moderator told me to do or it won't be able to get to releases.

The problem is, I don't know how to do it.

I tried

Please Login or Register to see this Hidden Content

but that isn't working, it's just a blank page.

And if i try 

Please Login or Register to see this Hidden Content

it won't work, it's just a page where it says: good bye (Someone told me that I need to MD5 Hash the Auth Key, that doesn't work too.)

Could someone please help me?

Thanks.

 

Edit: So after I do the things I need to do on

Please Login or Register to see this Hidden Content

it's just a blank page, not when I go to the Homepage


Edited by h4Ck3D0001, 15 July 2020 - 11:20 PM.

  • 1

#2

Unheilgott
Unheilgott
    Offline
    139
    Rep
    1349
    Likes

    Veteran

Posts: 2507
Threads: 389
Joined: Aug 24, 2017
Credits: 0

Six years registered
#2

This Site is for SUpport only but here:

its not the best one

Please Login or Register to see this Hidden Content


  • 0

#3

h4Ck3D0001
h4Ck3D0001
    Offline
    0
    Rep
    32
    Likes

    Junkie

Posts: 316
Threads: 9
Joined: Jun 29, 2019
Credits: 0

Four years registered
#3

 

This Site is for SUpport only but here:

its not the best one

Please Login or Register to see this Hidden Content

I'm getting an error: urllib.error.HTTPError: HTTP Error 403: Forbidden

 

Edit: So i got it working like that: 

Please Login or Register to see this Hidden Content

But I just get the Cloudflare Protection text, any idea how I can bypass that?


Edited by h4Ck3D0001, 15 July 2020 - 11:53 PM.

  • 0

#4

h4Ck3D0001
h4Ck3D0001
    Offline
    0
    Rep
    32
    Likes

    Junkie

Posts: 316
Threads: 9
Joined: Jun 29, 2019
Credits: 0

Four years registered
#4
✓  Best Answer

So I got it working with this Code:

Please Login or Register to see this Hidden Content

If anyone wants to copy & paste it, I have no problem with that.


Edited by h4Ck3D0001, 16 July 2020 - 01:23 PM.

  • 0


 Users browsing this thread: