I hereby claim:
- I am guillaumemorini on github.
- I am guillaumemorini (https://keybase.io/guillaumemorini) on keybase.
- I have a public key ASCtem-_WGt6BDEOPaa2SNhJ1yx8dXxfCeej6zYbuNuU7Qo
To claim this, I am signing this object:
| from scapy.all import * | |
| import base64 | |
| files={} | |
| scapy_cap = rdpcap('test.pcap') | |
| for packet in scapy_cap: | |
| if packet.haslayer(DNS): | |
| dns_layer = packet[DNS] | |
| if dns_layer.qr == 0 and dns_layer.qd: # It's a query and has a question section | |
| query = dns_layer.qd # Get the question record (usually just one) | |
| try: |
| import json | |
| import os | |
| from pwn import * | |
| # Set logging level | |
| context.log_level = "DEBUG" # or INFO, WARNING, ERROR | |
| # Load environment variables | |
| # EXTRA is an array of the flagids for current service and team |
| import socket | |
| import re | |
| HOST = "127.0.0.1" # The server's hostname or IP address | |
| PORT = 4000 # The port used by the server | |
| with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: | |
| s.connect((HOST, PORT)) | |
| data = s.recv(1024) | |
| print("Received",data) |
I hereby claim:
To claim this, I am signing this object: