Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JieCaoSec/FastTraffic
/ functions
Functions
35 in github.com/JieCaoSec/FastTraffic
⨍
Functions
35
◇
Types & classes
3
↓ 3 callers
Function
build_iterator
(dataset, config)
utils_fasttraffic.py:139
↓ 3 callers
Function
get_time_dif
(start_time)
utils_fasttraffic.py:144
↓ 3 callers
Function
load_dataset
(path, pad_size)
utils_fasttraffic.py:56
↓ 2 callers
Method
_to_tensor
(self, datas)
utils_fasttraffic.py:105
↓ 2 callers
Function
evaluate
(config, model, data_iter, test=False)
train_eval.py:102
↓ 2 callers
Function
test
(config, model, test_iter)
train_eval.py:86
↓ 1 callers
Function
biGramHash_new
(sequence, i, buckets)
utils_fasttraffic.py:45
↓ 1 callers
Function
build_dataset
(config, ues_word)
utils_fasttraffic.py:32
↓ 1 callers
Function
build_vocab
(file_path, tokenizer, max_size, min_freq)
utils_fasttraffic.py:15
↓ 1 callers
Function
get_parameter_number
(net)
run.py:34
↓ 1 callers
Function
init_network
(model, method='xavier', exclude='embedding', seed=123)
train_eval.py:16
↓ 1 callers
Function
main
()
run.py:52
↓ 1 callers
Function
mask_ip
(packet)
preprocess/preprocess_vpn.py:66
↓ 1 callers
Function
one_gram
data = binascii.hexlify(bytes(payload)) packet_string = data.decode()
preprocess/preprocess_vpn.py:25
↓ 1 callers
Function
packet_to_sparse_array
(packet, max_length=512)
preprocess/preprocess_vpn.py:100
↓ 1 callers
Function
pad_udp
(packet)
preprocess/preprocess_vpn.py:83
↓ 1 callers
Function
read_pcap
(path: Path)
preprocess/utlis.py:425
↓ 1 callers
Function
remove_ether_header
(packet)
preprocess/preprocess_vpn.py:59
↓ 1 callers
Function
should_omit_packet
(packet)
preprocess/utlis.py:431
↓ 1 callers
Function
sport_mask
(packet)
preprocess/preprocess_vpn.py:73
↓ 1 callers
Function
train
(config, model, train_iter, dev_iter, test_iter)
train_eval.py:32
↓ 1 callers
Function
transform2hex
(num)
preprocess/preprocess_vpn.py:17
↓ 1 callers
Function
transform_packet
(packet)
preprocess/preprocess_vpn.py:126
↓ 1 callers
Function
transform_payload
(path)
preprocess/preprocess_vpn.py:145
↓ 1 callers
Function
triGramHash_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
Function
bi_gram
data = binascii.hexlify(bytes(payload)) packet_string = data.decode()
preprocess/preprocess_vpn.py:41
Method
forward
(self, x)
models/FastTraffic.py:53
Function
gen_train
(dataset,ls,train_path)
run.py:40
Function
get_ip_and_transport_header_lengths
(packet)
preprocess/preprocess_vpn.py:107