Golang for Hackers - LDAP Injector - Episode 04 - Functional Options Pattern @ippsec
Golang for Hackers - LDAP Injector - Episode 04 - Functional Options Pattern  @ippsec
Uploaded May 2025 | Updated September 2026, 2 weeks ago
Video currently in member only, will go free May 19th

00:00 - Introduction (mistakenly called this episode 3, when it is 4)
01:00 - Going over the code we are going to update
04:00 - Moving our options to an HttpOpts struct, then making a defaultOpt function
06:30 - Creating the Type Function Definition, that lets us store a slice of functions
07:00 - Creating the WithMethod function, that will return a function that modifies the HttpOption
07:40 - Using the Variadic Function to let us pass in our HTTP Options
09:00 - Creating a few more functions
12:00 - Adding the WithUrl,then deciding to pass it as a argument instead of an option
13:55 - Creating a function to check our options
17:40 - Using a map lookup instead of our Check Method function which is a little bit cleaner
20:45 - Copying our Functional Option Pattern to the Ldap Injector code
Golang for Hackers - LDAP Injector - Episode 04 - Functional Options PatternHackTheBox - UniversityHackTheBox - KoboldConfiguring Iptables/UFW and Auditd with AnsibleHackTheBox - AbsoluteHackTheBox   RegistryTwoHackTheBox - CraftyHackTheBox - OnlyForYouHackTheBox - BagelHackTheBox - NocturnalHackTheBox - JabHackTheBox - Artificial
IppSec |

Golang for Hackers - LDAP Injector - Episode 04 - Functional Options Pattern

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER