botanick.core package¶
Submodules¶
botanick.core.config module¶
botanick.core.converters module¶
-
botanick.core.converters.
tostring
(output)¶ Convert list of results to string output
botanick.core.crypto module¶
-
botanick.core.crypto.
decrypt
(s, encryption_key, block_size)¶ Function used to decrypt a string
Parameters: - s – the string to decrypt
- encryption_key – the encryption key
- block_size – the block size used to unpad
Returns: the decrypted string
-
botanick.core.crypto.
encrypt
(s, encryption_key, block_size)¶ Function used to encrypt a string
Parameters: - s – the string to encrypt
- encryption_key – the encryption key
- block_size – the block size used to unpad (16, 32, etc ...)
Returns: the encrypted string
-
botanick.core.crypto.
pad
(s, block_size)¶ Pad a string
Parameters: - s – the string to pad
- block_size – the block size used to pad
Returns: the padded string
-
botanick.core.crypto.
unpad
(s)¶ Unpad a string
Parameters: s – the string to unpad Returns: the unpaded string
botanick.core.harvester module¶
-
class
botanick.core.harvester.
EngineThread
(domain, engine)¶ Bases:
threading.Thread
Thread used to call EmailHarvester for a specific engine (google, github, bing, etc...).
-
run
()¶ Run function for this thread
-
-
botanick.core.harvester.
clean
(filename)¶ Remove specified file (txt and xml).
Parameters: filename – file to delete
-
botanick.core.harvester.
emailHarvester
(domain, engine)¶ Call EmailHarvester module.
Parameters: - domain – the domain name (e.g. gmail.com)
- engine – the engine name (e.g. google, github, bing, etc...)
-
botanick.core.harvester.
extract
(filename)¶ Extract the EmailHarvester results into the result file.
Parameters: filename – the result file Returns: the file content
-
botanick.core.harvester.
files
(extension='txt')¶ List all file with specified extension (txt and xml).
Parameters: extension – extension to search Returns: the list of files
-
botanick.core.harvester.
harvest
(domain)¶ Search emails for a specific domain name.
Parameters: domain – the domain name Returns: the emails harvested
-
botanick.core.harvester.
lsfiles
()¶ List all generated files (txt and xml). :return: the list a results txt and xml files
-
botanick.core.harvester.
results
()¶ Return all emails found by EmailHarvester.
Returns: the emails harvested