From e11832a4a9b031163c8f72408c6b40139f472a10 Mon Sep 17 00:00:00 2001 From: Jeroen Beckers Date: Tue, 14 May 2019 20:05:13 +0200 Subject: [PATCH] Fix urls --- .markdownlinkcheck.json | 11 +++++++++++ Document/0x06e-Testing-Cryptography.md | 2 +- Tools/Apply_Link_Check.sh | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .markdownlinkcheck.json create mode 100644 Tools/Apply_Link_Check.sh diff --git a/.markdownlinkcheck.json b/.markdownlinkcheck.json new file mode 100644 index 0000000000..07052b6db2 --- /dev/null +++ b/.markdownlinkcheck.json @@ -0,0 +1,11 @@ +{ + "ignorePatterns": [], + "httpHeaders": [{ + "urls": [ + "https://", "http://" + ], + "headers": { + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0" + } + }] +} \ No newline at end of file diff --git a/Document/0x06e-Testing-Cryptography.md b/Document/0x06e-Testing-Cryptography.md index a7a73d4b0e..c6b19cd870 100644 --- a/Document/0x06e-Testing-Cryptography.md +++ b/Document/0x06e-Testing-Cryptography.md @@ -8,7 +8,7 @@ In the "Cryptography for Mobile Apps" chapter, we introduced general cryptograph Apple provides libraries that include implementations of most common cryptographic algorithms. [Apple's Cryptographic Services Guide](https://developer.apple.com/library/content/documentation/Security/Conceptual/cryptoservices/GeneralPurposeCrypto/GeneralPurposeCrypto.html "Apple Cryptographic Services Guide") is a great reference. It contains generalized documentation of how to use standard libraries to initialize and use cryptographic primitives, information that is useful for source code analysis. ##### CommonCrypto, SecKeyEncrypt and Wrapper libraries -The most commonly used Class for cryptographic operations is the CommonCrypto, which is packed with the iOS runtime. The functionality offered by the CommonCrypto object can best be dissected by having a look at the [source code of the header file ](https://opensource.apple.com/source/CommonCrypto/CommonCrypto-36064/CommonCrypto/CommonCrypto.h "CommonCrypto.h"): +The most commonly used Class for cryptographic operations is the CommonCrypto, which is packed with the iOS runtime. The functionality offered by the CommonCrypto object can best be dissected by having a look at the [source code of the header file ](https://opensource.apple.com/source/CommonCrypto/CommonCrypto-36064/CommonCrypto/CommonCryptor.h.auto.html "CommonCrypto.h"): - The `Commoncryptor.h` gives the parameters for the symmetric cryptographic operations, - The `CommonDigest.h` gives the parameters for the hashing Algorithms - The `CommonHMAC.h` gives the parameters for the supported HMAC operations. diff --git a/Tools/Apply_Link_Check.sh b/Tools/Apply_Link_Check.sh new file mode 100644 index 0000000000..72e8b11761 --- /dev/null +++ b/Tools/Apply_Link_Check.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Script taken from https://github.com/OWASP/CheatSheetSeries/blob/master/scripts/Apply_Link_Check.sh +# Script in charge of auditing the released MD files in order to detect dead links +cd ../Document +find . -name \*.md -exec markdown-link-check -q -c ../.markdownlinkcheck.json {} \; 1>../link-check-result.out 2>&1 +errors=`grep -c "ERROR:" ../link-check-result.out` +content=`cat ../link-check-result.out` +if [[ $errors != "0" ]] +then + echo "[!] Error(s) found by the Links validator: $errors pages have dead links! Verbose output in /link-check-result.out" + exit $errors +else + echo "[+] No error found by the Links validator." +fi \ No newline at end of file