Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
src /
linux-headers-4.15.0-64 /
include /
net /
[ HOME SHELL ]
Name
Size
Permission
Action
9p
[ DIR ]
drwxr-xr-x
bluetooth
[ DIR ]
drwxr-xr-x
caif
[ DIR ]
drwxr-xr-x
iucv
[ DIR ]
drwxr-xr-x
netfilter
[ DIR ]
drwxr-xr-x
netns
[ DIR ]
drwxr-xr-x
nfc
[ DIR ]
drwxr-xr-x
phonet
[ DIR ]
drwxr-xr-x
sctp
[ DIR ]
drwxr-xr-x
tc_act
[ DIR ]
drwxr-xr-x
6lowpan.h
10.03
KB
-rw-r--r--
Space.h
1.15
KB
-rw-r--r--
act_api.h
6.3
KB
-rw-r--r--
addrconf.h
12.54
KB
-rw-r--r--
af_ieee802154.h
1.55
KB
-rw-r--r--
af_rxrpc.h
2.79
KB
-rw-r--r--
af_unix.h
2.17
KB
-rw-r--r--
af_vsock.h
7.21
KB
-rw-r--r--
ah.h
382
B
-rw-r--r--
arp.h
2
KB
-rw-r--r--
atmclip.h
1.48
KB
-rw-r--r--
ax25.h
14.78
KB
-rw-r--r--
ax88796.h
998
B
-rw-r--r--
bond_3ad.h
9.79
KB
-rw-r--r--
bond_alb.h
6.6
KB
-rw-r--r--
bond_options.h
3.92
KB
-rw-r--r--
bonding.h
18.92
KB
-rw-r--r--
busy_poll.h
3.76
KB
-rw-r--r--
calipso.h
2.15
KB
-rw-r--r--
cfg80211-wext.h
1.95
KB
-rw-r--r--
cfg80211.h
220.22
KB
-rw-r--r--
cfg802154.h
10.89
KB
-rw-r--r--
checksum.h
4.64
KB
-rw-r--r--
cipso_ipv4.h
8.2
KB
-rw-r--r--
cls_cgroup.h
2.15
KB
-rw-r--r--
codel.h
5.65
KB
-rw-r--r--
codel_impl.h
7.98
KB
-rw-r--r--
codel_qdisc.h
2.9
KB
-rw-r--r--
compat.h
2.11
KB
-rw-r--r--
datalink.h
619
B
-rw-r--r--
dcbevent.h
1.26
KB
-rw-r--r--
dcbnl.h
4.2
KB
-rw-r--r--
devlink.h
13.25
KB
-rw-r--r--
dn.h
6.88
KB
-rw-r--r--
dn_dev.h
5.36
KB
-rw-r--r--
dn_fib.h
3.98
KB
-rw-r--r--
dn_neigh.h
968
B
-rw-r--r--
dn_nsp.h
5.83
KB
-rw-r--r--
dn_route.h
4.36
KB
-rw-r--r--
dsa.h
13.92
KB
-rw-r--r--
dsfield.h
1.11
KB
-rw-r--r--
dst.h
12.96
KB
-rw-r--r--
dst_cache.h
2.53
KB
-rw-r--r--
dst_metadata.h
5.05
KB
-rw-r--r--
dst_ops.h
1.97
KB
-rw-r--r--
erspan.h
2.11
KB
-rw-r--r--
esp.h
877
B
-rw-r--r--
ethoc.h
538
B
-rw-r--r--
fib_notifier.h
1.29
KB
-rw-r--r--
fib_rules.h
4.14
KB
-rw-r--r--
firewire.h
636
B
-rw-r--r--
flow.h
6.16
KB
-rw-r--r--
flow_dissector.h
7.24
KB
-rw-r--r--
fou.h
549
B
-rw-r--r--
fq.h
2.66
KB
-rw-r--r--
fq_impl.h
6.87
KB
-rw-r--r--
garp.h
2.62
KB
-rw-r--r--
gen_stats.h
2.34
KB
-rw-r--r--
genetlink.h
11.72
KB
-rw-r--r--
geneve.h
1.67
KB
-rw-r--r--
gre.h
2.99
KB
-rw-r--r--
gro_cells.h
443
B
-rw-r--r--
gtp.h
633
B
-rw-r--r--
gue.h
3.23
KB
-rw-r--r--
hwbm.h
937
B
-rw-r--r--
icmp.h
1.72
KB
-rw-r--r--
ieee80211_radiotap.h
6.63
KB
-rw-r--r--
ieee802154_netdev.h
9.14
KB
-rw-r--r--
if_inet6.h
6.13
KB
-rw-r--r--
ife.h
1.06
KB
-rw-r--r--
ila.h
498
B
-rw-r--r--
inet6_connection_sock.h
976
B
-rw-r--r--
inet6_hashtables.h
3.7
KB
-rw-r--r--
inet_common.h
1.89
KB
-rw-r--r--
inet_connection_sock.h
10.34
KB
-rw-r--r--
inet_ecn.h
5.99
KB
-rw-r--r--
inet_frag.h
4.51
KB
-rw-r--r--
inet_hashtables.h
12.57
KB
-rw-r--r--
inet_sock.h
8.24
KB
-rw-r--r--
inet_timewait_sock.h
3.82
KB
-rw-r--r--
inetpeer.h
3.29
KB
-rw-r--r--
ip.h
18.3
KB
-rw-r--r--
ip6_checksum.h
2.89
KB
-rw-r--r--
ip6_fib.h
10.03
KB
-rw-r--r--
ip6_route.h
7.55
KB
-rw-r--r--
ip6_tunnel.h
4.72
KB
-rw-r--r--
ip_fib.h
10.72
KB
-rw-r--r--
ip_tunnels.h
13.61
KB
-rw-r--r--
ip_vs.h
46.74
KB
-rw-r--r--
ipcomp.h
659
B
-rw-r--r--
ipconfig.h
811
B
-rw-r--r--
ipv6.h
29.95
KB
-rw-r--r--
ipv6_frag.h
2.54
KB
-rw-r--r--
ipx.h
4.4
KB
-rw-r--r--
iw_handler.h
20.91
KB
-rw-r--r--
kcm.h
4.96
KB
-rw-r--r--
l3mdev.h
5.86
KB
-rw-r--r--
lapb.h
4.75
KB
-rw-r--r--
lib80211.h
3.92
KB
-rw-r--r--
llc.h
4.36
KB
-rw-r--r--
llc_c_ac.h
9.31
KB
-rw-r--r--
llc_c_ev.h
10.68
KB
-rw-r--r--
llc_c_st.h
1.72
KB
-rw-r--r--
llc_conn.h
4.06
KB
-rw-r--r--
llc_if.h
2.16
KB
-rw-r--r--
llc_pdu.h
14.08
KB
-rw-r--r--
llc_s_ac.h
1.55
KB
-rw-r--r--
llc_s_ev.h
2.2
KB
-rw-r--r--
llc_s_st.h
947
B
-rw-r--r--
llc_sap.h
1.08
KB
-rw-r--r--
lwtunnel.h
5.84
KB
-rw-r--r--
mac80211.h
230.36
KB
-rw-r--r--
mac802154.h
15.27
KB
-rw-r--r--
mip6.h
1.58
KB
-rw-r--r--
mld.h
2.8
KB
-rw-r--r--
mpls.h
932
B
-rw-r--r--
mpls_iptunnel.h
827
B
-rw-r--r--
mrp.h
3.03
KB
-rw-r--r--
ncsi.h
1.92
KB
-rw-r--r--
ndisc.h
13.77
KB
-rw-r--r--
neighbour.h
15.02
KB
-rw-r--r--
net_namespace.h
9.93
KB
-rw-r--r--
net_ratelimit.h
220
B
-rw-r--r--
netevent.h
910
B
-rw-r--r--
netlabel.h
20.74
KB
-rw-r--r--
netlink.h
40.39
KB
-rw-r--r--
netprio_cgroup.h
1.24
KB
-rw-r--r--
netrom.h
7.68
KB
-rw-r--r--
nexthop.h
865
B
-rw-r--r--
nl802154.h
12.09
KB
-rw-r--r--
nsh.h
12.31
KB
-rw-r--r--
p8022.h
447
B
-rw-r--r--
ping.h
3.45
KB
-rw-r--r--
pkt_cls.h
17.27
KB
-rw-r--r--
pkt_sched.h
4.05
KB
-rw-r--r--
pptp.h
557
B
-rw-r--r--
protocol.h
4.08
KB
-rw-r--r--
psample.h
821
B
-rw-r--r--
psnap.h
351
B
-rw-r--r--
raw.h
2.07
KB
-rw-r--r--
rawv6.h
854
B
-rw-r--r--
red.h
10.28
KB
-rw-r--r--
regulatory.h
10.12
KB
-rw-r--r--
request_sock.h
6.44
KB
-rw-r--r--
rose.h
7.62
KB
-rw-r--r--
route.h
10.02
KB
-rw-r--r--
rtnetlink.h
6.04
KB
-rw-r--r--
sch_generic.h
23.08
KB
-rw-r--r--
scm.h
3.5
KB
-rw-r--r--
secure_seq.h
855
B
-rw-r--r--
seg6.h
1.66
KB
-rw-r--r--
seg6_hmac.h
1.65
KB
-rw-r--r--
slhc_vj.h
6.67
KB
-rw-r--r--
smc.h
440
B
-rw-r--r--
snmp.h
5.23
KB
-rw-r--r--
sock.h
68.5
KB
-rw-r--r--
sock_reuseport.h
863
B
-rw-r--r--
stp.h
383
B
-rw-r--r--
strparser.h
3.75
KB
-rw-r--r--
switchdev.h
6.52
KB
-rw-r--r--
tcp.h
62.04
KB
-rw-r--r--
tcp_states.h
1.26
KB
-rw-r--r--
timewait_sock.h
1.11
KB
-rw-r--r--
tipc.h
2.34
KB
-rw-r--r--
tls.h
7.12
KB
-rw-r--r--
transp_v6.h
2.08
KB
-rw-r--r--
tso.h
515
B
-rw-r--r--
tun_proto.h
988
B
-rw-r--r--
udp.h
12.82
KB
-rw-r--r--
udp_tunnel.h
5.12
KB
-rw-r--r--
udplite.h
3.83
KB
-rw-r--r--
vsock_addr.h
1.05
KB
-rw-r--r--
vxlan.h
10.43
KB
-rw-r--r--
wext.h
1.51
KB
-rw-r--r--
wimax.h
19.97
KB
-rw-r--r--
x25.h
9.43
KB
-rw-r--r--
x25device.h
387
B
-rw-r--r--
xfrm.h
53.5
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tls.h
/* * Copyright (c) 2016-2017, Mellanox Technologies. All rights reserved. * Copyright (c) 2016-2017, Dave Watson <davejwatson@fb.com>. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above * copyright notice, this list of conditions and the following * disclaimer. * * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef _TLS_OFFLOAD_H #define _TLS_OFFLOAD_H #include <linux/types.h> #include <asm/byteorder.h> #include <linux/socket.h> #include <linux/tcp.h> #include <net/tcp.h> #include <uapi/linux/tls.h> /* Maximum data size carried in a TLS record */ #define TLS_MAX_PAYLOAD_SIZE ((size_t)1 << 14) #define TLS_HEADER_SIZE 5 #define TLS_NONCE_OFFSET TLS_HEADER_SIZE #define TLS_CRYPTO_INFO_READY(info) ((info)->cipher_type) #define TLS_RECORD_TYPE_DATA 0x17 #define TLS_AAD_SPACE_SIZE 13 struct tls_sw_context { struct crypto_aead *aead_send; /* Sending context */ char aad_space[TLS_AAD_SPACE_SIZE]; unsigned int sg_plaintext_size; int sg_plaintext_num_elem; struct scatterlist sg_plaintext_data[MAX_SKB_FRAGS]; unsigned int sg_encrypted_size; int sg_encrypted_num_elem; struct scatterlist sg_encrypted_data[MAX_SKB_FRAGS]; /* AAD | sg_plaintext_data | sg_tag */ struct scatterlist sg_aead_in[2]; /* AAD | sg_encrypted_data (data contain overhead for hdr&iv&tag) */ struct scatterlist sg_aead_out[2]; }; enum { TLS_PENDING_CLOSED_RECORD }; union tls_crypto_context { struct tls_crypto_info info; struct tls12_crypto_info_aes_gcm_128 aes_gcm_128; }; struct tls_context { union tls_crypto_context crypto_send; void *priv_ctx; u8 tx_conf:2; u16 prepend_size; u16 tag_size; u16 overhead_size; u16 iv_size; char *iv; u16 rec_seq_size; char *rec_seq; struct scatterlist *partially_sent_record; u16 partially_sent_offset; unsigned long flags; bool in_tcp_sendpages; u16 pending_open_record_frags; int (*push_pending_record)(struct sock *sk, int flags); void (*sk_write_space)(struct sock *sk); void (*sk_proto_close)(struct sock *sk, long timeout); int (*setsockopt)(struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen); int (*getsockopt)(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen); }; int wait_on_pending_writer(struct sock *sk, long *timeo); int tls_sk_query(struct sock *sk, int optname, char __user *optval, int __user *optlen); int tls_sk_attach(struct sock *sk, int optname, char __user *optval, unsigned int optlen); int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx); int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); int tls_sw_sendpage(struct sock *sk, struct page *page, int offset, size_t size, int flags); void tls_sw_close(struct sock *sk, long timeout); void tls_sw_free_tx_resources(struct sock *sk); void tls_sk_destruct(struct sock *sk, struct tls_context *ctx); void tls_icsk_clean_acked(struct sock *sk); int tls_push_sg(struct sock *sk, struct tls_context *ctx, struct scatterlist *sg, u16 first_offset, int flags); int tls_push_pending_closed_record(struct sock *sk, struct tls_context *ctx, int flags, long *timeo); static inline bool tls_is_pending_closed_record(struct tls_context *ctx) { return test_bit(TLS_PENDING_CLOSED_RECORD, &ctx->flags); } static inline int tls_complete_pending_work(struct sock *sk, struct tls_context *ctx, int flags, long *timeo) { int rc = 0; if (unlikely(sk->sk_write_pending)) rc = wait_on_pending_writer(sk, timeo); if (!rc && tls_is_pending_closed_record(ctx)) rc = tls_push_pending_closed_record(sk, ctx, flags, timeo); return rc; } static inline bool tls_is_partially_sent_record(struct tls_context *ctx) { return !!ctx->partially_sent_record; } static inline bool tls_is_pending_open_record(struct tls_context *tls_ctx) { return tls_ctx->pending_open_record_frags; } static inline void tls_err_abort(struct sock *sk) { sk->sk_err = EBADMSG; sk->sk_error_report(sk); } static inline bool tls_bigint_increment(unsigned char *seq, int len) { int i; for (i = len - 1; i >= 0; i--) { ++seq[i]; if (seq[i] != 0) break; } return (i == -1); } static inline void tls_advance_record_sn(struct sock *sk, struct tls_context *ctx) { if (tls_bigint_increment(ctx->rec_seq, ctx->rec_seq_size)) tls_err_abort(sk); tls_bigint_increment(ctx->iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, ctx->iv_size); } static inline void tls_fill_prepend(struct tls_context *ctx, char *buf, size_t plaintext_len, unsigned char record_type) { size_t pkt_len, iv_size = ctx->iv_size; pkt_len = plaintext_len + iv_size + ctx->tag_size; /* we cover nonce explicit here as well, so buf should be of * size KTLS_DTLS_HEADER_SIZE + KTLS_DTLS_NONCE_EXPLICIT_SIZE */ buf[0] = record_type; buf[1] = TLS_VERSION_MINOR(ctx->crypto_send.info.version); buf[2] = TLS_VERSION_MAJOR(ctx->crypto_send.info.version); /* we can use IV for nonce explicit according to spec */ buf[3] = pkt_len >> 8; buf[4] = pkt_len & 0xFF; memcpy(buf + TLS_NONCE_OFFSET, ctx->iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, iv_size); } static inline void tls_make_aad(char *buf, size_t size, char *record_sequence, int record_sequence_size, unsigned char record_type) { memcpy(buf, record_sequence, record_sequence_size); buf[8] = record_type; buf[9] = TLS_1_2_VERSION_MAJOR; buf[10] = TLS_1_2_VERSION_MINOR; buf[11] = size >> 8; buf[12] = size & 0xFF; } static inline struct tls_context *tls_get_ctx(const struct sock *sk) { struct inet_connection_sock *icsk = inet_csk(sk); return icsk->icsk_ulp_data; } static inline struct tls_sw_context *tls_sw_ctx( const struct tls_context *tls_ctx) { return (struct tls_sw_context *)tls_ctx->priv_ctx; } static inline struct tls_offload_context *tls_offload_ctx( const struct tls_context *tls_ctx) { return (struct tls_offload_context *)tls_ctx->priv_ctx; } int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg, unsigned char *record_type); #endif /* _TLS_OFFLOAD_H */
Close