Artwork

İçerik HPR Volunteer and Hacker Public Radio tarafından sağlanmıştır. Bölümler, grafikler ve podcast açıklamaları dahil tüm podcast içeriği doğrudan HPR Volunteer and Hacker Public Radio veya podcast platform ortağı tarafından yüklenir ve sağlanır. Birinin telif hakkıyla korunan çalışmanızı izniniz olmadan kullandığını düşünüyorsanız burada https://tr.player.fm/legal özetlenen süreci takip edebilirsiniz.
Player FM - Podcast Uygulaması
Player FM uygulamasıyla çevrimdışı Player FM !

HPR4331: Re-inventing the light switch

 
Paylaş
 

Manage episode 470527265 series 108988
İçerik HPR Volunteer and Hacker Public Radio tarafından sağlanmıştır. Bölümler, grafikler ve podcast açıklamaları dahil tüm podcast içeriği doğrudan HPR Volunteer and Hacker Public Radio veya podcast platform ortağı tarafından yüklenir ve sağlanır. Birinin telif hakkıyla korunan çalışmanızı izniniz olmadan kullandığını düşünüyorsanız burada https://tr.player.fm/legal özetlenen süreci takip edebilirsiniz.
Bulbs Wiz Connected smart light bulbs Exploit Article about hacking the lights Source Code Source code of the hack Cordova Apache Cordova framework for mobile apps Cordova Plugin SSH Connect Cordova Plugin KDE Widgets Mobile Interface Code Python Script wiz-hack.py import socket import time import random import sys ​ if len(sys.argv) < 3: print(help) exit() IP = sys.argv[1] ​ on = """{"params":{"orig":"andr","state":true},"id":6,"method":"setPilot"}""" off = """{"params":{"orig":"andr","state":false},"id":6,"method":"setPilot"}""" ​ s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect((IP, 38899)) if sys.argv[2] != "on" and sys.argv[2] != "off": print("Changing lights color") b = sys.argv[2] color_send = """{"method":"setPilot","params":{"r":""" + str(255) + ""","g":""" + str(255) + ""","b":""" + str(255) + ""","dimming":""" + str(b) + """}}""" print(color_send) s.sendall(bytes(color_send, "utf-8")) s.close() elif sys.argv[2] == "on": print("Turning on the lights") s.sendall(bytes(on, "utf-8")) s.close() elif sys.argv[2] == "off": print("Turning off the lights") s.sendall(bytes(off, "utf-8")) s.close() Shell Scripts on.sh
  continue reading

4551 bölüm

Artwork
iconPaylaş
 
Manage episode 470527265 series 108988
İçerik HPR Volunteer and Hacker Public Radio tarafından sağlanmıştır. Bölümler, grafikler ve podcast açıklamaları dahil tüm podcast içeriği doğrudan HPR Volunteer and Hacker Public Radio veya podcast platform ortağı tarafından yüklenir ve sağlanır. Birinin telif hakkıyla korunan çalışmanızı izniniz olmadan kullandığını düşünüyorsanız burada https://tr.player.fm/legal özetlenen süreci takip edebilirsiniz.
Bulbs Wiz Connected smart light bulbs Exploit Article about hacking the lights Source Code Source code of the hack Cordova Apache Cordova framework for mobile apps Cordova Plugin SSH Connect Cordova Plugin KDE Widgets Mobile Interface Code Python Script wiz-hack.py import socket import time import random import sys ​ if len(sys.argv) < 3: print(help) exit() IP = sys.argv[1] ​ on = """{"params":{"orig":"andr","state":true},"id":6,"method":"setPilot"}""" off = """{"params":{"orig":"andr","state":false},"id":6,"method":"setPilot"}""" ​ s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect((IP, 38899)) if sys.argv[2] != "on" and sys.argv[2] != "off": print("Changing lights color") b = sys.argv[2] color_send = """{"method":"setPilot","params":{"r":""" + str(255) + ""","g":""" + str(255) + ""","b":""" + str(255) + ""","dimming":""" + str(b) + """}}""" print(color_send) s.sendall(bytes(color_send, "utf-8")) s.close() elif sys.argv[2] == "on": print("Turning on the lights") s.sendall(bytes(on, "utf-8")) s.close() elif sys.argv[2] == "off": print("Turning off the lights") s.sendall(bytes(off, "utf-8")) s.close() Shell Scripts on.sh
  continue reading

4551 bölüm

Tüm bölümler

×
 
Loading …

Player FM'e Hoş Geldiniz!

Player FM şu anda sizin için internetteki yüksek kalitedeki podcast'leri arıyor. En iyi podcast uygulaması ve Android, iPhone ve internet üzerinde çalışıyor. Aboneliklerinizi cihazlar arasında eş zamanlamak için üye olun.

 

Hızlı referans rehberi

Keşfederken bu şovu dinleyin
Çal