Advertisement
NaterTater

NaterTater T-Mobile Arcadyan KVD21 Reboot Script

May 17th, 2022 (edited)
3,171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $body = @"
  2. {
  3. "username": "admin",
  4. "password": "natertaterchannel.com"
  5. }
  6. "@
  7.  
  8. $reponse = Invoke-RestMethod -Method POST -Uri "http://192.168.12.1/TMI/v1/auth/login" -Body $body
  9. $token = $reponse.auth.token
  10.  
  11. $header = @{Authorization="Bearer $token"}
  12. $response = Invoke-RestMethod -Method POST -Uri "http://192.168.12.1/TMI/v1/gateway/reset?set=reboot" -headers $header
  13. $response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement