Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
wesyoung committed May 26, 2019
1 parent d75ffa1 commit 2fc9922
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -2,7 +2,6 @@ sudo: required
dist: trusty
language: python
python:
- 3.5
- 3.6

install:
Expand All @@ -21,9 +20,9 @@ notifications:
deploy:
provider: pypi
user: wesyoung
password:
secure: gJ98IKzZZB9HjkPPO9veNMZH2/gz78eQzUBYFgtt4FkT0QGb+9tYUrTOCgn7vaa1cPuS6Ntc8uAZUOKxxQuqaHTCalPuZhudiQHgllsa56lWcEK8c23byhd3gBXLfd9bKsgAVzZJKRebrhNzEEKw08z/6399Aa0C4iMFb6xfEwA=
on:
branch: master
tags: true
condition: $TRAVIS_PYTHON_VERSION = "3.6"
password:
secure: JkjPbIVP0sXVjlu+S34FpQDSxSm0Fa/tl2FEkZEZW8+JdHk8ZZHWc5afOkG2LAiiPB/+7yEIhhnW0v3qyt543Mo5oZLq0jmwQ36W/ZJfKoxUXPCUKdrPDJCfQ1ZbdxWvdRjPSccqnugzsFj//08LosAnOSb07fnaKVDSNSe+5+EGNW7GIrXVpvafusPyTM9jegDrspHixoEbGEkWTtcSGIsFAFahKtmceAyI/gGMUnGWQtljacd/pvsVwiHxF52NXScM/oKxKcbPgpwmDL3B00JLbBPsP9yKAI80SdEM9DAyzFjNjx8jAUhojlIrpZjSW2pceg2G5Fp0fj5vJ1Y2c8Hm309f44oaa6SJRliMKfh0w86VkDDW4AtV+JHO4KBeOnFj+/jlTJn32qCjDkYcQkAOWlrnQhWmd8p2yHw1e2s1TA8NqUwe5VLxCJh1HVhLQiJQWDrUFQu7koC4TQn7apZPYnZGtfI06geuIMFE6T6mE9YLBrVSBzr/yC6vAGLkUJb8+H0DuBkBU6Ze+7mvaPEHNU9OtGyofRXNkkqJBCBVtqQuc8se8Jai2SggijLReTA99B7/4eAbL5lAtNUA6I/Q4NfF5bzaSXl3EIob+EjzriHOZwdofXMO7Xqf9lqlhq0RnkI5b3YxQtVFUR+OGwCafcdWNvU9oqDrgQsUytw=
32 changes: 32 additions & 0 deletions README.md
Expand Up @@ -2,7 +2,17 @@

The FASTEST way to build a Threat Hunting Toolkit

### Requirements
* Python 3.6 or higher

### Extras
Not required- but useful.

* Maxmind GeoIP ASN / Country Databases

## Getting Started

### Commandline
```bash
$ export CSIRTG_TOKEN=1234.. # not required- signup at csirtg.io
$ pip install csirtg-hunter
Expand Down Expand Up @@ -62,4 +72,26 @@ $ $ csirtg-hunter 52.22.149.152,1.1.1.1,google.com,hotjasmine.su
| us | 45102 | hotjasmine.su | a | suspicious | 47.254.89.5 | a.dnspod.com.,b.dnspod.com.,c... | |
+----+-------+----------------------+-------+--------------+----------------+----------------------------------+----+

```

## Python
```python
from csirtg_hunter import resolve
from multiprocessing import Pool, cpu_count
from pprint import pprint

DATA = [
'google.com',
'1.1.1.1',
'8.8.8.8',
'csirtgadets.com'
]

THREADS = (cpu_count() * 1.5)
pool = Pool(THREADS)


for output in pool.imap(resolve, DATA):
pprint(output)

```
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -3,9 +3,9 @@
import versioneer
import sys

if sys.version_info < (3, 5):
if sys.version_info < (3, 6):
print("\n")
print("This requires python 3.5 or higher")
print("This requires python 3.6 or higher")
print("\n")
raise SystemExit

Expand Down

0 comments on commit 2fc9922

Please sign in to comment.