Skip to content

CLI Usage

B611 edited this page Nov 4, 2021 · 1 revision

CLI Usage

Nyja features both CLI and GUI versions. This section will briefly explain how the CLI version operates.

When inside the CLI, launch nyja -h or nyja --help for an additional help menu listing each command.


Crawl

Nyja can crawl indexers in order to retrieve onion links.

These links can then be saved to the internal database and the user can harvest metadata on them using the metadata command.

Examples:

To save all onion links present on the indexer dark.fail launch:

$ nyja crawl "http://dark.fail"

To only display the retrieved onions without saving them launch:

$ nyja crawl "http://dark.fail" --output

To export the retrieved onions launch:

$ nyja crawl "http://dark.fail" -e "exportname"

To crawl all indexers located in a file named indexers launch:

$ nyja crawl "indexers"

The file must be located in app/user_dir/

Indexers must be stored line by line in the file.


Metadata

Nyja can harvest metadata from onion websites, either on individual onions or on the onions that are in the database.

The metadata can then be exported and processed by other tools, or can be viewed (and also exported) in the GUI.

Examples:

To harvest metadata on the onion website of the CIA launch:

$ nyja metadata "http://ciadotgov4sjwlzihbbgxnqg3xiyrg7so2r2o3lt5wz5ypk4sxyjstad.onion"

Previous options available with crawl are also available with metadata


Search

You can query the Nyja database to retrieve stored data.

The search system is very modular and is based on a custom expression language involving logical operators and nested expressions.

The different fields to search are: TITLE, LOGIN, CAPTCHA, CRYPTO, PRODUCTS, HTML, ADDRESSES, INDEXERS, ONLINE

Use ALL to retreive the whole database.

Use ( ) for any operation between two logical operators like && or ||

Use { } for any operation between fields.

Examples:
$ nyja search "{ TITLE DEF CON || PRODUCTS Cannabis }"
$ nyja search "{ { TITLE ( Dark || Hack ) && HTML ( Cocaine || Hack ) } && CAPTCHA false }"

Stats

This feature is currently WIP, the wiki will come soon.

Clone this wiki locally