Documentation ¶
Index ¶
- Variables
- func APITLSCertificate() (pair tls.Certificate)
- func APITLSConfig() (config *tls.Config)
- func APITLSData() ([]byte, []byte)
- func CollectorTLSConfig() *tls.Config
- func Connect()
- func CreateUser(username, password string, admin bool) (err error)
- func DropUsers()
- func ParseFrameElements(stream []byte) (elements map[string][]byte)
- func SetTLS(request map[string]string) (err error)
- func Setup()
- type Alert
- type Association
- type Collector
- type Device
- type Network
- type Session
- type TLS
- type User
- func (user *User) Delete() error
- func (user *User) DestroyAllOtherSessions(session_cookie string)
- func (user *User) DestroyAllSessions()
- func (user *User) NewSession() (wave_session string, err error)
- func (user User) OnlyAdmin() (only_admin bool, err error)
- func (user *User) Reload() error
- func (user *User) Save() error
- func (user *User) SessionCount() int
- func (user *User) SetPassword(password string) (err error)
- func (user User) ValidAuthentication(password string) (valid bool)
- type Wireless80211Frame
Constants ¶
This section is empty.
Variables ¶
View Source
var ELEMENT_IDS = map[byte]string{
0: "SSID",
1: "SUPPORTED_RATES",
5: "TRAFFIC_INDICATION_MAP",
7: "COUNTRY",
11: "QBSS",
42: "ERP_INFO",
48: "RSN",
50: "EXTENDED_SUPPORTED_RATES",
61: "HT_OPERATION",
3: "DS_PARAMETER_SET",
45: "HT_CAPABILITIES",
127: "EXTENDED_CAPABILITIES",
221: "VENDOR_SPECIFIC",
}
https://github.com/torvalds/linux/blob/master/include/linux/ieee80211.h#L1787
View Source
var Orm *gorm.DB
Functions ¶
func APITLSCertificate ¶
func APITLSCertificate() (pair tls.Certificate)
func APITLSConfig ¶
func APITLSData ¶
func CollectorTLSConfig ¶
func CreateUser ¶
func ParseFrameElements ¶
Types ¶
type Association ¶
type Association struct { Source string Target string DataToSource int64 DataToTarget int64 SourceTransmitting bool TargetTransmitting bool Direct bool }
An Assocation contains all the data about interactions between two MAC addresses
type Collector ¶
type Collector struct { gorm.Model Name string `sql:"not null;unique"` CaCert string PrivateKey string }
func CollectorByName ¶
func Collectors ¶
func CreateCollector ¶
type Device ¶
type Device struct { MAC string Vendor string AccessPoint bool Probing bool ProbedFor []Network Online bool }
func (*Device) VisualData ¶
type Network ¶
func (*Network) VisualData ¶
type Session ¶
type Session struct { gorm.Model UserID uint Cookie string OriginallyCreated time.Time LastUsed time.Time }
func SessionFromID ¶
func (Session) HTTPCookie ¶
type User ¶
type User struct { gorm.Model Name string Password []byte Username string `sql:"not null;unique"` Admin bool Sessions []Session }
func CreateTestUser ¶
func UserByUsername ¶
func UserFromSessionCookie ¶
func (*User) DestroyAllOtherSessions ¶
func (*User) DestroyAllSessions ¶
func (user *User) DestroyAllSessions()
func (*User) NewSession ¶
func (*User) SessionCount ¶
func (*User) SetPassword ¶
func (User) ValidAuthentication ¶
type Wireless80211Frame ¶
type Wireless80211Frame struct { Length uint16 TSFT uint64 FlagsRadio layers.RadioTapFlags Rate layers.RadioTapRate ChannelFrequency layers.RadioTapChannelFrequency ChannelFlags layers.RadioTapChannelFlags FHSS uint16 DBMAntennaSignal int8 DBMAntennaNoise int8 LockQuality uint16 TxAttenuation uint16 DBTxAttenuation uint16 DBMTxPower int8 Antenna uint8 DBAntennaSignal uint8 DBAntennaNoise uint8 RxFlags layers.RadioTapRxFlags TxFlags layers.RadioTapTxFlags RtsRetries uint8 DataRetries uint8 MCS layers.RadioTapMCS AMPDUStatus layers.RadioTapAMPDUStatus VHT layers.RadioTapVHT Type string Flags80211 layers.Dot11Flags Proto uint8 DurationID uint16 Address1 string Address2 string Address3 string Address4 string SequenceNumber uint16 FragmentNumber uint16 Checksum uint32 Elements map[string][]byte Interface string }
func (*Wireless80211Frame) ParseElements ¶
func (frame *Wireless80211Frame) ParseElements(packet gopacket.Packet, ether *layers.Dot11)
Click to show internal directories.
Click to hide internal directories.