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



 3496

Want to learn how to create account checkers/creators with Python

by Apostorial - 12 January, 2022 - 02:40 PM
This post is by a banned member (YeahBoy019) - Unhide
This post is by a banned member (Code) - Unhide
Code  
Supreme
443
Posts
79
Threads
3 Years of service
#10
(This post was last modified: 15 January, 2022 - 07:35 PM by Code. Edited 1 time in total.)
create a list with the proxies
use the random library
create a function that builds/returns a proxy


try figuring the rest yourself and good luck
 
 
This post is by a banned member (YeahBoy019) - Unhide
This post is by a banned member (Zentred) - Unhide
Zentred  
Infinity
617
Posts
124
Threads
4 Years of service
#12
(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(13 January, 2022 - 05:32 PM)Apostorial Wrote: Show More
(13 January, 2022 - 05:03 PM)Iwannaexplode Wrote: Show More
requests is pretty easy : define your headers in a dict / define your payload/url : (the payload depends on the site, meaning it can be a dict or a string)
Code:
proxy = {'http': 'http://...'}
headers = {'User-Agent': '...', 'Accept': '...'}
payload = {'username': 'user', 'password': 'pass'}
url = 'https://example.com/'
response = requests.post(url=url, data=payload, headers=headers, proxies=proxy)
 
if you need to parse some cookies before/after just do a get request to the url where you can get the cookie and parse it by using response.cookies['cookie_needed'] : 
same thing if the response is in json : response.json()['key']


To check if a string is in the response you can check it by : 
Code:
if 'string_here' in response.text:
    ....
idk if this is clear but yeah....

then for threading there's multiple methods to implement it. You can test yourself and see which one suits you best.
Idk if this 'guide' was clear since i did it quickly. Hope it helps

sheesh man, I have a question. Do you know how can I ask the user the load his own proxies? Like without having a proxies text file with the main.py ya know, he can just load his own. Can do that with the combolist too and the if "string" in response.text doesn't work for me idk why, for example the "incorrect password" string that shows in red when the password is incorrect isn't detected in response.text

(13 January, 2022 - 05:03 PM)Iwannaexplode Wrote: Show More
requests is pretty easy : define your headers in a dict / define your payload/url : (the payload depends on the site, meaning it can be a dict or a string)
Code:
proxy = {'http': 'http://...'}
headers = {'User-Agent': '...', 'Accept': '...'}
payload = {'username': 'user', 'password': 'pass'}
url = 'https://example.com/'
response = requests.post(url=url, data=payload, headers=headers, proxies=proxy)
 
if you need to parse some cookies before/after just do a get request to the url where you can get the cookie and parse it by using response.cookies['cookie_needed'] : 
same thing if the response is in json : response.json()['key']


To check if a string is in the response you can check it by : 
Code:
if 'string_here' in response.text:
    ....
idk if this is clear but yeah....

then for threading there's multiple methods to implement it. You can test yourself and see which one suits you best.
Idk if this 'guide' was clear since i did it quickly. Hope it helps

I figured out the open file part

use tkinter to get the proxies from the user. And for the response check your request because you prolly did something wrong

Tkinter example : 
Code:
 
import tkinter as tk
from tkinter import filedialog

root = tk.Tk()
root.withdraw()


proxies_path = filedialog.askopenfilename(title='Select your proxies')

what reason is there to use tkinter?

if they want to use their own file they can use input

filename = input('Enter  file name: ')
proxies = open(f'{filename}.txt', 'r').read().splitlines()
proxies = [{'https':'http://'+proxy} for proxy in proxies]
This post is by a banned member (Apostorial) - Unhide
1.612
Posts
768
Threads
5 Years of service
#13
(31 January, 2022 - 02:57 PM)Zentred Wrote: Show More
(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(13 January, 2022 - 05:32 PM)Apostorial Wrote: Show More
sheesh man, I have a question. Do you know how can I ask the user the load his own proxies? Like without having a proxies text file with the main.py ya know, he can just load his own. Can do that with the combolist too and the if "string" in response.text doesn't work for me idk why, for example the "incorrect password" string that shows in red when the password is incorrect isn't detected in response.text


I figured out the open file part

use tkinter to get the proxies from the user. And for the response check your request because you prolly did something wrong

Tkinter example : 
Code:
 
import tkinter as tk
from tkinter import filedialog

root = tk.Tk()
root.withdraw()


proxies_path = filedialog.askopenfilename(title='Select your proxies')

what reason is there to use tkinter?

if they want to use their own file they can use input

filename = input('Enter  file name: ')
proxies = open(f'{filename}.txt', 'r').read().splitlines()
proxies = [{'https':'http://'+proxy} for proxy in proxies]

That's the point, I don't want that, I want user to import their own files so Tkinter is the way
This post is by a banned member (Code) - Unhide
Code  
Supreme
443
Posts
79
Threads
3 Years of service
#14
(31 January, 2022 - 02:57 PM)Zentred Wrote: Show More
(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(13 January, 2022 - 05:32 PM)Apostorial Wrote: Show More
sheesh man, I have a question. Do you know how can I ask the user the load his own proxies? Like without having a proxies text file with the main.py ya know, he can just load his own. Can do that with the combolist too and the if "string" in response.text doesn't work for me idk why, for example the "incorrect password" string that shows in red when the password is incorrect isn't detected in response.text


I figured out the open file part

use tkinter to get the proxies from the user. And for the response check your request because you prolly did something wrong

Tkinter example : 
Code:
 
import tkinter as tk
from tkinter import filedialog

root = tk.Tk()
root.withdraw()


proxies_path = filedialog.askopenfilename(title='Select your proxies')

what reason is there to use tkinter?

if they want to use their own file they can use input

filename = input('Enter  file name: ')
proxies = open(f'{filename}.txt', 'r').read().splitlines()
proxies = [{'https':'http://'+proxy} for proxy in proxies]

kek kek kek kek kek
 
 
This post is by a banned member (spelnienie) - Unhide
2
Posts
0
Threads
2 Years of service
#15
thabnkss
This post is by a banned member (RuthlessRex) - Unhide

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)