Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # stun.py — python3 stun.py 4000
- import socket, os, struct, sys
- port = int(sys.argv[1]); COOKIE = 0x2112A442
- s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1); s.bind(('', port))
- s.sendto(struct.pack('!HHI', 0x0001, 0, COOKIE) + os.urandom(12), ('stun.l.google.com', 19302))
- d, _ = s.recvfrom(1024); i = 20
- while i < len(d):
- t, l = struct.unpack('!HH', d[i:i+4]); v = d[i+4:i+4+l]
- if t == 0x0020: # XOR-MAPPED-ADDRESS
- p = struct.unpack('!H', v[2:4])[0] ^ (COOKIE >> 16)
- ip = '.'.join(str(b ^ m) for b, m in zip(v[4:8], COOKIE.to_bytes(4, 'big')))
- print(f'{ip}:{p}')
- i += 4 + ((l + 3) & ~3)
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=fqscwuojqr
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=wkrwxgdaxu
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment