Advertisement
opexxx

strip2int.py

Aug 18th, 2014
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.11 KB | None | 0 0
  1. reduce(lambda (output,i),octet:(output+(octet<<i),i-8),[int(o) for o in '192.168.1.1'.split('.')],(0,24))[0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement