Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import requests
  2. import random,math
  3.  
  4.  
  5. rand = math.floor(random.randint(1,1000))
  6. commandOnAll = f"http://192.168.1.203/cgi-bin/runcommand.sh?{rand}:cmd=254,130,1" # on
  7. rand = math.floor(random.randint(1,1000))
  8. commandX = f"http://192.168.1.203/cgi-bin/runcommand.sh?{rand}:cmd=254,124,1" # something
  9. rand = math.floor(random.randint(1,1000))
  10. commandOffAll = f"http://192.168.1.203/cgi-bin/runcommand.sh?{rand}:cmd=254,129,1" # off
  11.  
  12. r = requests.get(commandOffAll)
  13. print(r.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement