can you help me i have this error
my code
import requests url = 'http://127.0.0.1/1.php' cyber = open('te.txt','r').readline() for line in cyber: password = line.strip() http = requests.post(url, data={'input1':'admin','input2':password,'sub':'submit'}) content = http.content if 'dddddddddddddddddddddddddd' in content: print ("login bwe "+password+ " ") break else: print( " xalat" )
this is my error
a bytes-like object is required, not 'str' File "C:\Users\34\Desktop\pay1.py", line 13, in if 'dddddddddddddddddddddddddd' in content:
https://stackoverflow.com/questions/67238702/if-dddddddddddddddddddddddddd-in-content April 24, 2021 at 10:04AM
没有评论:
发表评论