Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COCKIES Help me #651

Open
Exstasy opened this issue Dec 13, 2016 · 1 comment
Open

COCKIES Help me #651

Exstasy opened this issue Dec 13, 2016 · 1 comment

Comments

@Exstasy
Copy link

Exstasy commented Dec 13, 2016

Народ подскажите по какому принципу сохраняются куки, и происходит вход по ним в SCMbot?

@ghost
Copy link

ghost commented Dec 14, 2016

по какому принципу сохраняются куки

Эм? Там бинарник какой-то.

происходит вход по ним

Вход куда? Авторизация на стим? Там процедура в несколько шагов, дебажиться браузером.
Вообще все есть в сорцах.

var rRSA = GetRSA();
if (rRSA == null)
{
Main.AddtoLog("Network Problem");
doMessage(flag.Login_cancel, 0, "Network Problem", true);
e.Cancel = true;
LoginProcess = false;
return;
}
LoginProgr("40");
string finalpass = EncryptPassword(Password, rRSA.Module, rRSA.Exponent);
string MainReq = string.Format(loginReq, finalpass, UserName, mailCode, guardDesc, capchaId,
capchaTxt, mailId, rRSA.TimeStamp, twoFactorCode);
string BodyResp = SendPost(MainReq, _dologin, _ref, true);
LoginProgr("60");
//Checking login problem
if (BodyResp.Contains("message"))
{
var rProcess = JsonConvert.DeserializeObject<RespProcess>(BodyResp);
//Checking Incorrect Login
if (rProcess.Message.Contains("Incorrect"))
{
Main.AddtoLog("Incorrect login");
doMessage(flag.Login_cancel, 0, "Incorrect login", true);
e.Cancel = true;
LoginProcess = false;
return;
}
else
{
//Login correct, checking message type...
Dialog guardCheckForm = new Dialog();
if ((rProcess.isCaptcha) && (rProcess.Message.Contains("humanity")))
{
//Verifying humanity, loading capcha
guardCheckForm.capchgroupEnab = true;
guardCheckForm.codgroupEnab = false;
guardCheckForm.factorgroupEnab = false;
string newcap = _capcha + rProcess.Captcha_Id;
Main.loadImg(newcap, guardCheckForm.capchImg, false, false);
}
else
if (rProcess.isTwoFactor)
{
//Steam wants two factor code
guardCheckForm.capchgroupEnab = false;
guardCheckForm.codgroupEnab = false;
guardCheckForm.factorgroupEnab = true;
}
else
if (rProcess.isEmail)
{
//Steam guard wants email code
guardCheckForm.capchgroupEnab = false;
guardCheckForm.codgroupEnab = true;
guardCheckForm.factorgroupEnab = false;
}
else
{
//Whoops!
goto begin;
}
//Re-assign main request values
if (guardCheckForm.ShowDialog() == DialogResult.OK)
{
mailCode = guardCheckForm.MailCode;
guardDesc = guardCheckForm.GuardDesc;
twoFactorCode = guardCheckForm.TwoFactorCode;
capchaId = rProcess.Captcha_Id;
capchaTxt = guardCheckForm.CapchaText;
mailId = rProcess.Email_Id;
guardCheckForm.Dispose();
}
else
{
Main.AddtoLog("Dialog has been cancelled");
doMessage(flag.Login_cancel, 0, "Dialog has been cancelled", true);
e.Cancel = true;
Logged = false;
LoginProcess = false;
guardCheckForm.Dispose();
return;
}
goto begin;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant