-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpseudocode.txt
43 lines (40 loc) · 1.72 KB
/
pseudocode.txt
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
MENU
====
Functionality: A CLI application that produces a list of valid codice fiscali (CF) to help when pentesting Italian apps. It can create a list of all possible CF values, or accept known values such as name, surname etc and just fuzz the remaining unknown or targeted values.
Menu:
1) Enter known values:
- prompt surname (str)
- take first 3 consonants
- if more than one, concat
- if < 3 consonants:
save the 0-2 consonants
get vowels in order
fill from vowel list until len = 3
- if < 3 letters, blank = X
- prompt name (str)
- take first 3 consonants
- if more than one, concat
- if < 3 consonants:
save the 0-2 consonants
get vowels in order
fill from vowel list until len = 3
- if < 3 letters, blank = X
- if > 3 consonants, skip the second
- prompt sex (M/F)
- if M, i = 0
- if F, i = 40
- prompt birthdate (str: dd/mm/yyyy)
- use last 2 digits of year
- A-T for month: A Jan, B Feb, C March, D, April, E May, H June, L July, M august, P Sep, R Oct, S Nov, T Dec
- i + day (01-31)
Unknown?
- prompt min age (int)
- end = current year - input
- prompt max age (int)
- beginning = current year - input
- search range [beginning - end]
- fuzz every day within search range
- prompt comune (str)
- comune list: https://www1.agenziaentrate.gov.it/servizi/codici/ricerca/VisualizzaTabella.php?ArcName=COM-ICI
- foreign states here: http://help.studiok.it/ETRI/index.html?codicefiscaledeglistatiesteri.htm
(calculate check character)