Sign in to follow this  
Followers 0
Qulareelor

Qt5QWindowIcon window class automation

1 post in this topic

#1 ·  Posted (edited)

Hello. There is a software called "Vtope", it is used for social networks. It is required to be automated. AutoIt Window Info and Control Viewer give only information about the class of window - Qt5QWindowIcon, without other information about the elements. Ranorex Spy hasn't helped too. So I tried not to interact the gui-elements, but check the traffic of this program using a sniffer. It was found out, that the program used for authorization a POST method. So I created them in autoit:
 

$sEmail="1@1.1"
$sPass="123"
$url1="http://46.4.50.219:8000/auth"
$url2="http://46.4.50.219:8000/info"
$url3="http://5.9.145.19:8000/log"

Login()
Info()
fLog()


Func Login()
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST",$url1)
$oHTTP.setTimeouts(5000, 5000, 15000, 15000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.SetRequestHeader("Content-Length","90")
$oHTTP.SetRequestHeader("Connection", "Keep-alive")
$oHTTP.SetRequestHeader("Accept-Encoding", "gzip, deflate")
$oHTTP.SetRequestHeader("Accept-Language", "ru-RU,en,*")
$oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0")
$oHTTP.SetRequestHeader("Host","46.4.50.219:8000")
$oHTTP.Send("v=47&email="&$sEmail&"&password="&$sPass&"&hash=441d1fe10f0e1")
$oHTTP.WaitForResponse
$resp=$oHTTP.ResponseText
ConsoleWrite($resp & @LF)
EndFunc

Func Info()
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST",$url2)
$oHTTP.setTimeouts(5000, 5000, 15000, 15000)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.SetRequestHeader("Cookie","user=""MTE4OA==|1412756166|003ac41dceeb80e7818b471a1807622e14c46738""")
$oHTTP.SetRequestHeader("Content-Length","4")
$oHTTP.SetRequestHeader("Connection", "Keep-alive")
$oHTTP.SetRequestHeader("Accept-Encoding", "gzip, deflate")
$oHTTP.SetRequestHeader("Accept-Language", "uk-UA,en,*")
$oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0")
$oHTTP.SetRequestHeader("Host","46.4.50.219:8000")
$oHTTP.Send("v=47")
$oHTTP.WaitForResponse
$resp=$oHTTP.ResponseText
ConsoleWrite($resp & @LF)
EndFunc


Func fLog()
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST",$url3)
$oHTTP.setTimeouts(5000, 5000, 15000, 15000)
$oHTTP.SetRequestHeader("Content-Type","multipart/form-data; boundary=""boundary_.oOo._ODM0MQ==MTgzNTQ=MzIzMTg=""")
$oHTTP.SetRequestHeader("MIME-Version","1.0")
$oHTTP.SetRequestHeader("Content-Length","1327")
$oHTTP.SetRequestHeader("Connection", "Keep-alive")
$oHTTP.SetRequestHeader("Accept-Encoding", "gzip, deflate")
$oHTTP.SetRequestHeader("Accept-Language", "uk-UA,en,*")
$oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0")
$oHTTP.SetRequestHeader("Host","5.9.145.19:8000")
$oHTTP.Send($data)
$oHTTP.WaitForResponse
$resp=$oHTTP.ResponseText
ConsoleWrite($resp & @LF)
EndFunc

Where $sEmail is in open form and $sPass is md5 hash. I have got the necessary response:

ok|1188
3953;77;3516351|http://instagram.com/miroslava_sergeeva_official|if|0|3000|a
ok
>Exit code: 0    Time: 0.7779

Now, the problem consists in hereinafter. How to send these responses to the program, because it doesn't react?
I will be grateful to the advises.
 
The program screenshoot:
image.jpg

Edited by fyviffitoffo

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0