MCPcopy Create free account

hub / github.com/JieCaoSec/FastTraffic / functions

Functions35 in github.com/JieCaoSec/FastTraffic

↓ 3 callersFunctionbuild_iterator
(dataset, config)
utils_fasttraffic.py:139
↓ 3 callersFunctionget_time_dif
(start_time)
utils_fasttraffic.py:144
↓ 3 callersFunctionload_dataset
(path, pad_size)
utils_fasttraffic.py:56
↓ 2 callersMethod_to_tensor
(self, datas)
utils_fasttraffic.py:105
↓ 2 callersFunctionevaluate
(config, model, data_iter, test=False)
train_eval.py:102
↓ 2 callersFunctiontest
(config, model, test_iter)
train_eval.py:86
↓ 1 callersFunctionbiGramHash_new
(sequence, i, buckets)
utils_fasttraffic.py:45
↓ 1 callersFunctionbuild_dataset
(config, ues_word)
utils_fasttraffic.py:32
↓ 1 callersFunctionbuild_vocab
(file_path, tokenizer, max_size, min_freq)
utils_fasttraffic.py:15
↓ 1 callersFunctionget_parameter_number
(net)
run.py:34
↓ 1 callersFunctioninit_network
(model, method='xavier', exclude='embedding', seed=123)
train_eval.py:16
↓ 1 callersFunctionmain
()
run.py:52
↓ 1 callersFunctionmask_ip
(packet)
preprocess/preprocess_vpn.py:66
↓ 1 callersFunctionone_gram
data = binascii.hexlify(bytes(payload)) packet_string = data.decode()
preprocess/preprocess_vpn.py:25
↓ 1 callersFunctionpacket_to_sparse_array
(packet, max_length=512)
preprocess/preprocess_vpn.py:100
↓ 1 callersFunctionpad_udp
(packet)
preprocess/preprocess_vpn.py:83
↓ 1 callersFunctionread_pcap
(path: Path)
preprocess/utlis.py:425
↓ 1 callersFunctionremove_ether_header
(packet)
preprocess/preprocess_vpn.py:59
↓ 1 callersFunctionshould_omit_packet
(packet)
preprocess/utlis.py:431
↓ 1 callersFunctionsport_mask
(packet)
preprocess/preprocess_vpn.py:73
↓ 1 callersFunctiontrain
(config, model, train_iter, dev_iter, test_iter)
train_eval.py:32
↓ 1 callersFunctiontransform2hex
(num)
preprocess/preprocess_vpn.py:17
↓ 1 callersFunctiontransform_packet
(packet)
preprocess/preprocess_vpn.py:126
↓ 1 callersFunctiontransform_payload
(path)
preprocess/preprocess_vpn.py:145
↓ 1 callersFunctiontriGramHash_new
(sequence, i, buckets)
utils_fasttraffic.py:50
Method__init__
(self, batches, batch_size, device)
utils_fasttraffic.py:95
Method__init__
(self, dataset, embedding)
models/FastTraffic.py:10
Method__init__
(self, config)
models/FastTraffic.py:39
Method__iter__
(self)
utils_fasttraffic.py:129
Method__len__
(self)
utils_fasttraffic.py:132
Method__next__
(self)
utils_fasttraffic.py:113
Functionbi_gram
data = binascii.hexlify(bytes(payload)) packet_string = data.decode()
preprocess/preprocess_vpn.py:41
Methodforward
(self, x)
models/FastTraffic.py:53
Functiongen_train
(dataset,ls,train_path)
run.py:40
Functionget_ip_and_transport_header_lengths
(packet)
preprocess/preprocess_vpn.py:107