Skip to content

Instantly share code, notes, and snippets.

@nemesis64
Created March 26, 2019 23:18
Show Gist options
  • Save nemesis64/e44c934ce42a660b616290a57b59b195 to your computer and use it in GitHub Desktop.
Save nemesis64/e44c934ce42a660b616290a57b59b195 to your computer and use it in GitHub Desktop.
C# airos login
string bound = "---------------------------" + DateTime.Now.Ticks.ToString("x");
string package = "--" + bound + "\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\n" + username + "\r\n--" + bound + "\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\n" + password + "\r\n--" + bound + "\r\nContent-Disposition: form-data; name=\"uri\"\r\n\r\n" + "/index.cgi" + "\r\n--" + bound + "--\r\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment