...
Code Block |
---|
#!/usr/bin/env python3
import ipaddress
import sys
def main() -> None:
while True:
addr = ipaddress.ip_address(sys.stdin.buffer.read(4))
sys.stdout.write(f"{addr!s}\n")
sys.stdout.flush()
if __name__ == "__main__":
main()
~ |
you can use this oneline instead of the ./dump.py:
Code Block |
---|
~/lib/cmc/icmpreceiver | perl -ne 'map { CORE::say join "." => unpack "CCCC", pack "L", $_ } unpack "L*";' |
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | KB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("smart_ping","smartping") and type = "page" and space = "KB" |
---|
labels | smart_ping smartping |
---|
|
...