Skip to content

Commit

Permalink
Add Index and the script to generate it
Browse files Browse the repository at this point in the history
  • Loading branch information
righettod committed Jan 9, 2019
1 parent 7e5e7c2 commit afe8597
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[A](Index.md#A) [B](Index.md#B) [C](Index.md#C) [D](Index.md#D) [E](Index.md#E) [F](Index.md#F) [H](Index.md#H) [I](Index.md#I) [J](Index.md#J) [K](Index.md#K)

# A (6 cheatsheets)
# A

[Abuse Case Cheat Sheet](cheatsheets/Abuse_Case_Cheat_Sheet.md).

Expand All @@ -14,11 +14,11 @@

[Authorization Testing Automation](cheatsheets/Authorization_Testing_Automation.md).

# B (1 cheatsheets)
# B

[Bean Validation Cheat Sheet](cheatsheets/Bean_Validation_Cheat_Sheet.md).

# C (5 cheatsheets)
# C

[C-Based Toolchain Hardening Cheat Sheet](cheatsheets/C-Based_Toolchain_Hardening_Cheat_Sheet.md).

Expand All @@ -30,7 +30,7 @@

[Cryptographic Storage Cheat Sheet](cheatsheets/Cryptographic_Storage_Cheat_Sheet.md).

# D (4 cheatsheets)
# D

[Denial of Service Cheat Sheet](cheatsheets/Denial_of_Service_Cheat_Sheet.md).

Expand All @@ -40,34 +40,34 @@

[DotNet Security Cheat Sheet](cheatsheets/DotNet_Security_Cheat_Sheet.md).

# E (1 cheatsheets)
# E

[Error Handling Cheat Sheet](cheatsheets/Error_Handling_Cheat_Sheet.md).

# F (1 cheatsheets)
# F

[Forgot Password Cheat Sheet](cheatsheets/Forgot_Password_Cheat_Sheet.md).

# H (2 cheatsheets)
# H

[HTML5 Security Cheat Sheet](cheatsheets/HTML5_Security_Cheat_Sheet.md).

[HTTP Strict Transport Security Cheat Sheet](cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.md).

# I (3 cheatsheets)
# I

[Injection Prevention Cheat Sheet in Java](cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.md).

[Input Validation Cheat Sheet](cheatsheets/Input_Validation_Cheat_Sheet.md).

[Insecure Direct Object Reference Prevention Cheat Sheet](cheatsheets/Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.md).

# J (2 cheatsheets)
# J

[JAAS Cheat Sheet](cheatsheets/JAAS_Cheat_Sheet.md).

[JSON Web Token (JWT) Cheat Sheet for Java](cheatsheets/JSON_Web_Token_(JWT)_Cheat_Sheet_for_Java.md).

# K (1 cheatsheets)
# K

[Key Management Cheat Sheet](cheatsheets/Key_Management_Cheat_Sheet.md).
4 changes: 2 additions & 2 deletions scripts/Update_CheatSheets_Index.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Define templates
cs_md_link_template = "[%s](cheatsheets/%s)."
header_template = "# %s (%s cheatsheets)\n\n"
header_template = "# %s\n\n"
top_menu_template = "[%s](Index.md#%s)"

# Scan all CS files
Expand All @@ -38,7 +38,7 @@
j = 0
for letter in index:
cs_count = len(index[letter])
index_file.write(header_template % (letter,cs_count))
index_file.write(header_template % letter)
i = 0
for cs_file in index[letter]:
cs_name = cs_file.replace("_", " ").replace(".md", "").strip()
Expand Down

0 comments on commit afe8597

Please sign in to comment.