Alter 4 files
Delete `Caddyfile` Delete `log.jsonl` Delete `logs2.jsonl` Delete `sinkhole.py`
This commit is contained in:
parent
2d356d8f6a
commit
3b8a5478b2
4 changed files with 0 additions and 35 deletions
|
@ -1,7 +0,0 @@
|
|||
localhost {
|
||||
log {
|
||||
output net 127.0.0.1:7500
|
||||
format json
|
||||
}
|
||||
respond "Hello there!"
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
{"level":"info","ts":1680281540.1000268,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"127.0.0.1","remote_port":"47721","proto":"HTTP/3.0","method":"GET","host":"localhost","uri":"/?balls","headers":{"Alt-Used":["localhost"],"Cookie":[],"Priority":["u=1"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Pragma":["no-cache"],"Accept-Language":["en-GB,en;q=0.5"],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Dest":["document"],"Sec-Fetch-User":["?1"],"Cache-Control":["no-cache"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"localhost"}},"user_id":"","duration":0.000019051,"size":12,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/plain; charset=utf-8"]}}
|
||||
{"level":"info","ts":1680281540.3660147,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"127.0.0.1","remote_port":"47721","proto":"HTTP/3.0","method":"GET","host":"localhost","uri":"/favicon.ico","headers":{"User-Agent":["Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"],"Accept-Language":["en-GB,en;q=0.5"],"Cookie":[],"Sec-Fetch-Dest":["image"],"Sec-Fetch-Mode":["no-cors"],"Cache-Control":["no-cache"],"Priority":["u=6"],"Accept":["image/avif,image/webp,*/*"],"Accept-Encoding":["gzip, deflate, br"],"Alt-Used":["localhost"],"Referer":["https://localhost/?balls"],"Sec-Fetch-Site":["same-origin"],"Pragma":["no-cache"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"localhost"}},"user_id":"","duration":0.000061116,"size":12,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/plain; charset=utf-8"]}}
|
|
@ -1,2 +0,0 @@
|
|||
{"level":"info","ts":1680281834.4265301,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"127.0.0.1","remote_port":"44882","proto":"HTTP/3.0","method":"GET","host":"localhost","uri":"/?balls","headers":{"Accept-Language":["en-GB,en;q=0.5"],"Alt-Used":["localhost"],"Cookie":[],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Mode":["navigate"],"Pragma":["no-cache"],"Priority":["u=1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Dest":["document"],"Sec-Fetch-Site":["cross-site"],"Cache-Control":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"localhost"}},"user_id":"","duration":0.000022127,"size":12,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/plain; charset=utf-8"]}}
|
||||
{"level":"info","ts":1680281834.5157068,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"127.0.0.1","remote_port":"44882","proto":"HTTP/3.0","method":"GET","host":"localhost","uri":"/favicon.ico","headers":{"Referer":["https://localhost/?balls"],"Cookie":[],"Sec-Fetch-Dest":["image"],"Sec-Fetch-Site":["same-origin"],"Pragma":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"],"Accept":["image/avif,image/webp,*/*"],"Accept-Encoding":["gzip, deflate, br"],"Cache-Control":["no-cache"],"Sec-Fetch-Mode":["no-cors"],"Priority":["u=6"],"Accept-Language":["en-GB,en;q=0.5"],"Alt-Used":["localhost"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h3","server_name":"localhost"}},"user_id":"","duration":0.000020068,"size":12,"status":200,"resp_headers":{"Content-Type":["text/plain; charset=utf-8"],"Server":["Caddy"]}}
|
|
@ -1,24 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import socket
|
||||
import sys
|
||||
|
||||
SOCKET=7502
|
||||
|
||||
serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
serversocket.bind(('localhost', SOCKET))
|
||||
serversocket.listen(5) # become a server socket, maximum 5 connections
|
||||
|
||||
print(f"[*] Alive at localhost:{SOCKET}", file=sys.stderr)
|
||||
|
||||
while True:
|
||||
connection, address = serversocket.accept()
|
||||
print(f"[+] New connection {address=}", file=sys.stderr)
|
||||
while True:
|
||||
buf = connection.recv(64)
|
||||
if len(buf) > 0:
|
||||
print(buf)
|
||||
else:
|
||||
connection.close()
|
||||
print(f"[-] Connection closed", file=sys.stderr)
|
||||
break
|
Reference in a new issue