aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-08-14 18:27:04 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-08-14 18:27:04 +0200
commit3a0aaa58acd3e28dcab7006407cb7dad25f1dbfc (patch)
tree3468d501266772776468e093c546fd2f215e8a4b
parent8d0ab7cacf5700651cef7f846609c983f0845da9 (diff)
spam udp traffic to he and google; we need something to sniff
-rw-r--r--src/main.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 73519d8..2c28e62 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -81,8 +81,16 @@ fn main() -> Result<()> {
watcher.watch(ip_config, RecursiveMode::NonRecursive)?;
+ // loop {
+ // thread::sleep(Duration::MAX)
+ // }
+
+ let sock = std::net::UdpSocket::bind("[::]:0")?;
loop {
- thread::sleep(Duration::MAX)
+ sock.send_to(&[0x13, 0x37, 0x41, 0x42], "[2001:4860:4860::8888]:1337")?;
+ sock.send_to(&[0xca, 0xfe, 0xaf, 0xfe], "[2001:470:1f0a:8b9::1]:1337")?;
+
+ thread::sleep(Duration::from_secs(1));
}
}