Help Storm Postdata

kill3ryou

Lurker
Member
Joined
Threads
11
Posts
53
i trying to make config in Storm but im failing to add this postdata,anyone can help me,thanks in advance.

{"api_key":"15cb936e6d19cd7db1d6f94b96017541","client":"Android-3.1.0.2840b2840","os":"17","password":"Password","username":"Username","uuid":"182410ab-d559-4bc8-8917-708aca8567fa"}
 
@kill3ryou
Code:
Variable-1 = $PostData = CombineText("{chr(double quotes)api_keychr(double quotes):chr(double quotes)15cb936e6d19cd7db1d6f94b96017541chr(double quotes)chr(Comma)chr(double quotes)clientchr(double quotes):chr(double quotes)Android-3.1.0.2840b2840chr(double quotes)chr(Comma)chr(double quotes)oschr(double quotes):chr(double quotes)17chr(double quotes)chr(Comma)chr(double quotes)passwordchr(double quotes):chr(double quotes)", $ComboPassword#, "chr(double quotes)chr(Comma)chr(double quotes)usernamechr(double quotes):chr(double quotes)", $ComboUsername#, "chr(double quotes)chr(Comma)chr(double quotes)uuidchr(double quotes):chr(double quotes)182410ab-d559-4bc8-8917-708aca8567fachr(double quotes)}")
PostContent = $PostData#
 
  • Thread Starter Thread Starter
  • #4
@kill3ryou
Code:
Variable-1 = $PostData = CombineText("{chr(double quotes)api_keychr(double quotes):chr(double quotes)15cb936e6d19cd7db1d6f94b96017541chr(double quotes)chr(Comma)chr(double quotes)clientchr(double quotes):chr(double quotes)Android-3.1.0.2840b2840chr(double quotes)chr(Comma)chr(double quotes)oschr(double quotes):chr(double quotes)17chr(double quotes)chr(Comma)chr(double quotes)passwordchr(double quotes):chr(double quotes)", $ComboPassword#, "chr(double quotes)chr(Comma)chr(double quotes)usernamechr(double quotes):chr(double quotes)", $ComboUsername#, "chr(double quotes)chr(Comma)chr(double quotes)uuidchr(double quotes):chr(double quotes)182410ab-d559-4bc8-8917-708aca8567fachr(double quotes)}")
PostContent = $PostData#
now got that source:
{"email":"[email protected]","account_type":2,"sub_end_epoch":1544520599,"access_token":"65b94d5f4db47e65b377a87630d0d85b75a5c46d","refresh_token":"e397df52a5a90e26c8a73af77d2894bd27507730","access_expire_epoch":1523996465}

now have problems to capture email and convert unixtime to real time.

Variable-10 = $regexIndexOfStatus = indexof(regexmatch($stage1responsesource#, "{chr(double quotes)emailchr(double quotes):chr(double quotes)*","chr(double quotes)")"account_type")
Variable-11 = $Capture1 = findtagval($stage1responsesource#,"{chr(double quotes)emailchr(double quotes):chr(double quotes)*","chr(double quotes)")"account_type")

many thanks in advance.
 
now got that source:
{"email":"[email protected]","account_type":2,"sub_end_epoch":1544520599,"access_token":"65b94d5f4db47e65b377a87630d0d85b75a5c46d","refresh_token":"e397df52a5a90e26c8a73af77d2894bd27507730","access_expire_epoch":1523996465}

now have problems to capture email and convert unixtime to real time.

Variable-10 = $regexIndexOfStatus = indexof(regexmatch($stage1responsesource#, "{chr(double quotes)emailchr(double quotes):chr(double quotes)*","chr(double quotes)")"account_type")
Variable-11 = $Capture1 = findtagval($stage1responsesource#,"{chr(double quotes)emailchr(double quotes):chr(double quotes)*","chr(double quotes)")"account_type")

many thanks in advance.
Code:
Variable-11 = $Capture1 = unixtimetodate(findtagval($stage1responsesource#,"chr(double quotes)sub_end_epochchr(double quotes):","chr(Comma)"))
the function to convert unixtimestamp to date is: "Unixtimetodate"
search for it and check its usage in "FUNCTIONS DOCUMENTATION.txt" file