DSAS (Wuxi Dipont School of Arts and Science) has a system called Engage to manage activity clubs. They called those clubs - CCAs.
The official website is slow, and you can not see all CCAs. If we want create a CCA fair like website, we need first get all CCA information somehow.
Analysis
Let’s check how the frontend get CCA information from Engage backend.
GetActivityDetails
The GetActivityDetails POST request is the one getting the final CCA information. With a payload of activityID.
1
2
3
{"activityID":"3350"}
sequenceDiagram
Frontend->>Backend: POST
Note over Frontend,Backend: https://engage.nkcswx.cn/Services/ActivitiesService.asmx/GetActivityDetails
Backend-->>Frontend: activityInfo
sequenceDiagram
Frontend->>Backend: POST
Note over Frontend,Backend: https://engage.nkcswx.cn/Services/ActivitiesService.asmx/GetActivityDetails
Backend-->>Frontend: activityInfo
This HTTP response body’s size is 203.21 KB, which is ridiculous. The cost of network resources is extremely high, which will bring performance issues for both users and servers. This is just one request, with more than ten requests on a single page.
Login.aspx
The end point /Login.aspx provides many features. But we are interested at getting ASP.NET_SessionId and .ASPXFORMSAUTH only. They are two values that we need to make vaild request to /Services/ActivitiesService.asmx/GetActivityDetails. We will discuss this part in the following part.
ASP.NET_SessionId
This is how we can get ASP.NET_SessionId.
sequenceDiagram
Frontend->>Backend: GET or POST
Note over Frontend,Backend: https://engage.nkcswx.cn/Login.aspx
Backend-->>Frontend: Set-Cookie
sequenceDiagram
Frontend->>Backend: GET or POST
Note over Frontend,Backend: https://engage.nkcswx.cn/Login.aspx
Backend-->>Frontend: Set-Cookie
I will discuss how to get this Cookie later.
.ASPXFORMSAUTH
This is how we can get .ASPXFORMSAUTH.
sequenceDiagram
Frontend->>Backend: POST
Note over Frontend,Backend: https://engage.nkcswx.cn/Login.aspx
Backend-->>Frontend: Set-Cookie
sequenceDiagram
Frontend->>Backend: POST
Note over Frontend,Backend: https://engage.nkcswx.cn/Login.aspx
Backend-->>Frontend: Set-Cookie
I will discuss how to get this Cookie later. The payload required for this one is large and messy.
Cookies
The whole Cookie contains:
Key
Value
LanguageID
a string like ENG
ASP.NET_SessionId
a 24 long string
usernameCookie
a 67 long string
.ASPXFORMSAUTH
a 232 long string
But GetActivityDetails only requires ASP.NET_SessionId and .ASPXFORMSAUTH.
Get ASP.NET_SessionId
To get ASP.NET_SessionId, if we request https://engage.nkcswx.cn/Login.aspx without ASP.NET_SessionId, its HTTP response header has three Set-Cookie headers,
importhttp.clientdefget_MSAUTH(SessionId,user_name,user_pwd):defpost_with_headers(host,path,data,headers):conn=http.client.HTTPSConnection(host)conn.request("POST",path,body=data,headers=headers)response=conn.getresponse()headers=response.getheaders()set_cookies=[valueforname,valueinheadersifname=='Set-Cookie']conn.close()returnset_cookieshost='engage.nkcswx.cn'path='/Login.aspx'headers={'Content-Type':'application/x-www-form-urlencoded','Cookie':SessionId}data='ctl00_ctl11_TSSM=%3BTelerik.Web.UI%2C+Version%3D2021.3.1111.45%2C+Culture%3Dneutral%2C+PublicKeyToken%3D121fae78165ba3d4%3Aen-GB%3Ab406acc5-0028-4c73-8915-a9da355d848a%3A1c2121e&ctl00_ScriptManager1_HiddenField=&__LASTFOCUS=&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=c%2FM1Ho43c0%2BFthFEJqqroy523PC9%2B%2FNMyst63UWsnTtrJ9X9GwzlTXP0J3pZ0Zc3%2BYpfpfG7lk2QJ%2FJt8ZHzM7Kv7JYxTkprglEsm1ayvHrizlLd52IN%2Bd%2F4aaQaI2OyH3MNKOrUaii71v0jPf7eDqI79pOb42jsaLRBrXV7cpbz2QiJoQeDLygVigiCVMMy3aahKpPjdDf6oiOeFH96wGGqEIzbawrasZKkZgyrwnCyim%2BDpse6%2BRIA9%2BmdtgNERHRU7wMfOkdCOJ1qTP7ufh2NkURqb2TeiypNj3kLgQXPKXwQIvOsaxNlQ2leZ28IqAyWK4wk3aTmCyuhrGB4JuXx8IV2loMOgLWCWCmolIaH5LXIB4xHuTkAHivQy4grDXwnxe%2FSIBbCWEpdfJCHso1G7PKgek9jxGnVJve8hA8Gx5JWI7UnjKVtGP%2F7DD9Y50qhN%2Bc8zlsz9Pm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ctl00%24hdnUnsavedDataWarningEnabled=false&ctl00%24hdnHorizontalScrollPosition=&ctl00%24hdnVerticalScrollPosition=&ctl00%24hdnStaffRegisterInFlag=in&ctl00%24PageContent%24loginControl%24hdnMaxLoginAttempts=0&ctl00%24PageContent%24loginControl%24hdnToken=&ctl00%24PageContent%24loginControl%24hdnLinkAccount=0&ctl00%24PageContent%24loginControl%24hdnIsPupilPortal=0&ctl00%24PageContent%24loginControl%24languageSelect%24ddlLanguage=UK+English&ctl00_PageContent_loginControl_languageSelect_ddlLanguage_ClientState=&ctl00%24PageContent%24loginControl%24txtUN='data+=user_name+'&ctl00%24PageContent%24loginControl%24txtPwd='+user_pwddata+='&ctl00%24PageContent%24loginControl%24txtMFA=&ctl00%24PageContent%24loginControl%24cbRememberMe=on&ctl00%24PageContent%24loginControl%24btnLogin=Login&ctl00%24ddlReason=Select&ctl00_ddlReason_ClientState=&ctl00%24txtNotes='set_cookie=post_with_headers(host,path,data,headers)[-1].split(';')[0]return(set_cookie)if__name__=="__main__":SessionId='ASP.NET_SessionId=2qbifskvg5i4kj32w25kvwe3'# Change to your own valueuser_name='Your username in URL encoding'user_pwd='Your password in URL encoding'MSAUTH=get_MSAUTH(SessionId,user_name,user_pwd)print(MSAUTH)
End
If you want automate getting CCA information, you can do like this