2020-09-28 | Python | UNLOCK

sockunauthredis

sockunauthredis.py

1
2
3
4
5
6
7
8
9
10
11
12
13
import socket
import sys

if __name__ == '__main__':
if len(sys.argv) < 4:
print("[+]sockunauthredis.py IP PORT COMMAND")
exit()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((sys.argv[1], int(sys.argv[2])))
cmd = sys.argv[3].encode()
s.send(cmd+b"\r\n")
result = s.recv(1024)
print(result.decode())

评论加载中