Function sf_api::session::decrypt_url

source ·
pub fn decrypt_url(encrypted_url: &str, login_resp: &str) -> String
Expand description

This function is designed for reverseengineering encrypted commands from the s&f web client. It expects a login resonse, which is the ~3KB string response you can see in the network tab of your browser, that starts with serverversion after a login. After that, you can take any url the client sends to the server and have it decoded into the actual string command, that was sent. Note that this function technically only needs the crypto key, not the full response, but it is way easier to just copy paste the full response