Hi guys,
I'm currently trying to log in to my account using a python bot.
I am using the username and authk to log in and pick up the logs i have in my account page.
When i try to retrieve data from the response, i have a bad request response message, which means the format or the values of the data i send is wrong.
Quote
def connectIrc:
irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "[IRC] Connecting to : " + server
irc.connect((server, port))
print "[IRC] Connected"
irc.send("NICK #{%s}\n" % userid)
irc.send("USER U{%s} njIRCIM chat.d2jsp.org :njIRCIM User ID {%s}\n" % (userid, userid))
irc.send("FAUTH {%s}\n" % authk)
print "[IRC] Authenticated..."
Quote
irc = connectIrc()
try:
text = irc.recv(2040)
userid is a number (digits), the authk is a hash i think in base64.
Can you please tell me what is wrong in the code i have ?
Many thanks in advance.
This post was edited by adamhardpr on Dec 27 2020 09:58pm