Golang for Hackers: LDAP Injector - Episode 03 - Error Handling
Next episode: Functional Options Pattern - https://youtu.be/p4VqejsO6oU
00:00 - Introduction talking about error handling
01:45 - Quickly going over some python/golang code to show the difference in mindset
05:55 - Playing with a demo go application, using hard coded (or pre-declared) errors. Also called Sentinel Error usage
08:00 - Showing we could have done a Switch Statement instead of if/then
09:37 - Using the Custom Error Type Pattern, so it is a little bit more flexible
15:34 - Using Type Assertion, so we can access custom parts of our error message
18:10 - Start editing our LDAPInjector, so the Do function only returns error
19:00 - Updating the Do Function in NetHttpBrute
21:04 - Updating the TestCharacter Function
23:40 - Updating the Brute function
29:00 - Updating the PruneCharset function
30:10 - Creating the NewPasswordErrorWithCode, which I will probably use in the Logging video
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from IppSec · IppSec · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
HHC2016 - Analytics
IppSec
HackTheBox - October
IppSec
HackTheBox - Arctic
IppSec
HackTheBox - Brainfuck
IppSec
HackTheBox - Bank
IppSec
HackTheBox - Joker
IppSec
HackTheBox - Lazy
IppSec
Camp CTF 2015 - Bitterman
IppSec
HackTheBox - Devel
IppSec
Reversing Malicious Office Document (Macro) Emotet(?)
IppSec
HackTheBox - Granny and Grandpa
IppSec
HackTheBox - Pivoting Update: Granny and Grandpa
IppSec
HackTheBox - Optimum
IppSec
HackTheBox - Charon
IppSec
HackTheBox - Sneaky
IppSec
HackTheBox - Holiday
IppSec
HackTheBox - Europa
IppSec
Introduction to tmux
IppSec
HackTheBox - Blocky
IppSec
HackTheBox - Nineveh
IppSec
HackTheBox - Jail
IppSec
HackTheBox - Blue
IppSec
HackTheBox - Calamity
IppSec
HackTheBox - Shrek
IppSec
HackTheBox - Mirai
IppSec
HackTheBox - Shocker
IppSec
HackTheBox - Mantis
IppSec
HackTheBox - Node
IppSec
HackTheBox - Kotarak
IppSec
HackTheBox - Enterprise
IppSec
HackTheBox - Sense
IppSec
HackTheBox - Minion
IppSec
VulnHub - Sokar
IppSec
VulnHub - Pinkys Palace v2
IppSec
HackTheBox - Inception
IppSec
Vulnhub - Trollcave 1.2
IppSec
HackTheBox - Ariekei
IppSec
HackTheBox - Flux Capacitor
IppSec
HackTheBox - Jeeves
IppSec
HackTheBox - Tally
IppSec
HackTheBox - CrimeStoppers
IppSec
HackTheBox - Fulcrum
IppSec
HackTheBox - Chatterbox
IppSec
HackTheBox - Falafel
IppSec
How To Create Empire Modules
IppSec
HackTheBox - Nightmare
IppSec
HackTheBox - Nightmarev2 - Speed Run/Unintended Solutions
IppSec
HackTheBox - Bart
IppSec
HackTheBox - Aragog
IppSec
HackTheBox - Valentine
IppSec
HackTheBox - Silo
IppSec
HackTheBox - Rabbit
IppSec
HackTheBox - Celestial
IppSec
HackTheBox - Stratosphere
IppSec
HackTheBox - Poison
IppSec
HackTheBox - Canape
IppSec
HackTheBox - Olympus
IppSec
HackTheBox - Sunday
IppSec
HackTheBox - Fighter
IppSec
HackTheBox - Bounty
IppSec
Related AI Lessons
⚡
⚡
⚡
⚡
Operational continuity is not governability.
Medium · Deep Learning
AI gave North Korean hackers a $600 million month. DeFi is still working out how to respond.
The Next Web AI
The Fallacy of Vibe-Driven Development: A Critical Look at AI Scaling
Dev.to · Aneesha Prasannan
New Jersey’s 2026 AI Push
Dev.to AI
Chapters (12)
Introduction talking about error handling
1:45
Quickly going over some python/golang code to show the difference in mindset
5:55
Playing with a demo go application, using hard coded (or pre-declared) errors.
8:00
Showing we could have done a Switch Statement instead of if/then
9:37
Using the Custom Error Type Pattern, so it is a little bit more flexible
15:34
Using Type Assertion, so we can access custom parts of our error message
18:10
Start editing our LDAPInjector, so the Do function only returns error
19:00
Updating the Do Function in NetHttpBrute
21:04
Updating the TestCharacter Function
23:40
Updating the Brute function
29:00
Updating the PruneCharset function
30:10
Creating the NewPasswordErrorWithCode, which I will probably use in the Loggin
🎓
Tutor Explanation
DeepCamp AI