if (RegExMatch(chatInput, "^/cip (.*)", string)) and (login = 1)
{
unBlockChatInput()
SendChat("/ip " string1)
chatline := GetNewLine(CL)
if (RegExMatch(chatline, "\Q] \E(.*)\Q[\E(.*)\Q]: [C-IP: \E(.*)\Q] [L-IP: \E(.*)\Q] [R-IP: \E(.*)\Q]\E", out))
{
if (IpChecker = 1)
{
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("GET", "https://geoiptool.com/ru/?ip=" out3 "")
HTTP.Send()
Sleep, 500
Info1 := HTTP.ResponseText
RegExMatch(Info1, "Страна:.*", Info1)
Info1 := RegExReplace(Info1, "</span>", "")
Info1 := RegExReplace(Info1, "</div>.*", "")
Info1 := RegExReplace(Info1, ".*>", "")
Info1 := RegExReplace(Info1, " ", "")
Info1 := RegExReplace(Info1, " ", "")
Info2 := HTTP.ResponseText
RegExMatch(Info2, "Регион:.*", Info2)
Info2 := RegExReplace(Info2, "</span>", "")
Info2 := RegExReplace(Info2, "</div>.*", "")
Info2 := RegExReplace(Info2, "<span>", "")
Info2 := RegExReplace(Info2, " ", "")
Info2 := RegExReplace(Info2, " ", "")
Info2 := RegExReplace(Info2, ".*Регион:", "")
Info3 := HTTP.ResponseText
RegExMatch(Info3, "Город:.*", Info3)
Info3 := RegExReplace(Info3, "</span>", "")
Info3 := RegExReplace(Info3, "</div>.*", "")
Info3 := RegExReplace(Info3, "<span>", "")
Info3 := RegExReplace(Info3, " ", "")
Info3 := RegExReplace(Info3, " ", "")
Info3 := RegExReplace(Info3, ".*Город:", "")
Sleep, 500
SendChat("/a [Tools] Проверяю ID: " string1 " | C-IP: " out3 " | R-IP: " out5 "")
SendChat("/a [Tools] C-IP: Страна: " Info1 " | Город: " Info3 "")
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("GET", "https://geoiptool.com/ru/?ip=" out5 "")
HTTP.Send()
Sleep, 500
Info11 := HTTP.ResponseText
RegExMatch(Info11, "Страна:.*", Info11)
Info11 := RegExReplace(Info11, "</span>", "")
Info11 := RegExReplace(Info11, "</div>.*", "")
Info11 := RegExReplace(Info11, ".*>", "")
Info11 := RegExReplace(Info11, " ", "")
Info11 := RegExReplace(Info11, " ", "")
Info22 := HTTP.ResponseText
RegExMatch(Info22, "Регион:.*", Info22)
Info22 := RegExReplace(Info22, "</span>", "")
Info22 := RegExReplace(Info22, "</div>.*", "")
Info22 := RegExReplace(Info22, "<span>", "")
Info22 := RegExReplace(Info22, " ", "")
Info22 := RegExReplace(Info22, " ", "")
Info22 := RegExReplace(Info22, ".*Регион:", "")
Info33 := HTTP.ResponseText
RegExMatch(Info33, "Город:.*", Info33)
Info33 := RegExReplace(Info33, "</span>", "")
Info33 := RegExReplace(Info33, "</div>.*", "")
Info33 := RegExReplace(Info33, "<span>", "")
Info33 := RegExReplace(Info33, " ", "")
Info33 := RegExReplace(Info33, " ", "")
Info33 := RegExReplace(Info33, ".*Город:", "")
Sleep, 500
SendChat("/a [Tools] R-IP: Страна: " Info11 " | Город: " Info33 "")
if(Info1 <> Info11 || Info3 <> Info33){
SendChat("/a Внимание, возможно аккаунт взломан!")
return
}
return
}
if (IpChecker = 2)
{
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("GET", "https://ru.infobyip.com/ip-" out3 ".html")
HTTP.Send()
Sleep, 500
RegExMatch(HTTP.ResponseText, "ISP\Q</td> <td>\E(.*)\Q</td>\E", outone)
outone := RegExreplace(outone1, "</td.*", "")
RegExMatch(outone, ".*", outone)
RegExMatch(HTTP.ResponseText, "flag\Q'>\E(.*)\Q</td>\E", countryone)
countryone := RegExreplace(countryone1, "</td.*", "")
RegExMatch(countryone, ".*", countryone)
RegExMatch(HTTP.ResponseText, "Город\Q</td><td>\E(.*)\Q</td>\E", cityone)
cityone := RegExreplace(cityone1, "</td.*", "")
RegExMatch(cityone, ".*", cityone)
Sleep, 500
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("GET", "https://ru.infobyip.com/ip-" out5 ".html")
HTTP.Send()
Sleep, 500
RegExMatch(HTTP.ResponseText, "ISP\Q</td> <td>\E(.*)\Q</td>\E", outtwo)
outtwo := RegExreplace(outtwo1, "</td.*", "")
RegExMatch(outtwo, ".*", outtwo)
RegExMatch(HTTP.ResponseText, "flag\Q'>\E(.*)\Q</td>\E", countrytwo)
countrytwo := RegExreplace(countrytwo1, "</td.*", "")
RegExMatch(countrytwo, ".*", countrytwo)
RegExMatch(HTTP.ResponseText, "Город\Q</td><td>\E(.*)\Q</td>\E", citytwo)
citytwo := RegExreplace(citytwo1, "</td.*", "")
RegExMatch(citytwo, ".*", citytwo)
Sleep, 500
SendChat("/a [Tools] Проверяю ID: " string1 " | C-IP: " out3 " | R-IP: " out5 "")
SendChat("/a [Tools] C-IP: Провайдер " outone "")
SendChat("/a [Tools] C-IP: Страна:" countryone " | Город: " cityone "")
SendChat("/a [Tools] R-IP: Провайдер: " outtwo "")
SendChat("/a [Tools] R-IP: Страна:" countrytwo " | Город: " citytwo "")
if(countryone <> countrytwo || cityone <> citytwo){
SendChat("/a Внимание, возможно аккаунт взломан!")
return
}
return
}
}
}
if (RegExMatch(chatInput, "^/setip(.*)", string)) and (login = 1)
{
unBlockChatInput()
if(string1=1 || string1=2)
{
IpChecker:=string1
IniWrite, % IpChecker, %A_WorkingDir%\configs\settings.ini, Global, IpChecker
addChatMessage("{00FF00}[Tools] {00FFFF}Вы переключили режим IP-чекера на " IpChecker)
return
}
if (RegExMatch(chatInput, "^/dist (.*) (.*)", string)) and (login = 1)
{
unBlockChatInput()
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("GET", "http://ru.distance.to/" string1 "/" string2 "")
HTTP.Send()
RegExMatch(HTTP.ResponseText, "airline.*", out)
out := RegExreplace(out, "</span.*", "")
RegExMatch(out, "[0-9]+.*", out)
SendChat("/a [Tools] Расстояние между " string1 " и " string2 ": " out "")
return
}
}