aboutsummaryrefslogtreecommitdiff
path: root/example/dump-traffic.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-05-29 23:09:53 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-05-29 23:09:53 +0200
commite8c35eb2780cf17890f2905f44d1a1d170c40b37 (patch)
treed5e80c11f6ca1f46eb1ae3aa88a3e2c8e2507597 /example/dump-traffic.lua
parent535595e9823f020b8f02ae657f259966814d1906 (diff)
downloadhydra-dragonfire-e8c35eb2780cf17890f2905f44d1a1d170c40b37.tar.xz
Implement sending of packets
Diffstat (limited to 'example/dump-traffic.lua')
-rwxr-xr-xexample/dump-traffic.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/example/dump-traffic.lua b/example/dump-traffic.lua
index 1fd4316..648aa4d 100755
--- a/example/dump-traffic.lua
+++ b/example/dump-traffic.lua
@@ -1,10 +1,5 @@
#!/usr/bin/env hydra-dragonfire
-local address, name, password = unpack(arg)
-local client = hydra.client(address)
-
-client:enable("auth")
-client.auth:username(name)
-client.auth:password(password or "")
+local client = require("client")()
client:wildcard(true)
client:connect()
@@ -21,7 +16,7 @@ while not hydra.canceled() do
end
elseif not interrupt then
print("disconnected")
- break
+ break
end
end