Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

520 B
Raw Blame
#!/bin/bash
# Script in charge of auditing the released cheatsheets MD files
# in order to detect dead links
cd ../cheatsheets
find . -name \*.md -exec markdown-link-check -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 CS have dead links !"
    exit $errors
else
    echo "[+] No error found by the Links validator."
fi