semvec/pypi-packages huggingface dataset:
mmbot 1.0.6
Malicious Macro Bot: Python module to classify and cluster Microsoft office documents.  Uses machine learning techniques to determine if VBA code is malicious or benign and groups similar documents together.
License: MIT
Keywords: mmbot malicious macro bot office document security cyber malware

Malicious Macro Bot Project
===========================

The main goals of this project are to:
* Provide a powerful malicious file triage tool for cyber responders.
* Help fill existing detection gaps for malicious office documents, which are still a very prevalent attack vector today.
* Deliver a new avenue for threat intelligence, a way to group similar malicious office documents together to identify phishing campaigns and track use of specific malicious document templates.

These goals are achieved through clever feature engineering and applied machine learning techniques like Random Forest and TF-IDF.

----

Installation
------------
``sudo pip install mmbot``

That's it!  Otherwise checkout the source on this git repo.


Usage Examples
--------------
**Triage office files with five lines of code**

Import, instantiate, predict::

	from mmbot import MaliciousMacroBot
	mmb = MaliciousMacroBot()
        mmb.mmb_init_model()
	result = mmb.mmb_predict('./your_path/your_file.xlsm', datatype='filepath')
	print result.iloc[0]

Note: mmb_predict() returns a Pandas DataFrame.  If you are unfamiliar with Pandas DataFrames, there is a helper function that can be used to convert a useful summary of the prediction result to json.

**Convert result from Pandas DataFrame to json**

``print mmb.mmb_prediction_to_json(prediction)``


This package was designed for flexibility.  The mmb_predict() function will take in single office documents as a path to the specific file, as a path to a directory and recursively analyze all files in the path and subdirectories, as a raw byte stream of a file passed to it, or as a string of already extracted vba text that a different tool already processed.  Finally, all of these options can be done in bulk mode, where the input is a Pandas DataFrame.  The method will decide how to handle it based on the "datatype" argument and the actual python object type passed in.


More Information
----------------
Python 3 not fully supported.  One package dependency is not working in Python 3.5 and higher, but once that is updated the rest of this project is ready to support Python 3.


License
-------
* Free software: MIT License 
* Documentation: https://maliciousmacrobot.readthedocs.io.
scrapy-status-mailer 0.3
Scrapy Status Mailer: Status mailer extension for Scrapy
License: MIT

Status mailer extension for `Scrapy <http://scrapy.org/>`__
===========================================================

Send an email when a crawler finishes or breaks.

Install
-------

The quick way:

::

    pip install scrapy-status-mailer

Or install from GitHub:

::

    pip install git+git://github.com/light4/scrapy-status-mailer.git@master

Or checkout the source and run:

::

    python setup.py install

settings.py
-----------

settings for send email

1. `163 <http://help.mail.163.com/faq.do?m=list&categoryID=76>`__
2. `qq <http://service.mail.qq.com/cgi-bin/help?id=14>`__
3. `gmail <https://support.google.com/mail/answer/7126229?visit_id=1-636225695838794234-432865084&hl=zh-Hans&rd=1>`__

::

    STATUSMAILER_RECIPIENTS = []
    STATUSMAILER_COMPRESSION = 'gzip'
    # STATUSMAILER_COMPRESSION = None

    MAIL_FROM = ''
    MAIL_HOST = 'smtp.qq.com'
    MAIL_PORT = 465
    MAIL_USER = ''
    MAIL_PASS = ''
    MAIL_TLS = True
    MAIL_SSL = True

    EXTENSIONS = {
        'scrapy_status_mailer.StatusMailer': 80,
    }

    # all bots send email by default
    # BOTS_SEND_EMAIL = ['first_bot', 'second_bot']

Thanks
------

`stackoverflow <http://stackoverflow.com/questions/16260753/emailing-items-and-logs-with-scrapy>`__