I'm currently working on a shared source by
from
. His code works with HttpListenerContext fine but I don't know why I keep getting Error during authorisation.
I think the problem is from this part at responseText that return wrong content from auth.psro.mbot.1.php. I have been searching everywhere for the correct response but unlucky.
Code:
if (req.Url.ToString().Contains("pa/auth.psro.mbot.1.php"))
{
var resp = context.Response;
resp.Headers.Add("Content-type", "text/plain;charset=UTF-8");
string responseText = "@0.2CEA9DD0D41A2E06FD2F3D628566247BB14E114E594767090FEDAFC3169D92CA2CA3918B2EB4C38E3D8F38822D9754E0238C3DFD4DFF50945096248B398330842BEF2BEF2B84408440842BEF2BEF2B5419A80A09CA1D07.AC69C053AA000000009874780E@";
resp.ContentLength64 = responseText.Length;
var stream = resp.OutputStream;
stream.Write(Encoding.UTF8.GetBytes(responseText), 0, responseText.Length);
stream.Close();
}






