GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#52-differentiate-user-spacekernel-space-sockets[User Space Sockets,window=_blank]
* User Space Sockets
* The most common sockets that do not require elevated privileges to perform actions on behalf of user applications.
== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_2_differentiate_user_spacekernel_space_sockets[Socket Creation and Privilege Level,window=_blank]
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#52-differentiate-user-spacekernel-space-sockets[Kernel Space Sockets,window=_blank]
* User Space Sockets - The most common sockets that do not require elevated privileges to perform actions on behalf of user applications.
* Kernel Space Sockets - Attempts to access hardware directly on behalf of a user application to either prevent encapsulation/decapsulation or to create packets from scratch, which requires elevated privileges.
* Attempts to access hardware directly on behalf of a user application to either prevent encapsulation/decapsulation or to create packets from scratch, which requires elevated privileges.
=== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_2_1_user_space_applications_and_sockets[User Space Applications/Sockets,window=_blank]
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#521-user-space-applications-and-sockets[User Space Applications/Sockets,window=_blank]
=== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_2_2_kernel_space_applications_and_sockets[Kernel Space Applications/Sockets,window=_blank]
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#522-kernel-space-applications-and-sockets[Kernel Space Applications/Sockets,window=_blank]
* Using tcpdump or wireshark to capture packets on the wire
* Using nmap for OS identification or to set specific flags when scanning
=== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_2_2_kernel_space_applications_and_sockets[Kernel Space Applications/Sockets,window=_blank]
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#522-kernel-space-applications-and-sockets[Kernel Space Applications/Sockets,window=_blank]
* Using Scapy to craft or modify a packet for transmission
* Using Python to craft or modify RAW Sockets for transmission
== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_4_4_understanding_socket_api_functions[Network Programming with Python3,window=_blank]
== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#543-using-python3-to-create-sockets[Using python3 to create sockets,window=_blank]
image::tcp-socket.png[height=500px]
* Network sockets primarily use the Python3 Socket library and *socket.socket* function.
----
import socket
s = socket.socket(socket.FAMILY, socket.TYPE, socket.PROTOCOL)
=== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_4_3_using_python3_to_create_sockets[Network Programming with Python3,window=_blank]
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#544-understanding-socket-api-functions[Network Programming with Python3,window=_blank]
* Network sockets primarily use the Python3 Socket library and *socket.socket* function.
----
import socket
s = socket.socket(socket.FAMILY, socket.TYPE, socket.PROTOCOL)
== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_6_encoding_and_decoding[Encoding and Decoding,window=_blank]
== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#56-encoding-and-decoding[Encoding and Decoding,window=_blank]
* Encoding
** The process of taking bits and converting them using a specified cipher.
=== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_6_1_hex_encodingdecoding[Hex Encoding and Decoding,window=_blank]
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#561-hex-encodingdecoding[Hex Encoding and Decoding,window=_blank]
=== link:https://net.cybbh.io/public/networking/latest/12_programming/fg.html#_12_6_2_base64_encodingdecoding[Base64 Encoding and Decoding,window=_blank]
=== link:https://cted.cybbh.io/tech-college/cttsb/cctc/net/Net/Modules/05_Socket_Programming/fg.html#562-base64-encodingdecoding[Base64 Encoding and Decoding,window=_blank]