Skip to content

Instantly share code, notes, and snippets.

View syakesaba's full-sized avatar
🍙
ごはんください

SYA-KE syakesaba

🍙
ごはんください
View GitHub Profile
@syakesaba
syakesaba / hostapd-wpe ユーザの見える化
Created October 12, 2014 06:28
hostapd-wpe ユーザの見える化
/USER
1097
1098
1099 static void eap_ttls_process_msg(struct eap_sm *sm, void *priv,
1100 > > > > const struct wpabuf *respData)
1101 {
1102 > struct eap_ttls_data *data = priv;
1103
1104 > switch (data->state) {
1105 > case PHASE1:
#!/usr/bin/env python
# encoding: utf-8
from scapy.packet import Packet,bind_layers
from scapy.fields import *
class Example(Packet):#必ずPacketクラスを継承すること
"""
Scapyに自作プロトコルを実装するためのモデルです。
Packetクラスは基本的に受信した1つのパケットデータのすべてを常に保持します。
## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <[email protected]>
## This program is published under a GPLv2 license
"""
Fields: basic data structures that make up parts of packets.
"""
import struct,copy,socket
@syakesaba
syakesaba / docker-compose.yaml
Created June 16, 2016 13:55
opendaylight docker-compose.yaml
odl:
image: opendaylight/odl:4.2.0
container_name: odl
privileged: true
stdin_open: true
tty: true
command: /opt/opendaylight/bin/karaf
ports:
- "8181:8181"
expose:
fabric:
image: syakesaba/mininet
privileged: true
stdin_open: true
tty: true
links:
- ryu:ryu
command: --topo=single --controller=remote,ip=ryu
ryu:
#!/usr/bin/env python
# encoding: utf-8
import requests # pip install requests
import logging
import json
from urlparse import urlparse
discover_prefix = "https://lyncdiscover.{0}/" # .format(sip_domain)
discover_prefix_internal = "https://lyncdiscoverinternal.{0}/" # .format(sip_domain)
#!/usr/bin/env python
# encoding: utf-8
from scapy.packet import Packet
import json
class JsonPacket(Packet):
name = "JsonPacket"
fields_desc = []
json_valid_types = (dict,list,unicode,str,int,long,float,bool,None)
#!/usr/bin/env python
# encoding: utf-8
from scapy.packet import Packet
import json
class JsonPacket(Packet):
name = "JsonPacket"
fields_desc = []
json_valid_types = (dict,list,unicode,str,int,long,float,bool,None)
#!/usr/bin/env python
#encoding: utf-8
import os
import time
print(" _ _ ___ ______ \n" +
" (_) | / _ \ | ___ \\\n" +
" _ __ ___ _| |_ _ __ ___ / /_\ \| |_/ /\n" +
"| '_ ` _ \| | __| '_ ` _ \| _ || __/ \n" +
"| | | | | | | |_| | | | | | | | || | \n" +
#!/usr/bin/env python
#encoding: utf-8
import os
import time
print(" _ _ ___ ______ \n" +
" (_) | / _ \ | ___ \\\n" +
" _ __ ___ _| |_ _ __ ___ / /_\ \| |_/ /\n" +
"| '_ ` _ \| | __| '_ ` _ \| _ || __/ \n" +
"| | | | | | | |_| | | | | | | | || | \n" +