Skip to content

Commit

Permalink
Prepared change of version
Browse files Browse the repository at this point in the history
  • Loading branch information
gnebbia committed Sep 21, 2020
1 parent c0348ab commit 2155c70
Show file tree
Hide file tree
Showing 32 changed files with 67 additions and 61 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@

0.1.1
* Initial release.
0.1.2
* Fixed important bugs of 0.1.1
* Refactored
* Added cross-platform binaries
* Included docker image
* Ready for pypi publishing


4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Author: gnc <[email protected]>

Copyright: © 2020, gnc

Date: 2020-09-11
Date: 2020-09-21

Version: 0.1.1
Version: 0.1.2


## PURPOSE
Expand Down
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:Author: gnc <[email protected]>
:Copyright: © 2020, gnc.
:License: GPLv3 (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2020-08-09
:Date: 2020-09-21
:Version: 0.1.1

## Version History
Expand Down
54 changes: 27 additions & 27 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="img/kb_logo.png?raw=true" width="200"/>
<img src="https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_logo.png" width="200"/>
</p>

# kb. A minimalist knowledge base manager
Expand All @@ -9,9 +9,9 @@ Author: gnc <[email protected]>

Copyright: © 2020, gnc

Date: 2020-09-11
Date: 2020-09-21

Version: 0.1.1
Version: 0.1.2


## PURPOSE
Expand Down Expand Up @@ -100,15 +100,15 @@ the `/data` directory in the container.

A quick demo of a typical scenario using kb:

![](img/kb_general_demo.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_general_demo.gif)

A quick demo with kb aliases enabled:

![](img/kb_general_demo_alias.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_general_demo_alias.gif)

A quick demo for non-text documents:

![](img/kb_non_text_demo.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_non_text_demo.gif)

### List artifacts

Expand All @@ -119,7 +119,7 @@ kb list
# or if aliases are used:
kbl
```
![](img/kb_list_all.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_list_all.gif)

#### List all artifacts containing the string "zip":
```sh
Expand All @@ -128,7 +128,7 @@ kb list zip
# or if aliases are used:
kbl zip
```
![](img/kb_list_title_zip.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_list_title_zip.gif)

#### List all artifacts belonging to the category "cheatsheet":
```sh
Expand All @@ -139,7 +139,7 @@ kb list -c cheatsheet
# or if aliases are used:
kbl -c cheatsheet
```
![](img/kb_list_category.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_list_category.gif)

#### List all the artifacts having the tags "web" or "pentest":
```sh
Expand All @@ -148,7 +148,7 @@ kb list --tags "web;pentest"
# or if aliases are used:
kbl --tags "web;pentest"
```
![](img/kb_list_tags.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_list_tags.gif)

#### List using "verbose mode":
```sh
Expand All @@ -157,7 +157,7 @@ kb list -v
# or if aliases are used:
kbl -v
```
![](img/kb_list_verbose.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_list_verbose.gif)


### Add artifacts
Expand All @@ -169,27 +169,27 @@ kb add ~/Notes/cheatsheets/pytest
# or if aliases are used:
kba ~/Notes/cheatsheets/pytest
```
![](img/kb_add.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_add.gif)

#### Add a file to the artifacts
```sh
kb add ~/ssh_tunnels --title pentest_ssh --category "procedure" \
--tags "pentest;network" --author "gnc" --status "draft"
```
![](img/kb_add_title.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_add_title.gif)

#### Add all files contained in a directory to kb
```sh
kb add ~/Notes/cheatsheets/general/* --category "cheatsheet"
```
![](img/kb_add_directory.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_add_directory.gif)

#### Create a new artifact from scratch
```sh
kb add --title "ftp" --category "notes" --tags "protocol;network"
# a text editor ($EDITOR) will be launched for editing
```
![](img/kb_add_from_scratch.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_add_from_scratch.gif)

### Delete artifacts

Expand All @@ -208,13 +208,13 @@ kb delete --id 2 3 4
# or if aliases are used:
kbd 2 3 4
```
![](img/kb_delete_multiple.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_delete_multiple.gif)

#### Delete an artifact by name
```sh
kb delete --title zap --category cheatsheet
```
![](img/kb_delete_name.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_delete_name.gif)


### View artifacts
Expand All @@ -228,21 +228,21 @@ kb view -i 3
# or if aliases are used:
kbv 3
```
![](img/kb_view.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_view.gif)

#### View an artifact by name
```sh
kb view --title "gobuster"
# or
kb view -t "gobuster"
```
![](img/kb_view_title.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_view_title.gif)

#### View an artifact without colors
```sh
kb view -t dirb -n
```
![](img/kb_view_title_nocolor.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_view_title_nocolor.gif)

#### View an artifact within a text-editor
```sh
Expand All @@ -251,7 +251,7 @@ kb view -i 2 -e
# or if aliases are used:
kbv 2 -e
```
![](img/kb_view_in_editor.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_view_in_editor.gif)


### Edit artifacts
Expand All @@ -269,7 +269,7 @@ kb edit --id 13
# or if aliases are used:
kbe 13
```
![](img/kb_edit.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_edit.gif)

#### Edit an artifact by name
```sh
Expand All @@ -287,13 +287,13 @@ kb grep "[bg]zip"
# or if aliases are used:
kbg "[bg]zip"
```
![](img/kb_grep.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_grep.gif)

#### Grep (case-insensitive) through the knowledge base
```sh
kb grep -i "[BG]ZIP"
```
![](img/kb_grep_case_insensitive.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_grep_case_insensitive.gif)

#### Grep in "verbose mode" through the knowledge base
```sh
Expand All @@ -308,21 +308,21 @@ kb export
```
This will generate a .kb.tar.gz archive that can
be later be imported by kb.
![](img/kb_export.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_export.gif)

#### Import a knowledge base
```sh
kb import archive.kb.tar.gz
```
**NOTE**: Importing a knowledge base erases all the previous
data. Basically it erases everything and imports the knowledge base.
![](img/kb_import.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_import.gif)

#### Erase the entire knowledge base
```sh
kb erase
```
![](img/kb_erase.gif)
![](https://raw.githubusercontent.com/gnebbia/kb/master/img/kb_erase.gif)


## UPGRADE
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '0.1.1'
version = '0.1.2'
# The full version, including alpha/beta/rc tags.
release = '0.1.1'
release = '0.1.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions kb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright 2020, Giuseppe Nebbione.

Expand All @@ -24,7 +24,7 @@
"""

__title__ = 'kb'
__version__ = '0.1.1'
__version__ = '0.1.2'
__author__ = 'gnc'
__license__ = 'GPLv3'
__docformat__ = 'restructuredtext en'
Expand Down
2 changes: 1 addition & 1 deletion kb/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/cl_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/add.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/delete.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/edit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/erase.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/export.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/grep.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/ingest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/search.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/update.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/commands/view.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/db.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/entities/artifact.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/filesystem.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion kb/history.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# kb v0.1.1
# kb v0.1.2
# A knowledge base organizer
# Copyright © 2020, gnc.
# See /LICENSE for licensing information.
Expand Down
Loading

0 comments on commit 2155c70

Please sign in to comment.