mirror of
https://github.com/flotwig/spoofident
synced 2025-08-22 01:57:44 +00:00
Adding crappy test tool
This commit is contained in:
parent
ea75bc78fa
commit
47e6982a3d
15
spoofident.test.py
Normal file
15
spoofident.test.py
Normal file
@ -0,0 +1,15 @@
|
||||
import socket
|
||||
from json import load
|
||||
from sys import argv
|
||||
targs=argv
|
||||
targs.pop(0)
|
||||
message=' '.join(targs)
|
||||
config=open('./spoofident.json','r')
|
||||
settings=load(config)
|
||||
config.close()
|
||||
sock=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.connect(('127.0.0.1',113))
|
||||
print 'Sending '+message
|
||||
sock.send(message)
|
||||
print sock.recv(1024)
|
||||
sock.close()
|
Loading…
x
Reference in New Issue
Block a user