Metadata-Version: 2.1
Name: horuz
Version: 0.0.6
Summary: Save and query your recon data on ElasticSearch.
Home-page: https://horuz.misalabs.com
Author: Misa G.
Author-email: hi@misalabs.com
Maintainer: Misa G.
Maintainer-email: hi@misalabs.com
License: MIT license
Keywords: recon,elasticsearch,fuzzing
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown
License-File: LICENSE

<p align="center">
  <img src="screenshots/logo-horuz.png"/>
</p>

Horuz!. Save and query your recon data on ElasticSearch.

Installing
----------
**Install and setting up ElasticSearch**

https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html


**Install and setting up Horuz**

```console
$ pip3 install horuz

$ hz config server:add http://yourelasticsearchendpoint:9200
```

Usage
-----

```console
$ hz --help

$ hz config server:status
ElasticSearch is connected to http://localhost:9200 successfully!
```

Collect data examples
---------------------
##### Using ffuf

Custom integration with ffuf.

```console
$ hz collect -p x.com -c "ffuf -w ~/SecLists/Discovery/Web-Content/common.txt -u https://example.com/FUZZ"
```
![](screenshots/screenshot1.gif)

##### Custom JSON files

In this example, we have an httprobe.txt file, then it will be transformed to JSON file.

```
$ cat httprobe.txt | jq -Rnc '[inputs|split("\n")|{("host"):.[0]}]' > httprobe.json
```

Then, upload it to ES.

```
$ hz collect -p example.com -f httprobe.json
⠦ Collecting...
Session name: gallant_satoshi_8455236

Results: 1366

$ hz search -p example.com -q "session:gallant_satoshi_8455236" -oJ -f time,host -s 2

```




Query search examples
--------------

Search by range dates:

```console
$ hz search -p x.com -q "time:[2020-04-15 TO 2020-05-20]"
```

Search by wildcard in the field

```console
$ hz search -p x.com -q "result.html:*key*" -oJ -f html
```
![](screenshots/screenshots4.gif)

Pipe the result to other commands

```console
$ hz search -p misalabs.com -q "session:*" -oJ -f _id,session,time | jq ".[].session" | sort -
```
![](screenshots/screenshots6.gif)


