<commit_before># shakedown
## File Content Analyzer
<table>
    <tr>
        <th>Version</th>
        <td>0.0.1</td>
    </tr>
    <tr>
       <th>Author</th>
       <td><NAME> (nxkennedy)</td>
    </tr>
    <tr>
        <th>Github</th>
        <td><a href="http://github.com/nxkennedy">http://github.com/nxkennedy</a></td>
    </tr>
</table>

### Description
Shakedown analyzes files for what may be malicious content. Additionally, it writes findings to csv to assist manual analysis.

Shakedown currently checks for:
* IP Addresses
* URLs
* Shellcode
* URL Encoding
* HTML Encoding

### Use Case
Vetting newly downloaded scripts prior to usage in a production environment

### Requirements
* python 3.6
* python-magic (python wrapper for libmagic)

    `sudo apt-get install python-magic`

### Usage
python shakedown.py <directory_or_file>

### Output
Findings are displayed in the terminal as well as stored in a csv titled "shakedown-results.csv"

![shakedown terminal output](img/shakedown.png)

### License
shakedown is distributed under the MIT license.  See the included
LICENSE file for details.<commit_msg>intitial commit<commit_after># shakedown
## File Content Analyzer
<table>
    <tr>
        <th>Version</th>
        <td>0.0.1</td>
    </tr>
    <tr>
       <th>Author</th>
       <td><NAME> (nxkennedy)</td>
    </tr>
    <tr>
        <th>Github</th>
        <td><a href="http://github.com/nxkennedy">http://github.com/nxkennedy</a></td>
    </tr>
</table>

### Description
Shakedown analyzes files for what may be malicious content. Additionally, it writes findings to csv to assist manual analysis.

Shakedown currently checks for:
* IP Addresses
* URLs
* Shellcode
* URL Encoding
* HTML Encoding

### Use Case
Vetting newly downloaded scripts prior to usage in a production environment

### Requirements
* python 3.6
* python-magic (python wrapper for libmagic)

    `sudo apt-get install python-magic`

### Usage
* git clone https://github.com/nxkennedy/shakedown.git

    `python shakedown.py <directory_or_file>`

### Output
Findings are displayed in the terminal as well as stored in a csv titled "shakedown-results.csv"

![shakedown terminal output](img/shakedown.png)

### License
shakedown is distributed under the MIT license.  See the included
LICENSE file for details.
{'fraction_non_alphanumeric': 0.12010443864229765, 'fraction_numerical': 0.004351610095735422, 'mean_word_length': 3.4990215264187867, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2691552', 'n_tokens_mistral': 755, 'n_tokens_neox': 722, 'n_words': 235}