Posted: 3rd Jul 2019 15:23
Long story short, I let my Security+ expire and now I have to go renew it. The newer version of the test I've heard is quite a bit harder with a huge portion on encryption added in. I suck with remember protocol ports and acronyms, so I whipped up a quick flash card system for myself.

Very basic, hardly worth making a code snippet. Just sticking it here to remind myself to make an actual app out of it one day.

+ Code Snippet

Type Card
	q as String
	a as String
EndType


cards as Card[]

addCard(cards, "FTP", "20-Data, 21-Control")
addCard(cards, "SSH, SCP, SFTP", "22")
addCard(cards, "Telnet", "23")
addCard(cards, "LDAP", "389 / 636")
addCard(cards, "DNS", "53")
addCard(cards, "NetBIOS", "137-name service, 138-datagram service, 139-session service")
addCard(cards, "HTTPS/SSL/TLS/FTPS", "443")
addCard(cards, "TFTP", "69")
addCard(cards, "SNMP", "162")
addCard(cards, "POP3", "110 / 995")
addCard(cards, "IMAP", "143 / 993")
addCard(cards, "SMTP", "25 / 465")
addCard(cards, "RADIUS", "1812 or 1645 for authentication, 1813 or 1646 for accounting")
addCard(cards, "TACACS/TACACS+", "49")
addCard(cards, "RDP", "3389")
addCard(cards, "Kerberos", "88")

dim deck[cards.length] as integer

for i = 0 to cards.length
	deck[i] = i
next i

x = random(0, deck.length)
showAnswer = 0

total = cards.length + 1
n = 1

do
    
   print(str(n)+" / "+str(total))
   print("")
      
	print(cards[deck[x]].q)
	if showAnswer = 1
		print(cards[deck[x]].a)
	endif
	
	if getRawKeyPressed(32) = 1
		if showAnswer = 0
			showAnswer = 1
		else
			showAnswer = 0
			deck.remove(x)
			if deck.length > -1
				x = random(0, deck.length)
				inc n
			else
				end
			endif
		endif
	endif
	
	

    
    Sync()
loop



function addCard(mycards ref as Card[], q as string, a as string)
	c as Card
	c.q = q
	c.a = a
	mycards.insert(c)
endfunction



Honestly I don't even know why I posted such basic code....