-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ackatz/v0.4.0
V0.4.0
- Loading branch information
Showing
7 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,22 +24,22 @@ Basic usage of `seclook` is as follows: | |
seclook [service] [value] | ||
``` | ||
|
||
For example, to look up IP 1.1.1.1 on VirusTotal, you'd run: | ||
For example, to look up IP 1.1.1.1 on AbuseIPDB, you'd run: | ||
|
||
```bash | ||
seclook virustotal 1.1.1.1 | ||
seclook abuseipdb 1.1.1.1 | ||
``` | ||
|
||
You can pipe the output to `jq` or `fx` for further processing: | ||
You can pipe the output to `fx` or `jq` for further processing: | ||
|
||
```bash | ||
seclook virustotal 1.1.1.1 | jq | ||
seclook emailrep [email protected] | fx | ||
``` | ||
|
||
You can `grep` the output for known keys to get specific information: | ||
|
||
```bash | ||
seclook virustotal 1.1.1.1 | grep malicious | ||
seclook virustotal 44d88612fea8a8f36de82e1278abb02f | grep malicious | ||
``` | ||
|
||
## Options | ||
|
@@ -54,6 +54,7 @@ seclook virustotal 1.1.1.1 | grep malicious | |
- [x] [AbuseIPDB](https://www.abuseipdb.com/) | ||
- [x] [GreyNoise](https://www.greynoise.io/) | ||
- [x] [ThreatFox](https://threatfox.abuse.ch/) | ||
- [x] [Pulsedive](https://pulsedive.com/) | ||
|
||
You can also view supported services by passing `list` as the service name: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import requests | ||
from seclook.config_helper import load_config | ||
|
||
base_url = "https://pulsedive.com/api/info.php" | ||
|
||
|
||
def search(value): | ||
config, pulsedive_api_key = load_config("pulsedive", key_required=False) | ||
headers = {"Accept": "application/json"} | ||
response = requests.get( | ||
base_url.format(value), | ||
headers=headers, | ||
params={"key": pulsedive_api_key, "indicator": value}, | ||
) | ||
return response.json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,10 @@ | |
|
||
setup( | ||
name="seclook", | ||
version="0.3.0", | ||
author="Andrew Katz", | ||
author_email="[email protected]", | ||
license="MIT", | ||
version="0.4.0", | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=[ | ||
|